class SeekableHash
Public Instance Methods
seek(*args)
click to toggle source
# File lib/seekable_hash.rb, line 2 def seek(*args) args.inject(self) do |hash, key| hash.is_a?(Hash) ? hash[key] : nil end end
# File lib/seekable_hash.rb, line 2 def seek(*args) args.inject(self) do |hash, key| hash.is_a?(Hash) ? hash[key] : nil end end