Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/cfnbackup/utils.rb

Instance Method Summary collapse

Instance Method Details

#without(*keys) ⇒ Object



37
38
39
# File 'lib/cfnbackup/utils.rb', line 37

def without(*keys)
  dup.without!(*keys)
end

#without!(*keys) ⇒ Object



41
42
43
# File 'lib/cfnbackup/utils.rb', line 41

def without!(*keys)
  reject! { |key| keys.include?(key) }
end