w1d5 revisions Flashcards
1
Q
What is the syntax for creating a new Proc object?
A
Proc.new {|args| code}
2
Q
What is the convention for naming private or protected methods?
A
Add an underscore to the beginning of the name:
def children
private def _children