Sha256: 92e9281937e4159c6aef88adab4ca6ab01afc8d3e804bbad47c1588c52d198bb

Contents?: true

Size: 624 Bytes

Versions: 5

Compression:

Stored size: 624 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 'base'
require_relative 'with_value'

module Arachni
class Parser
module Nodes

class Comment < Base
    include WithValue

    def text
        @value
    end

    def to_html( indentation = 2, level = 0 )
        indent = ' ' * (indentation * level)
        "#{indent}<!-- #{value} -->\n"
    end

end

end
end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.6.1.3 lib/arachni/parser/nodes/comment.rb
arachni-1.6.1.2 lib/arachni/parser/nodes/comment.rb
arachni-1.6.1.1 lib/arachni/parser/nodes/comment.rb
arachni-1.6.1 lib/arachni/parser/nodes/comment.rb
arachni-1.6.0 lib/arachni/parser/nodes/comment.rb