Method: Janeway::Enumerator#delete_if
- Defined in:
- lib/janeway/enumerator.rb
#delete_if(&block) ⇒ Array
Delete values from the input that are matched by the JSONPath query and also return a truthy value from the block.
52 53 54 |
# File 'lib/janeway/enumerator.rb', line 52 def delete_if(&block) Janeway::Interpreter.new(@query, as: :delete_if, &block).interpret(@input) end |