Module: HashExtentions
- Defined in:
- lib/store/abstract.rb
Instance Method Summary collapse
Instance Method Details
#without(*args) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/store/abstract.rb', line 2 def without(*args) return if Hash.respond_to? :without self.inject({}) { |wo, (k,v)| wo[k] = v unless args.include? k wo } end |