Class: OptionParser::Switch::RequiredArgument
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
| 
         Class Chain: 
        
          self,
           
      ::OptionParser::Switch
         | 
    |
| 
         Instance Chain: 
        
          self,
           
      ::OptionParser::Switch
         | 
    |
| Inherits: | 
        OptionParser::Switch
        
  | 
    
| Defined in: | lib/optparse.rb | 
Overview
::OptionParser::Switch that takes an argument.
Class Method Summary
::OptionParser::Switch - Inherited
| .guess | Guesses argument style from #arg.  | 
    
| .incompatible_argument_styles, .new, .pattern | |
Instance Attribute Summary
Instance Method Summary
- 
    
      #parse(arg, argv, &_)  
    
    
Raises an exception if argument is not present.
 - #pretty_head Internal use only
 
::OptionParser::Switch - Inherited
| #summarize | Produces the summary text.  | 
    
| #switch_name | Main name of the switch.  | 
    
| #add_banner, #compsys, #match_nonswitch?, #omitted_argument, #pretty_print, #pretty_print_contents, | |
| #conv_arg | |
| #parse_arg | |
Constructor Details
This class inherits a constructor from OptionParser::Switch
Instance Method Details
#parse(arg, argv, &_)
Raises an exception if argument is not present.
#pretty_head
    This method is for internal use only.
  
  [ GitHub ]
# File 'lib/optparse.rb', line 758
def pretty_head # :nodoc: "Required" end