Created
August 10, 2011 16:39
-
-
Save rinaldifonseca/1137355 to your computer and use it in GitHub Desktop.
Quiz: Por qual motivo o código abaixo não funciona??
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
def bar | |
self.test | |
end | |
private | |
def test | |
puts "hello" | |
end | |
end | |
Foo.new.bar |
ahha ai sim hein!
Não deu nem tempo para os caras =)
foi mal ler o tweet alheio, mas eu nao me segurei :D
Eu teria feito a mesma coisa =)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
po essa é fácil, private só funciona com self implícito :P