Class: OptionParser::Switch::NoArgument
- Inherits:
-
OptionParser::Switch
- Object
- OptionParser::Switch
- OptionParser::Switch::NoArgument
- Defined in:
- opal/stdlib/optparse.rb
Overview
Switch that takes no arguments.
Instance Attribute Summary
Attributes inherited from OptionParser::Switch
#arg, #block, #conv, #desc, #long, #pattern, #short
Class Method Summary collapse
Instance Method Summary collapse
-
#parse(arg, argv) {|NeedlessArgument, arg| ... } ⇒ Object
Raises an exception if any arguments given.
Methods inherited from OptionParser::Switch
#add_banner, #compsys, guess, #initialize, #match_nonswitch?, #summarize, #switch_name
Constructor Details
This class inherits a constructor from OptionParser::Switch
Class Method Details
.incompatible_argument_styles ⇒ Object
691 692 |
# File 'opal/stdlib/optparse.rb', line 691 def self.incompatible_argument_styles(*) end |
Instance Method Details
#parse(arg, argv) {|NeedlessArgument, arg| ... } ⇒ Object
Raises an exception if any arguments given.
686 687 688 689 |
# File 'opal/stdlib/optparse.rb', line 686 def parse(arg, argv) yield(NeedlessArgument, arg) if arg conv_arg(arg) end |