Sha256: 947be63a72ecb52de750def748ee31256b2890999070861fff29bd095f4f9fb7
Contents?: true
Size: 754 Bytes
Versions: 5
Compression:
Stored size: 754 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' require_relative 'nodes/comment' require_relative 'nodes/text' require_relative 'nodes/element' module Arachni class Parser class Document include WithChildren def name :document end def to_html( indentation = 2, level = 0 ) html = "<!DOCTYPE html>\n" children.each do |child| html << child.to_html( indentation, level ) end html << "\n" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems