module Wptemplates::Node
Public Instance Methods
all_links()
click to toggle source
# File lib/wptemplates/ast.rb, line 28 def all_links links end
all_templates()
click to toggle source
# File lib/wptemplates/ast.rb, line 7 def all_templates templates end
all_templates_of(type)
click to toggle source
# File lib/wptemplates/ast.rb, line 19 def all_templates_of type all_templates.select{|t| t.name==type} end
deep_template_of(type)
click to toggle source
# File lib/wptemplates/ast.rb, line 22 def deep_template_of type all_templates_of(type).first end
links()
click to toggle source
# File lib/wptemplates/ast.rb, line 25 def links [] end
template_of(type)
click to toggle source
# File lib/wptemplates/ast.rb, line 16 def template_of type templates_of(type).first end
templates()
click to toggle source
# File lib/wptemplates/ast.rb, line 4 def templates [] end
templates_of(type)
click to toggle source
# File lib/wptemplates/ast.rb, line 13 def templates_of type templates.select{|t| t.name==type} end
text()
click to toggle source
# File lib/wptemplates/ast.rb, line 10 def text "" end