Sha256: dedc5b4f7d888647193eb8548f9aae9b9a9819d2670b92ea4ab767d57584705a
Contents?: true
Size: 335 Bytes
Versions: 2
Compression:
Stored size: 335 Bytes
Contents
class Hash def links(*args) links = fetch("link", []) Restfulie::Common::Converter::Xml::Links.new(links) end include Restfulie::Common::Links 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
restfulie-1.0.0.beta1 | lib/restfulie/common/core_ext/hash.rb |
restfulie-0.1.0.beta1 | lib/restfulie/common/core_ext/hash.rb |