Class: Wptemplates::Soup

Inherits:
Array
  • Object
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



44
45
46
# File 'lib/wptemplates/ast.rb', line 44

def all_links
  map(&:all_links).flatten(1)
end

#all_templatesObject



41
42
43
# File 'lib/wptemplates/ast.rb', line 41

def all_templates
  map(&:all_templates).flatten(1)
end


38
39
40
# File 'lib/wptemplates/ast.rb', line 38

def links
  map(&:links).flatten(1)
end

#templatesObject



35
36
37
# File 'lib/wptemplates/ast.rb', line 35

def templates
  map(&:templates).flatten(1)
end

#textObject



47
48
49
# File 'lib/wptemplates/ast.rb', line 47

def text
  map(&:text).join('')
end