DEV Community

Mohammad Ali
Mohammad Ali

Posted on

Today I Learned... (TIL)- Week 3

  • Ruby Basics
    • Instance variable vs local variable: When using variable inside a class, only instance variable, which are prefixed with the @ character, will be visible to all of the methods in the class. A variable that only exists inside of a code block or methods, is called local variable.

Top comments (0)