Class: Getopt::Declare::StartOpt

Inherits:
Object
  • Object
show all
Defined in:
lib/Getopt/Declare.rb

Overview

Class used to handle the beginning of options

Direct Known Subclasses

EndOpt

Instance Method Summary collapse

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

#trailerObject

Helps build regex that matches parameters of flags



102
103
104
# File 'lib/Getopt/Declare.rb', line 102

def trailer    
	nil
end