background preloader

Ruby Essentials

Ruby Essentials

Ruby Object Oriented Programming From Techotopia Purchase and download the PDF and ePub versions of this Ruby eBook for only $8.99 Ruby is an object oriented environment and, as such, provides extensive support for developing object-oriented applications. The area of object oriented programming is, however, large. Entire books can, and indeed have, been dedicated to the subject. [edit] What is an Object? An object is a self-contained piece of functionality that can be easily used, and re-used as the building blocks for a software application. Objects consist of data variables and functions (called methods) that can be accessed and called on the object to perform tasks. Just about everything in Ruby, from numbers and strings to arrays is an object. [edit] What is a Class? Much as a blueprint or architect's drawing defines what an item or a building will look like once it has been constructed, a class defines what an object will look like when it is created. [edit] Defining a Ruby Class [edit] Creating an Object from a Class

[Ruby-Doc.org: Documenting the Ruby Language] Ruby Programming Language

Related: