Class: Inventory::CLI
- Inherits:
-
Thor
- Object
- Thor
- Inventory::CLI
- Defined in:
- lib/inventory/cli.rb
Instance Method Summary collapse
Instance Method Details
#add(amount, item) ⇒ Object
7 8 9 10 |
# File 'lib/inventory/cli.rb', line 7 def add(amount, item) System::Inventory.add(amount.to_i, item) puts System::Inventory.print end |
#remove(amount, item) ⇒ Object
13 14 15 16 |
# File 'lib/inventory/cli.rb', line 13 def remove(amount, item) System::Inventory.remove(amount.to_i, item) puts System::Inventory.print end |