Class: Oncall::Invocations::HelpRunner
- Inherits:
-
BaseRunner
- Object
- BaseRunner
- Oncall::Invocations::HelpRunner
- Defined in:
- lib/oncall/invocations/help_runner.rb
Instance Attribute Summary collapse
-
#parser ⇒ Object
readonly
Returns the value of attribute parser.
Instance Method Summary collapse
-
#initialize(parser) ⇒ HelpRunner
constructor
A new instance of HelpRunner.
- #run(_err, out) ⇒ Object
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
#parser ⇒ Object (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 |