DEV Community

Cover image for TIL: Today I Learned
Alana Edwards
Alana Edwards

Posted on

TIL: Today I Learned

I was (and arguably still am) having difficulties grasping certain basic Ruby concepts; especially creating classes and defining methods. I consulted with a TA(John) and he really helped me understand how to define a method. Today I learned that

def initialize

allows you to set the initial value for an object.

Top comments (1)

Collapse
 
sethcalebweeks profile image
Caleb Weeks

Welcome to DEV and the programming community!