Exception: Cl::UnknownCmd
Constant Summary
Constants inherited from Error
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#runner ⇒ Object
readonly
Returns the value of attribute runner.
Instance Method Summary collapse
-
#initialize(runner, args) ⇒ UnknownCmd
constructor
A new instance of UnknownCmd.
- #suggestions ⇒ Object
Constructor Details
#initialize(runner, args) ⇒ UnknownCmd
Returns a new instance of UnknownCmd.
32 33 34 35 36 |
# File 'lib/cl/errors.rb', line 32 def initialize(runner, args) @runner = runner @args = args super(:unknown_cmd, args.join(' ')) end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
30 31 32 |
# File 'lib/cl/errors.rb', line 30 def args @args end |
#runner ⇒ Object (readonly)
Returns the value of attribute runner.
30 31 32 |
# File 'lib/cl/errors.rb', line 30 def runner @runner end |
Instance Method Details
#suggestions ⇒ Object
38 39 40 |
# File 'lib/cl/errors.rb', line 38 def suggestions runner.suggestions(args) end |