Sha256: 2f880102309c127709e52b4548b5c2ef54dcbd84a4ed7e06f1c868a9a68704b7
Contents?: true
Size: 245 Bytes
Versions: 1
Compression:
Stored size: 245 Bytes
Contents
require "grab/version" class Hash alias_method :old_values, :values def grab(*keys) keys.map { |k| self.fetch(k) } end def values(*args) if args.empty? old_values else args.map { |k| self[k] } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grab-0.0.2 | lib/grab.rb |