Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RuntimeObject["repl"] = proc do |receiver, caller|
- puts "Launching REPL : type \"die\" to exit."
- loop do
- line = Readline::readline(">> ")
- Readline::HISTORY.push(line)
- break if line == "die"
- message = Message.parse(line)
- value = message.call(Lobby) if line
- puts " => #{message.inspect}"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement