Class: Cardigan::Command::UnfilterCards
- Defined in:
- lib/cardigan/command/unfilter_cards.rb
Instance Attribute Summary
Attributes inherited from ListCards
Instance Method Summary collapse
- #execute(filter) ⇒ Object
-
#initialize(repository, io) ⇒ UnfilterCards
constructor
A new instance of UnfilterCards.
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 |