Module: Arachni::Element::LinkTemplate::Capabilities::Inputtable

Includes:
Capabilities::Inputtable
Defined in:
lib/arachni/element/link_template/capabilities/inputtable.rb

Overview

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

Author:

Constant Summary

Constants included from Capabilities::Inputtable

Capabilities::Inputtable::INPUTTABLE_CACHE

Instance Attribute Summary

Attributes included from Capabilities::Inputtable

#default_inputs, #inputs

Instance Method Summary collapse

Methods included from Capabilities::Inputtable

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

Instance Method Details

#valid_input_data?(data) ⇒ Bool

Returns ‘true` if the `data` don’t contain strings specified in #INVALID_INPUT_DATA, ‘false` otherwise.

Parameters:

  • data (String)

    Input data.

Returns:

  • (Bool)

    ‘true` if the `data` don’t contain strings specified in #INVALID_INPUT_DATA, ‘false` otherwise.

See Also:



39
40
41
# File 'lib/arachni/element/link_template/capabilities/inputtable.rb', line 39

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

#valid_input_name?(name) ⇒ Bool

Returns ‘true` if the `name` can be found as a named capture in #template, `false` otherwise.

Parameters:

  • name (String)

    Input name.

Returns:

  • (Bool)

    ‘true` if the `name` can be found as a named capture in #template, `false` otherwise.



26
27
28
29
# File 'lib/arachni/element/link_template/capabilities/inputtable.rb', line 26

def valid_input_name?( name )
    return if !@template
    @template.names.include? name
end