Advertisement
Guest User

Untitled

a guest
Apr 4th, 2014
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.35 KB | None | 0 0
  1.   RuntimeObject["repl"] = proc do |receiver, caller|
  2.     puts "Launching REPL : type \"die\" to exit."
  3.     loop do
  4.       line = Readline::readline(">> ")
  5.       Readline::HISTORY.push(line)
  6.       break if line == "die"
  7.       message = Message.parse(line)
  8.       value = message.call(Lobby) if line
  9.       puts " => #{message.inspect}"
  10.     end
  11.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement