Sha256: 42bf633faa56cdb080f23eae07b029e5c10e217237124702fcd09c89b077d047
Contents?: true
Size: 376 Bytes
Versions: 1
Compression:
Stored size: 376 Bytes
Contents
# only patch for ruby 1.8 if (RUBY_VERSION =~ /^1\.8/) == 0 # # Monkey-patch the default ruby version < 1.9.0 Hash class to provide # the same interface to the radiustar libs. # class Hash # Implementation of the ruby-1.9.x key function: # http://www.ruby-doc.org/core-1.9.3/Hash.html#method-i-key def key(value) self.index value end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiustar-0.0.8 | lib/radiustar/old_hash.rb |