Exception: Incline::CLI::UsageError
- Defined in:
- lib/incline/cli/errors.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
Instance Method Summary collapse
-
#initialize(msg, command = nil) ⇒ UsageError
constructor
A new instance of UsageError.
Constructor Details
#initialize(msg, command = nil) ⇒ UsageError
Returns a new instance of UsageError.
7 8 9 10 |
# File 'lib/incline/cli/errors.rb', line 7 def initialize(msg, command = nil) super msg self.command = command end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
6 7 8 |
# File 'lib/incline/cli/errors.rb', line 6 def command @command end |