Class: Geera::Commands::Filters

Inherits:
Command
  • Object
show all
Defined in:
lib/geera/commands/filters.rb

Instance Attribute Summary

Attributes inherited from Command

#argv, #config, #geera, #number

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

#initialize, #ticket

Constructor Details

This class inherits a constructor from Geera::Commands::Command

Class Method Details

.handle?(command) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/geera/commands/filters.rb', line 4

def self.handle? command
  'filters' == command
end

Instance Method Details

#execute!Object



8
9
10
11
12
13
# File 'lib/geera/commands/filters.rb', line 8

def execute!
  puts "# Your filters"
  geera.filters.each do |filter|
    puts "  * #{filter.name.inspect}"
  end
end