Class: Benry::ActionRunner::GlobalOptionParser
- Inherits:
-
CmdApp::GLOBAL_OPTION_PARSER_CLASS
- Object
- CmdApp::GLOBAL_OPTION_PARSER_CLASS
- Benry::ActionRunner::GlobalOptionParser
- Defined in:
- lib/benry/actionrunner.rb
Instance Method Summary collapse
- #handle_unknown_long_option(optstr, name, value) ⇒ Object
-
#initialize(schema, &callback) ⇒ GlobalOptionParser
constructor
A new instance of GlobalOptionParser.
Constructor Details
#initialize(schema, &callback) ⇒ GlobalOptionParser
Returns a new instance of GlobalOptionParser.
103 104 105 106 |
# File 'lib/benry/actionrunner.rb', line 103 def initialize(schema, &callback) super @callback = callback end |
Instance Method Details
#handle_unknown_long_option(optstr, name, value) ⇒ Object
108 109 110 111 112 |
# File 'lib/benry/actionrunner.rb', line 108 def handle_unknown_long_option(optstr, name, value) return super if value == nil return super if @callback == nil @callback.call(name, value, optstr) end |