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.
737 738 739 |
# File 'lib/modl/parser/parsed.rb', line 737 def initialize(string) @string = string end |
Instance Attribute Details
#string ⇒ Object
Returns the value of attribute string.
735 736 737 |
# File 'lib/modl/parser/parsed.rb', line 735 def string @string end |
Instance Method Details
#extract_hash ⇒ Object
745 746 747 |
# File 'lib/modl/parser/parsed.rb', line 745 def extract_hash @string = Substitutions.process @string end |
#text ⇒ Object
741 742 743 |
# File 'lib/modl/parser/parsed.rb', line 741 def text @string end |