Class: RegexpToken
Instance Attribute Summary
Attributes inherited from Token
Attributes included from Indexable
Instance Method Summary collapse
-
#initialize(aString, regexp, *options) ⇒ RegexpToken
constructor
A new instance of RegexpToken.
Methods inherited from Token
#==, #create_tree, #derives_epsilon?, #hash, #inspect, #match, #nonkernel_items, #nonterminal?, #parse_options, #terminal?, #to_src, #value
Methods included from SourceCodeDumpable
as_code, as_method_named, as_module_method_named, #create_new, indent_lines, name_hash, #new_of_my_type, #parameter_named, #to_compact_src, #to_src_in_module, #type_to_src
Constructor Details
#initialize(aString, regexp, *options) ⇒ RegexpToken
Returns a new instance of RegexpToken.
188 189 190 191 |
# File 'lib/rpdf2txt-rockit/token.rb', line 188 def initialize(aString, regexp, *) @name, @regexp = aString, regexp () end |