Module: HashExcept
- Defined in:
- lib/rspec_check_auth/extend_hash.rb
Overview
Returns self minus any keys specified
Instance Method Summary collapse
Instance Method Details
#except(*blacklist) ⇒ Object
4 5 6 |
# File 'lib/rspec_check_auth/extend_hash.rb', line 4 def except(*blacklist) self.reject {|key, value| blacklist.include?(key) } end |