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
Class Method Details
.included(base) ⇒ Object
21
22
23
24
|
# File 'lib/test/unit/attribute.rb', line 21
def included(base)
base.extend(BaseClassMethods)
base.extend(ClassMethods)
end
|
Instance Method Details
#[](name) ⇒ Object
124
125
126
|
# File 'lib/test/unit/attribute.rb', line 124
def [](name)
attributes[name]
end
|
#attributes ⇒ Object
120
121
122
|
# File 'lib/test/unit/attribute.rb', line 120
def attributes
self.class.attributes(@method_name) || StringifyKeyHash.new
end
|