Class: Hash

Inherits:
Object show all
Defined in:
lib/rad/_support/hacks_and_fixes.rb

Overview

TODO1 remove it, we don’t use facets anymore

Instance Method Summary collapse

Instance Method Details

#slice(*keep_keys) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/rad/_support/hacks_and_fixes.rb', line 18

def slice(*keep_keys)
  hash = {}
  keep_keys.each do |key|
    # hash[key] = fetch(key)
    hash[key] = self[key]
  end
  hash
end