class IRBRemote::Client

Public Class Methods

new() click to toggle source
# File lib/irb_remote/client.rb, line 5
def initialize
  @drb_server_host = IRBRemote.config.host
  @drb_server_port = IRBRemote.config.port
end

Public Instance Methods

start() click to toggle source
# File lib/irb_remote/client.rb, line 10
def start
  DRb.start_service
  server = DRbObject.new_with_uri("druby://#{@drb_server_host}:#{@drb_server_port}")
  server.connected($stdin, $stdout)
end