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.
Constant Summary
Constants included from Capabilities::Inputtable
Capabilities::Inputtable::INPUTTABLE_CACHE
Instance Attribute Summary
Attributes included from Capabilities::Inputtable
Instance Method Summary collapse
-
#valid_input_data?(data) ⇒ Bool
‘true` if the `data` don’t contain strings specified in #INVALID_INPUT_DATA, ‘false` otherwise.
-
#valid_input_name?(name) ⇒ Bool
‘true` if the `name` can be found as a named capture in #template, `false` otherwise.
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.
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.
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 |