Skip to content

Instantly share code, notes, and snippets.

@gumatias

gumatias/repl.rb

Last active Aug 29, 2015
Embed
What would you like to do?
My nasty Ruby REPL
#!/usr/bin/env ruby
def repl
input = gets.chomp
result = eval input
puts result
repl
end
repl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment