Class: RemoteDroid::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/remotedroid.rb

Instance Method Summary collapse

Constructor Details

#initialize(host = '127.0.0.1') ⇒ Client

Returns a new instance of Client.



535
536
537
# File 'lib/remotedroid.rb', line 535

def initialize(host='127.0.0.1')
  @drb = OneDrb::Client.new host: host, port: '5777'    
end

Instance Method Details

#export(s) ⇒ Object



539
540
541
# File 'lib/remotedroid.rb', line 539

def export(s)
  @drb.export(s)
end

#invoke(s, *args) ⇒ Object



543
544
545
# File 'lib/remotedroid.rb', line 543

def invoke(s, *args)
  @drb.invoke(s, *args)
end