- Define a new class using the
class
keyword. - Instantiate instances of the class with the class constructor
new
. - Add instance methods to your class with
def
in the body of the class. - Set instance variables through writer instance methods.
- Identify the scope of an instance variable.
- Read an instance variable through a reader instance method.
- Use
attr_accessor
to define reader and writer methods for attributes. - Hook into an object's instantiation with
#initialize
.
This video is meant to be a review of the first few topics in Object Orientation in Ruby.