Class: Firuta::Commands::Filter

Inherits:
Base
  • Object
show all
Defined in:
lib/firuta/commands/filter.rb

Instance Method Summary collapse

Methods inherited from Base

#call, #initialize, terminal?

Constructor Details

This class inherits a constructor from Firuta::Commands::Base

Instance Method Details

#apply_to(collection) ⇒ Object



6
7
8
# File 'lib/firuta/commands/filter.rb', line 6

def apply_to(collection)
  collection.select { |element| call(element) }
end