Class: Plz::Commands::Help

Inherits:
Object
  • Object
show all
Defined in:
lib/plz/commands/help.rb

Instance Method Summary collapse

Constructor Details

#initialize(options: nil, schema: nil) ⇒ Help

Returns a new instance of Help.

Parameters:

  • options (Slop) (defaults to: nil)
  • schema (JsonSchema::Schema) (defaults to: nil)


6
7
8
9
# File 'lib/plz/commands/help.rb', line 6

def initialize(options: nil, schema: nil)
  @options = options
  @schema = schema
end

Instance Method Details

#callObject

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