Closed RealWeeks closed 7 years ago
Good catch. 😉
@J-Weeks @jrhorn424 Would one or both of you please explain this issue? Thanks.
@gaand In the original teaching of this lesson private was used and it lead to some student confusion.
It was something like this:
class Foo
def bar
"baz"
end
private :bar
def qux
bar # this works
end
end
Foo.new.bar # this does not work
I believe this can be closed. @J-Weeks @gaand
I didn't use it last time (although I should have done).
Your example captures the meaning.
I am not sure if it's actually in the repo, so something to prompt its use other than memory?
Yep. Maybe even adding something like my example above would be enough.
@jrhorn424 @gaand Please feel free to close if discussion is over. Don't want to close mid-conversation.
It's not closable if it isn't addressed.
This should be mentioned when building the deck.
"private means you can't call (foo) below line (number)