Class: MODL::Parser::Parsed::ParsedString
- Inherits:
-
Object
- Object
- MODL::Parser::Parsed::ParsedString
- Defined in:
- lib/modl/parser/parsed.rb
Overview
Class to represent a parsed grammar object
Instance Attribute Summary collapse
-
#string ⇒ Object
Returns the value of attribute string.
Instance Method Summary collapse
- #extract_hash ⇒ Object
-
#initialize(string) ⇒ ParsedString
constructor
A new instance of ParsedString.
- #text ⇒ Object
Constructor Details
#initialize(string) ⇒ ParsedString
Returns a new instance of ParsedString.
731 732 733 |
# File 'lib/modl/parser/parsed.rb', line 731 def initialize(string) @string = string end |
Instance Attribute Details
#string ⇒ Object
Returns the value of attribute string.
729 730 731 |
# File 'lib/modl/parser/parsed.rb', line 729 def string @string end |
Instance Method Details
#extract_hash ⇒ Object
739 740 741 |
# File 'lib/modl/parser/parsed.rb', line 739 def extract_hash @string = Substitutions.process @string end |
#text ⇒ Object
735 736 737 |
# File 'lib/modl/parser/parsed.rb', line 735 def text @string end |