Class: Arachni::Component::Options::URL
- Defined in:
 - lib/arachni/component/options/url.rb
 
Overview
URL 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/url.rb', line 14 def normalize Arachni::URI( effective_value ) end  | 
  
#type ⇒ Object
      23 24 25  | 
    
      # File 'lib/arachni/component/options/url.rb', line 23 def type :url end  | 
  
#valid? ⇒ Boolean
      18 19 20 21  | 
    
      # File 'lib/arachni/component/options/url.rb', line 18 def valid? return false if !super IPSocket.getaddress( normalize.host ) rescue false end  |