Class: Arachni::RPC::Client::Instance::OptsMapper
- Inherits:
-
RemoteObjectMapper
- Object
- RemoteObjectMapper
- Arachni::RPC::Client::Instance::OptsMapper
- Defined in:
- lib/arachni/rpc/client/instance.rb
Overview
Used to make remote option attributes look like setter methods
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &block) ⇒ Object
39 40 41 42 43 44 |
# File 'lib/arachni/rpc/client/instance.rb', line 39 def method_missing( sym, *args, &block ) return super( sym, *args, &block ) if sym == :set call = "#{@remote}.#{sym.to_s}=" @server.call( call, *args, &block ) end |