Class: Wptemplates::Text
- Inherits:
-
Object
- Object
- Wptemplates::Text
- Includes:
- Node
- Defined in:
- lib/wptemplates/ast.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text) ⇒ Text
constructor
A new instance of Text.
Methods included from Node
#all_links, #all_templates, #all_templates_of, #deep_template_of, #links, #template_of, #templates, #templates_of
Constructor Details
#initialize(text) ⇒ Text
Returns a new instance of Text.
73 74 75 |
# File 'lib/wptemplates/ast.rb', line 73 def initialize(text) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
72 73 74 |
# File 'lib/wptemplates/ast.rb', line 72 def text @text end |