Sha256: caf9e2b51621cb71e4eeec9a156651ecd005eb93ddb346f49ac640464715a580

Contents?: true

Size: 867 Bytes

Versions: 6

Compression:

Stored size: 867 Bytes

Contents

=begin
    Copyright 2010-2015 Tasos Laskos <tasos.laskos@arachni-scanner.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

module Arachni::Element
class XML
module Capabilities

# Extends {Arachni::Element::Capabilities::Inputtable} with {XML}-specific
# functionality.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
module Inputtable
    include Arachni::Element::Capabilities::Inputtable

    # @param    [String]    name
    #   Input name.
    #
    # @return   [Bool]
    #   `true` if the `name` is a valid CSS path for the XML {#source},
    #   `false` otherwise.
    def valid_input_name?( name )
        @inputs.include? name
    end

end

end
end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arachni-1.3.2 lib/arachni/element/xml/capabilities/inputtable.rb
arachni-1.3.1 lib/arachni/element/xml/capabilities/inputtable.rb
arachni-1.3 lib/arachni/element/xml/capabilities/inputtable.rb
arachni-1.2.1 lib/arachni/element/xml/capabilities/inputtable.rb
arachni-1.2 lib/arachni/element/xml/capabilities/inputtable.rb
arachni-1.1 lib/arachni/element/xml/capabilities/inputtable.rb