Class Details

Ruby Programming Price: $1,990

Training promotions may be available, contact a training consultant at 240-667-7507 for more information!

This course introduces students to the Ruby programming language which is the basics of the Ruby on Rails web development framework. Students will learn how to develop code which is elegant and maintainable. They will explore how to write solid object-oriented code using best practices.

Price Match Guarantee Phoenix TS

Ruby Programming Course Includes:

  • Class exercises in addition to training instruction
  • Courseware books, notepads, pens, highlighters and other materials
  • eBooks will be emailed to students registered for Live Online training the week prior to the start of class
  • Course retake option
  • Full breakfast with variety of bagels, fruits, yogurt, doughnuts and juice
  • Tea, coffee, and soda available throughout the day
  • Freshly baked cookies every afternoon - *only at participating locations

Course Outline

Getting Acquainted with Ruby

  • What is Ruby?
  • Features of Ruby
  • Tools You Will Need

Environment Setup

  • Local Environment Setup
  • Ruby Installation on Linux/Unix
  • Using yum to Install Ruby
  • Lab: Install Ruby
  • Ruby Command Line Options
  • Ruby Environment Variables
  • Interactive Ruby (IRB)

Syntax 

  • Whitespace in Ruby Program
  • Line Endings in Ruby Program
  • Ruby Identifiers
  • Reserved Words
  • Here Document in Ruby 
  • Lab: Ruby BEGIN Statement
  • Lab: Ruby END Statement

Classes and Objects 

  • Defining a Class in Ruby
  • Variables in a Ruby Class
  • Creating Objects in Ruby Using new Method
  • Custom Method to Create Ruby Objects
  • Member Functions in Ruby Class
  • Lab: Ruby Classes
  • Lab: Ruby Objects

If, Else, Case, Unless 

  • Ruby if…else Statement
  • Ruby if modifier
  • Ruby unless Statement
  • Ruby unless modifier
  • Ruby case Statement

Loops

  • Ruby while Statement
  • Ruby while modifier
  • Ruby until Statement
  • Ruby until Modifier
  • Ruby for Statement
  • Ruby break Statement
  • Ruby next Statement
  • Ruby redo Statement
  • Ruby retry Statement
  • Lab: Loops

Modules and Mixins

  • Ruby require Statement
  • Ruby include Statement
  • Mixins in Ruby

Strings

  • Expression Substitution
  • General Delimited Strings 
  • Escape Characters 
  • Character Encoding 
  • String Built-in Methods 
  • String unpack Directives 
  • Lab: Strings

Arrays

  • Creating Arrays 
  • Array Built-in Methods 
  • Array pack Directives 
  • Lab: Arrays

Hashes

  • Creating Hashes 
  • Hash Built-in Methods 
  • Lab: Hashes

File I/O 

  • The puts Statement 
  • The gets Statement 
  • The putc Statement 
  • The print Statement 
  • Opening and Closing Files 
  • The File.new Method 
  • The File.open Method 
  • Reading and Writing Files 
  • The sysread Method 
  • The each_byte Method 
  • The IO.readlines Method

Exceptions 

  • Using retry Statement 
  • Using raise Statement 
  • Using ensure Statement 
  • Using else Statement 
  • Catch and Throw 
  • Class Exception 
  • Lab: Exceptions

Regular Expressions

  • Regular-Expression Modifiers 
  • Regular-Expression Patterns 
  • Regular-Expression Examples 
  • Anchors 
  • Special Syntax with Parentheses 
  • Search and Replace 
  • Lab: Expressions

Objectives

Ruby Programming Course Objectives: 

  • The fundamentals of Ruby programming 
  • The major features of Ruby language 
  • To design Ruby applications, development tools, and administrative scripts