Sha256: 803a1cfba3b58d412b0b04b1b563d0a6a78396ae3de45276f9147707a46869ae

Contents?: true

Size: 179 Bytes

Versions: 11

Compression:

Stored size: 179 Bytes

Contents

class ::Hash
   def method_missing(name)
     return self[name] if key? name
     self.each { |k,v| return v if k.to_s.to_sym == name }
     super.method_missing name
   end
 end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
foursquare2-1.3.1 lib/foursquare2/hash.rb
foursquare2-1.3.0 lib/foursquare2/hash.rb
foursquare2-1.2.0 lib/foursquare2/hash.rb
foursquare2-1.1.2 lib/foursquare2/hash.rb
foursquare2-1.1.1 lib/foursquare2/hash.rb
foursquare2-1.1.0 lib/foursquare2/hash.rb
foursquare2-1.0.0 lib/foursquare2/hash.rb
foursquare2-0.9.9 lib/foursquare2/hash.rb
foursquare2-0.9.8 lib/foursquare2/hash.rb
foursquare2-0.9.6 lib/foursquare2/hash.rb
foursquare2-0.9.5 lib/foursquare2/hash.rb