Class: HashFilter::Operation::Delete
- Inherits:
-
HashFilter::Operation
- Object
- HashFilter::Operation
- HashFilter::Operation::Delete
- Defined in:
- lib/hash_filter/operation/delete.rb
Overview
Delete a key from hash
Instance Method Summary collapse
Methods inherited from HashFilter::Operation
Constructor Details
This class inherits a constructor from HashFilter::Operation
Instance Method Details
#execute(hash, key) ⇒ Object
5 6 7 |
# File 'lib/hash_filter/operation/delete.rb', line 5 def execute(hash, key) hash.delete(key) end |