Articles related to ruby classes
Class Variables - Ruby - About.com
Class variables in Ruby are more or less as you'd expect form an object oriented language. However, Ruby throws you a curveball you can use to your ...
Instance Variables in Ruby - About.com
However, in the class scope (inside the class, but outside of any methods), the scope is the class instance scope. Ruby implements the class hierarchy by ...
Introducing Classes - Ruby - About.com
Ruby is an object oriented programming language. This means code is organized into classes, and data is manipulated via objects. Since this is so essential to ...
Using Attributes With Ruby - About.com
Ruby doesn't make a distinction between these things, but it does give you some ... usr/bin/env ruby class Person def initialize(name) @name = name end def ...
Instantiation and the Initialize Method - Ruby - About.com
Ruby objects are instantiated using the Class.new method, and initialize using their own initialize methods.
Constants in Ruby - About.com
Like just about every programming language every conceived, Ruby supports ... values defined, but a list of classes and modules also defined in that module.
Ruby's Class Hierarchy for Numbers - About.com
All numbers are represented by some descendant of the Numeric class. All of these classes know how to perform operations on each other, so there's no need to ...
Is the "Require" Method Overlooked in Ruby? - About.com
In Ruby, the require method is used to load another file and execute all its statements. This serves to import all class and method definitions in the file. In addition ...
References to Methods in Ruby - About.com
usr/bin/env ruby class Monkey def initialize @bananas = 3 end def eat_banana if @bananas > 0 @bananas -= 1 puts "The monkey eats a banana" else puts ...
Aliasing a Method in Ruby - About.com
Aliasing is a powerful Ruby feature that allows more than one method to be referred ... usr/bin/env ruby class Microwave def on puts "The microwave is on" end ...