Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
irb(main):001:0> defined? Object
=> "constant"
irb(main):002:0> defined? Foo
=> nil
irb(main):003:0> defined? bar
=> nil
irb(main):004:0> bar = "sup"
=> "sup"
irb(main):005:0> defined? bar
=> "local-variable"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.