Module: Test::Unit::Attribute
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
Classes:
| |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/test/unit/attribute.rb |
Class Method Summary
Instance Method Summary
Class Method Details
.included(base)
[ GitHub ]# File 'lib/test/unit/attribute.rb', line 25
def included(base) base.extend(BaseClassMethods) base.extend(ClassMethods) end
Instance Method Details
#[](name)
[ GitHub ]# File 'lib/test/unit/attribute.rb', line 223
def [](name) self.class.find_attribute(@method_name, name) end
#attributes
[ GitHub ]# File 'lib/test/unit/attribute.rb', line 219
def attributes self.class.attributes(@method_name) || StringifyKeyHash.new end