Sha256: b0c698ce58289e6efe53854955ca2b5de84f39444fc5d71cccc656dbd96c557a
Contents?: true
Size: 291 Bytes
Versions: 3
Compression:
Stored size: 291 Bytes
Contents
class Hash def links(*args) links = fetch("link", []) Restfulie::Common::Converter::Xml::Links.new(links) end def method_missing(sym, *args) self[sym.to_s].nil? ? super(sym, args) : self[sym.to_s] end def respond_to?(sym) include?(sym.to_s) || super(sym) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
restfulie-0.9.3 | lib/restfulie/common/core_ext/hash.rb |
restfulie-0.9.1 | lib/restfulie/common/core_ext/hash.rb |
restfulie-0.8.1 | lib/restfulie/common/core_ext/hash.rb |