Class: Wptemplates::Text

Inherits:
Object
  • Object
show all
Includes:
Node
Defined in:
lib/wptemplates/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#textObject (readonly)

Returns the value of attribute text.



72
73
74
# File 'lib/wptemplates/ast.rb', line 72

def text
  @text
end