Class: Cardigan::Command::UnfilterCards

Inherits:
ListCards
  • Object
show all
Defined in:
lib/cardigan/command/unfilter_cards.rb

Instance Attribute Summary

Attributes inherited from ListCards

#help, #usage

Instance Method Summary collapse

Constructor Details

#initialize(repository, io) ⇒ UnfilterCards

Returns a new instance of UnfilterCards.



4
5
6
7
8
# File 'lib/cardigan/command/unfilter_cards.rb', line 4

def initialize repository, io
  super
  @usage = ''
  @help = 'Removes the current filter (or does nothing if no filter has been specified)'
end

Instance Method Details

#execute(filter) ⇒ Object



10
11
12
13
# File 'lib/cardigan/command/unfilter_cards.rb', line 10

def execute filter
  @repository.filter = nil
  super
end