Class: Andy::Cli::List
- Inherits:
-
Object
- Object
- Andy::Cli::List
- Defined in:
- lib/andy/cli/list_cli.rb
Instance Method Summary collapse
-
#initialize(api) ⇒ List
constructor
A new instance of List.
- #list_names ⇒ Object
Constructor Details
#initialize(api) ⇒ List
Returns a new instance of List.
6 7 8 |
# File 'lib/andy/cli/list_cli.rb', line 6 def initialize(api) @api = api end |
Instance Method Details
#list_names ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/andy/cli/list_cli.rb', line 10 def list_names known_pints = @api.pint_names puts "Installed pints:\n\n" known_pints.each do |pint| puts " #{pint}" end end |