class Tlapse::Server

Attributes

host[RW]
port[RW]

Public Class Methods

new(host: "localhost", port: 9000) click to toggle source
# File lib/tlapse/server.rb, line 7
def initialize(host: "localhost", port: 9000)
  @host = host
  @port = port
end

Public Instance Methods

full_host() click to toggle source
# File lib/tlapse/server.rb, line 17
def full_host
  "druby://#{@host}:#{@port}"
end
serve() click to toggle source
# File lib/tlapse/server.rb, line 12
def serve
  DRb.start_service full_host, drb_object
  DRb.thread.join # wait for commands
end