Skip to content

Instantly share code, notes, and snippets.

@kalorz
Created September 15, 2017 10:40
Show Gist options
  • Save kalorz/8561eb3031f35e397c217b28f005e5cb to your computer and use it in GitHub Desktop.
Save kalorz/8561eb3031f35e397c217b28f005e5cb to your computer and use it in GitHub Desktop.
Ruby Gotchas: private self.method
class Foo
private
def self.bar
puts 'Not-so-private class method called'
end
end
Foo.bar # => "Not-so-private class method called"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment