Class: Firuta::Commands::Find

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#call, #initialize

Constructor Details

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

Class Method Details

.terminal?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/firuta/commands/find.rb', line 10

def self.terminal?
  true
end

Instance Method Details

#apply_to(collection) ⇒ Object



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

def apply_to(collection)
  collection.find(&@proc)
end