Module: Arachni::Element::Cookie::Capabilities::Inputtable
- Defined in:
- lib/arachni/element/cookie/capabilities/inputtable.rb
Overview
Extends Arachni::Element::Capabilities::Inputtable with Arachni::Element::Cookie-specific functionality.
Constant Summary
Constants included from Arachni::Element::Capabilities::Inputtable
Arachni::Element::Capabilities::Inputtable::INPUTTABLE_CACHE
Instance Attribute Summary
Attributes included from Arachni::Element::Capabilities::Inputtable
Instance Method Summary collapse
Methods included from Arachni::Element::Capabilities::Inputtable
#[], #[]=, #changes, #dup, #has_inputs?, #inputtable_id, #reset, #to_h, #try_input, #update, #valid_input_data?, #valid_input_name?, #valid_input_name_data?, #valid_input_value?, #valid_input_value_data?
Instance Method Details
#inputs=(inputs) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/arachni/element/cookie/capabilities/inputtable.rb', line 35 def inputs=( inputs ) k = inputs.keys.first.to_s v = inputs.values.first.to_s @data[:name] = k @data[:value] = v if k.to_s.empty? super( {} ) else super( { k => v } ) end end |