Module: Test::Unit::Attribute
- Included in:
- TestCase
- Defined in:
- lib/test/unit/attribute.rb
Defined Under Namespace
Modules: BaseClassMethods, ClassMethods
Classes: StringifyKeyHash
Class Method Summary
collapse
Instance Method Summary
collapse
Instance Method Details
#[](name) ⇒ Object
149
150
151
|
# File 'lib/test/unit/attribute.rb', line 149
def [](name)
self.class.find_attribute(@method_name, name)
end
|
#attributes ⇒ Object
145
146
147
|
# File 'lib/test/unit/attribute.rb', line 145
def attributes
self.class.attributes(@method_name) || StringifyKeyHash.new
end
|