module Test::Unit::Attribute

Public Class Methods

included(base) click to toggle source
# File lib/test/unit/attribute.rb, line 25
def included(base)
  base.extend(BaseClassMethods)
  base.extend(ClassMethods)
end

Public Instance Methods

[](name) click to toggle source
# File lib/test/unit/attribute.rb, line 222
def [](name)
  self.class.find_attribute(@method_name, name)
end
attributes() click to toggle source
# File lib/test/unit/attribute.rb, line 218
def attributes
  self.class.attributes(@method_name) || StringifyKeyHash.new
end