Class: Tag::Runner
- Inherits:
-
Thor
- Object
- Thor
- Tag::Runner
- Defined in:
- lib/tag.rb
Instance Method Summary collapse
- #add(item, tag) ⇒ Object
- #list(tag) ⇒ Object
- #rm(item, tag) ⇒ Object
- #tags(*args) ⇒ Object
- #tree ⇒ Object
Instance Method Details
#add(item, tag) ⇒ Object
59 60 61 |
# File 'lib/tag.rb', line 59 def add(item, tag) Tag.store.tag(item, tag) end |
#list(tag) ⇒ Object
69 70 71 |
# File 'lib/tag.rb', line 69 def list(tag) puts Tag.store.list(tag) end |
#rm(item, tag) ⇒ Object
64 65 66 |
# File 'lib/tag.rb', line 64 def rm(item, tag) Tag.store.remove_tag(item, tag) end |