Exception: OptimistXL::HelpNeeded
- Inherits:
-
StandardError
- Object
- StandardError
- OptimistXL::HelpNeeded
- Defined in:
- lib/optimist_xl.rb
Overview
Thrown by Parser if the user passes in ‘-h’ or ‘–help’. Handled automatically by OptimistXL#options.
Instance Attribute Summary collapse
-
#parser ⇒ Object
readonly
Returns the value of attribute parser.
Instance Method Summary collapse
-
#initialize(msg = nil, parser: nil) ⇒ HelpNeeded
constructor
A new instance of HelpNeeded.
Constructor Details
#initialize(msg = nil, parser: nil) ⇒ HelpNeeded
Returns a new instance of HelpNeeded.
29 30 31 32 |
# File 'lib/optimist_xl.rb', line 29 def initialize(msg=nil, parser: nil) super(msg) @parser = parser end |
Instance Attribute Details
#parser ⇒ Object (readonly)
Returns the value of attribute parser.
28 29 30 |
# File 'lib/optimist_xl.rb', line 28 def parser @parser end |