Skip to content

Instantly share code, notes, and snippets.

@tjsingleton

tjsingleton/repl.rb

Last active Dec 20, 2015
Embed
What would you like to do?
_ = nil
scope = binding
loop do
print "> "
code = gets.chomp
_ = eval(code, scope)
puts "=> #{_.inspect}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment