# File lib/dm-core/support/ext/hash.rb, line 15 def self.only(hash, *keys) h = {} keys.each {|k| h[k] = hash[k] if hash.has_key?(k) } h end