Class: Wptemplates::Soup
- Inherits:
-
Array
- Object
- Array
- Wptemplates::Soup
show all
- Includes:
- Node
- Defined in:
- lib/wptemplates/ast.rb
Instance Method Summary
collapse
Methods included from Node
#all_templates_of, #deep_template_of, #template_of, #templates_of
Instance Method Details
#all_links ⇒ Object
44
45
46
|
# File 'lib/wptemplates/ast.rb', line 44
def all_links
map(&:all_links).flatten(1)
end
|
#all_templates ⇒ Object
41
42
43
|
# File 'lib/wptemplates/ast.rb', line 41
def all_templates
map(&:all_templates).flatten(1)
end
|
#links ⇒ Object
38
39
40
|
# File 'lib/wptemplates/ast.rb', line 38
def links
map(&:links).flatten(1)
end
|
#templates ⇒ Object
35
36
37
|
# File 'lib/wptemplates/ast.rb', line 35
def templates
map(&:templates).flatten(1)
end
|
#text ⇒ Object
47
48
49
|
# File 'lib/wptemplates/ast.rb', line 47
def text
map(&:text).join('')
end
|