Exception: Thor::UnknownArgumentError

Inherits:
Error
  • Object
show all
Defined in:
lib/thor/error.rb

Defined Under Namespace

Classes: SpellChecker

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switches, unknown) ⇒ UnknownArgumentError

Returns a new instance of UnknownArgumentError.


88
89
90
91
92
93
# File 'lib/thor/error.rb', line 88

def initialize(switches, unknown)
  @switches = switches
  @unknown = unknown

  super("Unknown switches #{unknown.map(&:inspect).join(', ')}")
end

Instance Attribute Details

#switchesObject (readonly)

Returns the value of attribute switches


86
87
88
# File 'lib/thor/error.rb', line 86

def switches
  @switches
end

#unknownObject (readonly)

Returns the value of attribute unknown


86
87
88
# File 'lib/thor/error.rb', line 86

def unknown
  @unknown
end