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:
722 723 |
# File 'lib/rubygems/vendor/optparse/lib/optparse.rb', line 722 def self.incompatible_argument_styles(*) # :nodoc: end |
.pattern ⇒ Object
:nodoc:
725 726 727 |
# File 'lib/rubygems/vendor/optparse/lib/optparse.rb', line 725 def self.pattern # :nodoc: Object end |
Instance Method Details
#parse(arg, argv) {|NeedlessArgument, arg| ... } ⇒ Object
Raises an exception if any arguments given.
717 718 719 720 |
# File 'lib/rubygems/vendor/optparse/lib/optparse.rb', line 717 def parse(arg, argv) yield(NeedlessArgument, arg) if arg conv_arg(arg) end |
#pretty_head ⇒ Object
:nodoc:
729 730 731 |
# File 'lib/rubygems/vendor/optparse/lib/optparse.rb', line 729 def pretty_head # :nodoc: "NoArgument" end |