Skip to content

Instantly share code, notes, and snippets.

@seven1m
Forked from bayleedev/broke.rb
Last active December 16, 2015 07:29
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 seven1m/5399208 to your computer and use it in GitHub Desktop.
Save seven1m/5399208 to your computer and use it in GitHub Desktop.
class Foo
class << self
private
def bar
puts 'I did not broke your ruby'
end
end
end
Foo.bar # NoMethodError: private method `bar' called for Foo:Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment