123456789_123456789_123456789_123456789_123456789_

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 149

def [](name)
  self.class.find_attribute(@method_name, name)
end

#attributes

[ GitHub ]

  
# File 'lib/test/unit/attribute.rb', line 145

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