Skip to content

Instantly share code, notes, and snippets.

@jerryhebert
Created December 9, 2015 19:34
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 jerryhebert/a8a2fa4ef97c6d57b2bb to your computer and use it in GitHub Desktop.
Save jerryhebert/a8a2fa4ef97c6d57b2bb to your computer and use it in GitHub Desktop.
[32] pry(main)> def foo
[32] pry(main)* end
=> :foo
[33] pry(main)> Object.private_instance_methods.include?(:foo)
=> false
[34] pry(main)> Object.instance_methods.include?(:foo)
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment