Class: Arachni::Component::Options::Path

Inherits:
Base show all
Defined in:
lib/arachni/component/options/path.rb

Overview

Network address option.

Author:

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?, #normalize, #required?, #to_h, #to_rpc_data

Constructor Details

This class inherits a constructor from Arachni::Component::Options::Base

Instance Method Details

#typeObject



19
20
21
# File 'lib/arachni/component/options/path.rb', line 19

def type
    :path
end

#valid?Boolean

Returns:

  • (Boolean)


14
15
16
17
# File 'lib/arachni/component/options/path.rb', line 14

def valid?
    return false if !super
    File.exists?( effective_value )
end