Skip to content

Instantly share code, notes, and snippets.

@kaspergrubbe
Created April 30, 2015 16:49
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 kaspergrubbe/cc9ed81c0f0ef8ef2dfd to your computer and use it in GitHub Desktop.
Save kaspergrubbe/cc9ed81c0f0ef8ef2dfd to your computer and use it in GitHub Desktop.
def test
puts "Hello"
end
=> nil
Object.test
=> NoMethodError: private method 'test' called for Object:Class
Object.send(:test)
Hello
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment