Searching for: Class Declaration in Ruby
Class Declaration & Structure
Language: Ruby

Classes are a blueprint for creating individual objects that contain the general characteristics of a defined object type.

Class Methods
Language: Ruby

Used to declare methods called on the class itself (static).

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.


  Next Page >