Class: Walrus::Grammar::StringResult
- Includes:
- LocationTracking
- Defined in:
- lib/walrus/grammar/string_result.rb
Instance Method Summary collapse
-
#initialize(string = "") ⇒ StringResult
constructor
A new instance of StringResult.
Methods inherited from String
#[], #chars, #enumerator, #jindex, #jrindex, #old_range, #to_class_name, #to_parseable, #to_require_name, #to_source_string
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.
17 18 19 20 |
# File 'lib/walrus/grammar/string_result.rb', line 17 def initialize(string = "") self.source_text = string super end |