Ruby Fundamentals Training

This course teaches you the fundamentals of the Ruby language: syntax, common programming constructs, object-oriented design, and best practices. Ruby -- known for being both powerful and fun to use -- is one of the premiere object-oriented languages in use today.

This Ruby class is often taken in conjunction with the Ruby on Rails class scheduled the remainder of the week.

Object-Oriented Programming Constructs in Ruby

Object-oriented programming languages include specific elements to make it easy to implement an object model in code. We look at the facilities in Ruby for implementing objects, and compare them to related facilities in C++ and Java. In this section you will learn how to:

create Ruby classes and inherit from existing classes

create Ruby fields and properties

create Ruby methods

set visibility of properties and methods to private, protected, or public

create class methods, fields, and properties -- items similar to "statics" in other languages

determine if a Ruby object is of a particular type, and/or "responds to" a particular message or method call

A Ruby Contact Manager

As a practical test of what you have learned, we design and implement a simple contact manager application in Ruby using object-oriented design and programming techniques. You will get hands-on experience in:

creating an object model to represent a business problem

coding Ruby classes to implement the model

adding Ruby infrastructure to make the model useful as a running program