Skip to Content
Virtual Computer
Fancify Your Initialize Method

Well done! Now let’s spice up our initialize method by passing it some parameters and setting some instance variables.



Update initialize to take two parameters, username and password. In the body of initialize, set the instance variables @username and @password (respectively) to these parameters.

In your initialize method, you’ll also want to create a @files instance variable and set this to an empty hash. This is so we can keep track of our files later!

Folder Icon

Take this course for free

Already have an account?