Class: Oncall::Invocations::HelpRunner

Inherits:
BaseRunner
  • Object
show all
Defined in:
lib/oncall/invocations/help_runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parser) ⇒ HelpRunner

Returns a new instance of HelpRunner.



6
7
8
# File 'lib/oncall/invocations/help_runner.rb', line 6

def initialize(parser)
  @parser = parser
end

Instance Attribute Details

#parserObject (readonly)

Returns the value of attribute parser.



4
5
6
# File 'lib/oncall/invocations/help_runner.rb', line 4

def parser
  @parser
end

Instance Method Details

#run(_err, out) ⇒ Object



10
11
12
# File 'lib/oncall/invocations/help_runner.rb', line 10

def run(_err, out)
  out.puts parser
end