Method: Hash#only

Defined in:
lib/bblib/core/util/hash.rb

#only(*args) ⇒ Object

Returns a version of the hash not including the specified keys



130
131
132
# File 'lib/bblib/core/util/hash.rb', line 130

def only(*args)
  select { |k, _v| args.include?(k) }
end