Module: Test::Unit::Attribute

Included in:
TestCase
Defined in:
lib/test/unit/attribute.rb

Defined Under Namespace

Modules: BaseClassMethods, ClassMethods Classes: StringifyKeyHash

Instance Method Summary (collapse)

Instance Method Details

- (Object) [](name)



125
126
127
# File 'lib/test/unit/attribute.rb', line 125

def [](name)
  attributes[name]
end

- (Object) attributes



121
122
123
# File 'lib/test/unit/attribute.rb', line 121

def attributes
  self.class.attributes(@method_name) || StringifyKeyHash.new
end