Class: Hash
Instance Method Summary (collapse)
Instance Method Details
- (Object) except(*keys)
32 33 34 |
# File 'lib/stretto/util/utils.rb', line 32 def except(*keys) clone.except!(*keys) end |
- (Object) except!(*keys)
36 37 38 39 40 |
# File 'lib/stretto/util/utils.rb', line 36 def except!(*keys) keys.map! { |key| convert_key(key) } if respond_to?(:convert_key) keys.each { |key| delete(key) } self end |