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.



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

def initialize(string)
  @string = string
end

Instance Attribute Details

#stringObject

Returns the value of attribute string.



698
699
700
# File 'lib/modl/parser/parsed.rb', line 698

def string
  @string
end

Instance Method Details

#extract_hashObject



708
709
710
# File 'lib/modl/parser/parsed.rb', line 708

def extract_hash
  @string
end

#textObject



704
705
706
# File 'lib/modl/parser/parsed.rb', line 704

def text
  @string
end