Module: Arachni::Element::XML::Capabilities::Inputtable

Includes:
Capabilities::Inputtable
Included in:
Arachni::Element::XML
Defined in:
lib/arachni/element/xml/capabilities/inputtable.rb

Overview

Extends Capabilities::Inputtable with Arachni::Element::XML-specific functionality.

Author:

Constant Summary collapse

INVALID_INPUT_DATA =
[ "\0" ]

Constants included from Capabilities::Inputtable

Capabilities::Inputtable::INPUTTABLE_CACHE

Instance Attribute Summary

Attributes included from Capabilities::Inputtable

#default_inputs, #inputs, #raw_inputs

Instance Method Summary collapse

Methods included from Capabilities::Inputtable

#[], #[]=, #changes, #dup, #has_inputs?, #initialize, inputtable_id, #inputtable_id, #raw_input?, #reset, #to_h, #try_input, #update, #updated?, #valid_input_name_data?, #valid_input_value?, #valid_input_value_data?

Instance Method Details

#valid_input_data?(data) ⇒ Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/arachni/element/xml/capabilities/inputtable.rb', line 22

def valid_input_data?( data )
    !INVALID_INPUT_DATA.find { |c| data.include? c }
end

#valid_input_name?(name) ⇒ Bool

Returns true if the name is a valid CSS path for the XML #source, false otherwise.

Parameters:

  • name (String)

    Input name.

Returns:

  • (Bool)

    true if the name is a valid CSS path for the XML #source, false otherwise.



32
33
34
# File 'lib/arachni/element/xml/capabilities/inputtable.rb', line 32

def valid_input_name?( name )
    @inputs.include? name
end