Exception: Console::NoOptionError

Inherits:
NoMethodError
  • Object
show all
Defined in:
lib/more/facets/command.rb

Overview

For CommandOptions, but defined external to it, so that it is easy to access from user defined commands. (This lookup issue should be fixed in Ruby 1.9+, and then the class can be moved back into Command namespace.)

Instance Method Summary collapse

Constructor Details

#initialize(name, *arg) ⇒ NoOptionError

Returns a new instance of NoOptionError.



44
45
46
# File 'lib/more/facets/command.rb', line 44

def initialize(name, *arg)
  super("unknown option -- #{name}", name, *args)
end