Class: Anyt::RemoteControl::Server

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

Instance Method Summary collapse

Constructor Details

#initialize(port) ⇒ Server

Returns a new instance of Server.



13
14
15
16
17
18
# File 'lib/anyt/remote_control.rb', line 13

def initialize(port)
  DRb.start_service(
    "druby://localhost:#{port}",
    Client.new
  )
end