Skip to content

Instantly share code, notes, and snippets.

@mauricio
Created April 23, 2012 01:55
Show Gist options
  • Select an option

  • Save mauricio/2468199 to your computer and use it in GitHub Desktop.

Select an option

Save mauricio/2468199 to your computer and use it in GitHub Desktop.
class SomeClass
def good_call
my_private_method
end
def bad_call
self.my_private_method
end
private
def my_private_method
puts "weeee! private method!"
end
end
object = SomeClass.new
object.good_call
object.bad_call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment