Exception: Incline::CLI::UsageError

Inherits:
CliError
  • Object
show all
Defined in:
lib/incline/cli/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject

Returns the value of attribute command.



6
7
8
# File 'lib/incline/cli/errors.rb', line 6

def command
  @command
end