Skip to content

Instantly share code, notes, and snippets.

@y-yagi
Created December 17, 2016 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save y-yagi/71a1018d1474214fb0bf15e9cc7f8485 to your computer and use it in GitHub Desktop.
Save y-yagi/71a1018d1474214fb0bf15e9cc7f8485 to your computer and use it in GitHub Desktop.
require 'irb'
module A
def evaluate(context, statements, file = __FILE__, line = __LINE__)
loop do
if /([0-9]+),([0-9]+)/.match(statements)
statements.gsub!(/([0-9]+),([0-9]+)/, "\\1\\2")
else
break
end
end
super(context, statements, file, line)
end
end
IRB::WorkSpace.prepend(A)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment