Skip to content

Instantly share code, notes, and snippets.

@cassiomarques
Created March 29, 2016 14:36
Show Gist options
  • Save cassiomarques/cb89be40afea9d18ab0e to your computer and use it in GitHub Desktop.
Save cassiomarques/cb89be40afea9d18ab0e to your computer and use it in GitHub Desktop.
irb(main):021:0> Kernel.send :private, :class
=> Kernel
irb(main):022:0> foo.class
/Users/cassiommc/.rbenv/versions/2.2.2/lib/ruby/2.2.0/irb.rb:498:in `block (2 levels) in eval_input': private method `class' called for #<NoMethodError:0x007fa8f51abaa8> (NoMethodError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment