Class: Plz::Commands::Help
- Inherits:
-
Object
- Object
- Plz::Commands::Help
- Defined in:
- lib/plz/commands/help.rb
Instance Method Summary collapse
-
#call ⇒ Object
Logs out help message.
-
#initialize(options: nil, schema: nil) ⇒ Help
constructor
A new instance of Help.
Constructor Details
#initialize(options: nil, schema: nil) ⇒ Help
Returns a new instance of Help.
6 7 8 9 |
# File 'lib/plz/commands/help.rb', line 6 def initialize(options: nil, schema: nil) @options = @schema = schema end |
Instance Method Details
#call ⇒ Object
Logs out help message
12 13 14 |
# File 'lib/plz/commands/help.rb', line 12 def call puts %<#{@options}\nExamples:\n#{links.join("\n")}> end |