How do you pass parameters from a child class’s initialize up to the parent’s initialize?
super
this magically passes parameters up
What’s the full way to wrap code that might throw an exception and that we want to do over and over until it works?
begin retry raise rescue ensure end
Why can you use a retry statement within a method without using begin/end?
method and class definitions are implicitly wrapped in begin/end blocks
How many lines makes a class a behemoth that should probably be broken down into smaller classes?
300
What happens when a class hits 300 lines?
We declare it a behemoth and start looking for ways to refactor
How do you set up a singleton in ruby?
inside your class:
include Singleton