# File lib/moneta/utils.rb, line 15 def only(hash, *keys) return hash if hash.empty? ret = {} keys.each {|k| ret[k] = hash[k] } ret end