Class: RgGen::Core::HelpPrinter

Inherits:
Object
  • Object
show all
Defined in:
lib/rggen/core/printers.rb

Instance Method Summary collapse

Constructor Details

#initialize(option_parser) ⇒ HelpPrinter

Returns a new instance of HelpPrinter.



6
7
8
# File 'lib/rggen/core/printers.rb', line 6

def initialize(option_parser)
  @option_parser = option_parser
end

Instance Method Details

#run(_builder, _options) ⇒ Object



10
11
12
# File 'lib/rggen/core/printers.rb', line 10

def run(_builder, _options)
  puts @option_parser.help
end