Class: Arachni::Component::Options::Float
- Defined in:
- lib/arachni/component/options/float.rb
Overview
Floating point option.
Instance Attribute Summary
Attributes inherited from Base
#default, #description, #name, #value
Instance Method Summary collapse
Methods inherited from Base
#==, #effective_value, #for_component, from_rpc_data, #hash, #initialize, #missing_value?, #required?, #to_h, #to_rpc_data
Constructor Details
This class inherits a constructor from Arachni::Component::Options::Base
Instance Method Details
#normalize ⇒ Object
14 15 16 |
# File 'lib/arachni/component/options/float.rb', line 14 def normalize Float( effective_value ) rescue nil end |
#type ⇒ Object
22 23 24 |
# File 'lib/arachni/component/options/float.rb', line 22 def type :float end |
#valid? ⇒ Boolean
18 19 20 |
# File 'lib/arachni/component/options/float.rb', line 18 def valid? super && normalize end |