Method: Lab42::OpenMap::Implementation#without
- Defined in:
- lib/lab42/open_map/implementation.rb
#without(*keys) ⇒ Object
33 34 35 36 37 38 |
# File 'lib/lab42/open_map/implementation.rb', line 33 def without(*keys) ( self.keys - keys.flatten ) .inject( {} ) do |r, k| r.update(k => self[k]) end end |