Skip to content

Ruby Programming - Corporate Training


Bright Solutions Global PLC

Summary

Price
Enquire to get more info on pricing
Study method
Onsite
Duration
3 days
Qualification
No formal qualification

Overview

This 3 day course covers the fundamental components of the Ruby Programming Language. Emphasis is placed on the object oriented aspects of Ruby. Topics include arrays, hashes, regular expressions, io, exceptions, modules, and applications areas

Description

Course Outline

1. An Introduction to Ruby

What is Ruby? Installing Ruby

Executing Ruby Code Getting Help

Dynamic Types

Ruby Reserved Words Naming Conventions

2. Standard Ruby Data Types

Numbers Strings

Simple Input and Output Converting String Input Regular Expressions Time Methods

3. Language Components

The if Statement

The Logical Operators The case Construct Loops

Iterators

Numeric Iterators String Iterators Methods

Odds and Ends

4. Collections

Arrays

Array Operator Methods Array Equality Operator

Arrays as Stacks and Queues Higher Dimensional Arrays

Other Useful Arrays Methods Command Line Arguments Hashes

Common Hash Methods Sorting Hashes

Iterators with Arrays and Hashes Arrays and Methods Hashes and Methods Named Parameters Symbols Procs

Closures

5. Classes

Objects

Brief History of OOP OOP Vocabulary

Creating a New Class Using Objects

Defining Operator Methods Inheritance Ancestors self

Access Levels – public

Access Levels – private

Access Levels – protected Access Levels – Specification Class Data and Class Methods Adding Methods to Classes and

Objects

Special Global Variables Scope of Variables

Built-in Classes The Math Class

The NilClass Class

TrueClass and FalseClass Built-in Class Hierarchy

6. Input and Output

Introduction

Reading from the Standard Input Writing to the Standard Output

Reflection grep

Classes are Objects Aliasing Testing

Test::Unit::TestCase Testing Your Own Classes Freezing Objects Object Equality

Reading and Writing Disk Files Reading Files Using Iterators

I/O With Command Line Commands Seeking About Files tell

Capturing Data About Files Processing Directories

7. Exceptions

Introduction

Exception Hierarchy Handling Exceptions

Multiple Rescue Clauses Exceptions are Classes ensure retry raise

Creating Your Own Exceptions catch and throw

8. Modules

Introduction

Using Core Ruby Classes Ruby Standard Library require

Search Path

File Organization load

Modules include Mixins

Using the comparable Module Collection Classes yield

Using the Enumerable Module

9. Odds and Ends

Ruby Conventions Bit Manipulation Substituting Marshalling

Who is this course for?

Programmers who have programmed languages such as, but not limited to, C, C++, Java, or Perl.

Requirements

Students should have at least six months of programming experience in at least one programming language.

Questions and answers

Reviews

Currently there are no reviews for this course. Be the first to leave a review.

FAQs

Study method describes the format in which the course will be delivered. At Reed Courses, courses are delivered in a number of ways, including online courses, where the course content can be accessed online remotely, and classroom courses, where courses are delivered in person at a classroom venue.

CPD stands for Continuing Professional Development. If you work in certain professions or for certain companies, your employer may require you to complete a number of CPD hours or points, per year. You can find a range of CPD courses on Reed Courses, many of which can be completed online.

A regulated qualification is delivered by a learning institution which is regulated by a government body. In England, the government body which regulates courses is Ofqual. Ofqual regulated qualifications sit on the Regulated Qualifications Framework (RQF), which can help students understand how different qualifications in different fields compare to each other. The framework also helps students to understand what qualifications they need to progress towards a higher learning goal, such as a university degree or equivalent higher education award.

An endorsed course is a skills based course which has been checked over and approved by an independent awarding body. Endorsed courses are not regulated so do not result in a qualification - however, the student can usually purchase a certificate showing the awarding body's logo if they wish. Certain awarding bodies - such as Quality Licence Scheme and TQUK - have developed endorsement schemes as a way to help students select the best skills based courses for them.