模块 Test::Unit::Attribute
公共类方法
included(base) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/attribute.rb, line 25 def included(base) base.extend(BaseClassMethods) base.extend(ClassMethods) end
公共实例方法
[](name) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/attribute.rb, line 223 def [](name) self.class.find_attribute(@method_name, name) end
attributes() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/attribute.rb, line 219 def attributes self.class.attributes(@method_name) || StringifyKeyHash.new end