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 222

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

#attributes

[ GitHub ]

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

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