module Test::Unit::Attribute - test-unit: Ruby Standard Library Documentation

# module Test::Unit::Attribute

### Public Class Methods

included(base) click to toggle source

    # File test-unit-3.6.7/lib/test/unit/attribute.rb, line 25
    def included(base)
      base.extend(BaseClassMethods)
      base.extend(ClassMethods)
    end

### Public Instance Methods

[](name) click to toggle source

    # File test-unit-3.6.7/lib/test/unit/attribute.rb, line 223
    def [](name)
      self.class.find_attribute(@method_name, name)
    end

attributes() click to toggle source

    # File test-unit-3.6.7/lib/test/unit/attribute.rb, line 219
    def attributes
      self.class.attributes(@method_name) || StringifyKeyHash.new
    end