Class: Getopt::Declare::StartOpt
- Inherits:
-
Object
- Object
- Getopt::Declare::StartOpt
- Defined in:
- lib/Getopt/Declare.rb
Overview
Class used to handle the beginning of options
Direct Known Subclasses
Instance Method Summary collapse
-
#cachecode(a, b) ⇒ Object
Returns how to cache code in class.
-
#code(*t) ⇒ Object
Returns code used.
-
#matcher(g) ⇒ Object
Returns regex used matching start of options.
-
#ows(g) ⇒ Object
Helps build regex that matches parameters of flags.
-
#trailer ⇒ Object
Helps build regex that matches parameters of flags.
Instance Method Details
#cachecode(a, b) ⇒ Object
Returns how to cache code in class
97 98 99 |
# File 'lib/Getopt/Declare.rb', line 97 def cachecode(a,b) '' end |
#code(*t) ⇒ Object
Returns code used
92 93 94 |
# File 'lib/Getopt/Declare.rb', line 92 def code(*t) '' end |
#matcher(g) ⇒ Object
Returns regex used matching start of options
87 88 89 |
# File 'lib/Getopt/Declare.rb', line 87 def matcher(g) '(?:()' end |
#ows(g) ⇒ Object
Helps build regex that matches parameters of flags
107 108 109 |
# File 'lib/Getopt/Declare.rb', line 107 def ows(g) g end |
#trailer ⇒ Object
Helps build regex that matches parameters of flags
102 103 104 |
# File 'lib/Getopt/Declare.rb', line 102 def trailer nil end |