Sha256: cfa5e0713cfb227bc75f6d312309c909d60ab659ec08ea5cf8a0aaf435e34e81
Contents?: true
Size: 677 Bytes
Versions: 5
Compression:
Stored size: 677 Bytes
Contents
=begin Copyright 2010-2022 Ecsypno <http://www.ecsypno.com> This file is part of the Arachni Framework project and is subject to redistribution and commercial restrictions. Please see the Arachni Framework web site for more information on licensing and terms of use. =end require_relative 'with_children/search' module Arachni class Parser module WithChildren include Search def children @children ||= [] end def text txt = children.find { |n| n.is_a? Parser::Nodes::Text } return '' if !txt txt.value end def <<( child ) child.parent = self children << child end end end end
Version data entries
5 entries across 5 versions & 1 rubygems