Skip to content

Instantly share code, notes, and snippets.

@carllerche
Created September 1, 2009 20:29
Show Gist options
  • Save carllerche/179364 to your computer and use it in GitHub Desktop.
Save carllerche/179364 to your computer and use it in GitHub Desktop.
class Foo
def initialize
self.im_private # FAIL
end
private
def im_private
puts "PRIVATE"
end
end
class Bar < Foo
def initialize
im_private
end
end
bar = Bar.new
Foo.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment