The Ruby Programming Language
The Ruby Programming Language
Carol Wolf
Computer Science
Object Orientation
Ruby is fully object oriented; everything is an object.
Inheritance is shown by ‘<‘ instead of ‘extends’.
Java: class Student extends Person
Ruby: class Student < Person
Modules are used to group classes
class Person < ActiveRecord:: Base
Modules are like namespaces in html and xml.
Access controls are similar to Java: public, protected and
private. Each controls everything following it in a class.
All variables are accessed by reference.
Variables and Symbols