module Arachni::Parser::WithChildren
Public Instance Methods
<<( child )
click to toggle source
# File lib/arachni/parser/with_children.rb, line 28 def <<( child ) child.parent = self children << child end
children()
click to toggle source
# File lib/arachni/parser/with_children.rb, line 17 def children @children ||= [] end
text()
click to toggle source
# File lib/arachni/parser/with_children.rb, line 21 def text txt = children.find { |n| n.is_a? Parser::Nodes::Text } return '' if !txt txt.value end