Class: MODL::Parser::Parsed::ParsedString

Inherits:
Object
  • Object
show all
Defined in:
lib/modl/parser/parsed.rb

Overview

Class to represent a parsed grammar object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ ParsedString

Returns a new instance of ParsedString.



702
703
704
# File 'lib/modl/parser/parsed.rb', line 702

def initialize(string)
  @string = string
end

Instance Attribute Details

#stringObject

Returns the value of attribute string.



700
701
702
# File 'lib/modl/parser/parsed.rb', line 700

def string
  @string
end

Instance Method Details

#extract_hashObject



710
711
712
# File 'lib/modl/parser/parsed.rb', line 710

def extract_hash
  @string
end

#textObject



706
707
708
# File 'lib/modl/parser/parsed.rb', line 706

def text
  @string
end