Class: Test::Unit::Attribute::StringifyKeyHash
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Hash
|
|
Instance Chain:
self,
Hash
|
|
Inherits: |
Hash
|
Defined in: | lib/test/unit/attribute.rb |
Class Method Summary
Instance Method Summary
Class Method Details
.stringify(object)
[ GitHub ]# File 'lib/test/unit/attribute.rb', line 6
def stringify(object) object.to_s end
Instance Method Details
#[](key)
[ GitHub ]# File 'lib/test/unit/attribute.rb', line 15
def [](key) super(self.class.stringify(key)) end
#[]=(key, value)
[ GitHub ]# File 'lib/test/unit/attribute.rb', line 19
def []=(key, value) super(self.class.stringify(key), value) end
#key?(key) ⇒ Boolean
# File 'lib/test/unit/attribute.rb', line 11
def key?(key) super(self.class.stringify(key)) end