Sha256: e39f49aca26a33a6e5f126518a240096ba0d7034af6c7221feef962064d5ef9c
Contents?: true
Size: 305 Bytes
Versions: 3
Compression:
Stored size: 305 Bytes
Contents
#:nodoc: class TweetStream::Hash < ::Hash def initialize(other_hash) other_hash.keys.each do |key| self[key.to_sym] = other_hash[key] end end def method_missing(method_name, *args) if key?(method_name.to_sym) self[method_name.to_sym] else super end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
intridea-tweetstream-0.1.1 | lib/tweetstream/hash.rb |
tweetstream-0.1.1 | lib/tweetstream/hash.rb |
tweetstream-0.1.0 | lib/tweetstream/hash.rb |