Sha256: 976620faf778203c482104bb1c1142f40c1fa891335bf3c4c31a146a08c751cc
Contents?: true
Size: 836 Bytes
Versions: 12
Compression:
Stored size: 836 Bytes
Contents
puts "Connecting to game..." require 'irb' require 'irb/completion' module IRB def IRB.start_session(obj) unless $irb IRB.setup nil ## maybe set some opts here, as in parse_opts in irb/init.rb? IRB.load_modules end workspace = WorkSpace.new(obj) if @CONF[:SCRIPT] ## normally, set by parse_opts $irb = Irb.new(workspace, @CONF[:SCRIPT]) else $irb = Irb.new(workspace) end @CONF[:IRB_RC].call($irb.context) if @CONF[:IRB_RC] @CONF[:MAIN_CONTEXT] = $irb.context trap("INT") do $irb.signal_handle end catch(:IRB_EXIT) do $irb.eval_input end print "\n" ## might want to reset your app's interrupt handler here end end require 'drb' DRb.start_service game = DRbObject.new nil, "druby://localhost:7373" IRB.start_session game
Version data entries
12 entries across 12 versions & 1 rubygems