Method: Arachni::Parser::WithChildren#text

Defined in:
lib/arachni/parser/with_children.rb

#textObject



21
22
23
24
25
26
# 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