Sha256: 51b642138ce9039e6f239cd1c492f89e369346088cd148476099b4ae4c25515d

Contents?: true

Size: 619 Bytes

Versions: 2

Compression:

Stored size: 619 Bytes

Contents

=begin
    Copyright 2010-2017 Sarosys LLC <http://www.sarosys.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_source'

module Arachni
module Element::Capabilities

# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
module WithNode
    include WithSource

    # @return [Ox::Element]
    def node
        return if !@source
        Arachni::Parser.parse_fragment( @source )
    end

end

end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
arachni-1.5.1 lib/arachni/element/capabilities/with_node.rb
arachni-1.5 lib/arachni/element/capabilities/with_node.rb