Skip to content

Instantly share code, notes, and snippets.

@nahi
Created December 28, 2011 02:03
Show Gist options
  • Save nahi/1525803 to your computer and use it in GitHub Desktop.
Save nahi/1525803 to your computer and use it in GitHub Desktop.
% ruby187 -e 'defined?(raise::Foo)'
% jruby -e 'defined?(raise::Foo)'
% jruby --1.9 -e 'defined?(raise::Foo)'
% rbx -e 'defined?(raise::Foo)'
% ruby -e 'defined?(raise::Foo)'
-e:1:in `<main>': unhandled exception
% ruby -e 'p defined?(raise)'
"method"
% ruby -e 'p defined?(raise::foo)'
nil
% ruby -e 'p defined?(raise::FOO)'
-e:1:in `<main>': unhandled exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment