Class: Walrat::StringResult
- Includes:
- LocationTracking
- Defined in:
- lib/walrat/string_result.rb
Instance Attribute Summary
Attributes included from LocationTracking
#outer_end, #outer_source_text, #outer_start, #source_text
Instance Method Summary collapse
-
#initialize(string = "") ⇒ StringResult
constructor
A new instance of StringResult.
Methods included from LocationTracking
#column_end, #column_end=, #column_start, #column_start=, #end, #end=, #line_end, #line_end=, #line_start, #line_start=, #rightmost?, #start, #start=
Methods inherited from String
#[], #enumerator, #jindex_plus_length, #jlength, #jrindex, #old_range, #to_class_name, #to_parseable
Methods included from ParsletCombining
#&, #>>, #and?, #and_predicate, #choice, #memoizing_parse, #merge, #not!, #not_predicate, #omission, #one_or_more, #optional, #parse, #repeat, #repeat_with_default, #repetition, #repetition_with_default, #sequence, #skip, #zero_or_more, #zero_or_one, #|
Constructor Details
#initialize(string = "") ⇒ StringResult
Returns a new instance of StringResult.
29 30 31 32 |
# File 'lib/walrat/string_result.rb', line 29 def initialize string = "" self.source_text = string super end |