Skip to content

Instantly share code, notes, and snippets.

@mtarnovan
Created February 21, 2010 15:40
Show Gist options
  • Save mtarnovan/310375 to your computer and use it in GitHub Desktop.
Save mtarnovan/310375 to your computer and use it in GitHub Desktop.
begin
s = <<EOL
# blank lines for illustrative purposes
raise "Error!!!"
EOL
String.module_eval(s,__FILE__,__LINE__ + 1)
rescue RuntimeError => e
puts "correct raise line is 10"
puts e.backtrace
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment