Class: Gem::OptionParser::Switch::NoArgument
- Inherits:
-
Gem::OptionParser::Switch
- Object
- Gem::OptionParser::Switch
- Gem::OptionParser::Switch::NoArgument
- Defined in:
- lib/rubygems/vendor/optparse/lib/optparse.rb
Overview
Switch that takes no arguments.
Instance Attribute Summary
Attributes inherited from Gem::OptionParser::Switch
#arg, #block, #conv, #desc, #long, #pattern, #short
Class Method Summary collapse
-
.incompatible_argument_styles ⇒ Object
:nodoc:.
-
.pattern ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#parse(arg, argv) {|NeedlessArgument, arg| ... } ⇒ Object
Raises an exception if any arguments given.
-
#pretty_head ⇒ Object
:nodoc:.
Methods inherited from Gem::OptionParser::Switch
#add_banner, #compsys, guess, #initialize, #match_nonswitch?, #omitted_argument, #pretty_print, #pretty_print_contents, #summarize, #switch_name
Constructor Details
This class inherits a constructor from Gem::OptionParser::Switch
Class Method Details
.incompatible_argument_styles ⇒ Object
:nodoc:
730 731 |
# File 'lib/rubygems/vendor/optparse/lib/optparse.rb', line 730 def self.incompatible_argument_styles(*) # :nodoc: end |
.pattern ⇒ Object
:nodoc:
733 734 735 |
# File 'lib/rubygems/vendor/optparse/lib/optparse.rb', line 733 def self.pattern # :nodoc: Object end |
Instance Method Details
#parse(arg, argv) {|NeedlessArgument, arg| ... } ⇒ Object
Raises an exception if any arguments given.
725 726 727 728 |
# File 'lib/rubygems/vendor/optparse/lib/optparse.rb', line 725 def parse(arg, argv) yield(NeedlessArgument, arg) if arg conv_arg(arg) end |
#pretty_head ⇒ Object
:nodoc:
737 738 739 |
# File 'lib/rubygems/vendor/optparse/lib/optparse.rb', line 737 def pretty_head # :nodoc: "NoArgument" end |