Class: Arachni::RPC::XML::Client::Instance::OptsMapper

Inherits:
Mapper
  • Object
show all
Defined in:
lib/rpc/xml/client/instance.rb

Overview

Used to make remote option attributes look like setter methods

Instance Method Summary collapse

Methods inherited from Mapper

#initialize

Constructor Details

This class inherits a constructor from Arachni::RPC::XML::Client::Instance::Mapper

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args, &block) ⇒ Object



64
65
66
67
68
69
# File 'lib/rpc/xml/client/instance.rb', line 64

def method_missing( sym, *args, &block )
    return super( sym, *args, &block ) if sym == :set

    call = "#{@remote}.#{sym.to_s}="
    @server.call( call, *args )
end