Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/radiustar/old_hash.rb
Overview
Monkey-patch the default ruby version < 1.9.0 Hash class to provide the same interface to the radiustar libs.
Instance Method Summary collapse
-
#key(value) ⇒ Object
Implementation of the ruby-1.9.x key function: www.ruby-doc.org/core-1.9.3/Hash.html#method-i-key.
Instance Method Details
#key(value) ⇒ Object
Implementation of the ruby-1.9.x key function: www.ruby-doc.org/core-1.9.3/Hash.html#method-i-key
10 11 12 |
# File 'lib/radiustar/old_hash.rb', line 10 def key(value) self.index value end |