Searching for: Class Variables in Ruby
Class and Instance Variables
Language: Ruby

Used declare variables within a class. There are two main types: class variables, which have the same value across all class instances (i.e. static variables), and instance variables, which have different values for each object instance.

Local Variable Declaration
Language: Ruby

Used to declare a variable outside of a class.

Inheritance
Language: Ruby

Inheritance is used to inherit another class' members, including fields and methods. A sub class extends a super class' members.

Functions
Language: Ruby

A function is a block of code that can be called from another location in the program or class.


  Next Page >