Class: RegexpToken

Inherits:
Token show all
Defined in:
lib/rpdf2txt-rockit/token.rb

Instance Attribute Summary

Attributes inherited from Token

#name, #regexp, #skip

Attributes included from Indexable

#factory, #index_number

Instance Method Summary collapse

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, *options)
  @name, @regexp = aString, regexp
  parse_options(options)
end