Advanced Ruby Features

This course is included in our On-demand training solution.


Ruby contains a number of features for advanced data management including advanced arrays, regular expressions, accessors, and virtual attributes. In this course, you’ll learn about the use of these features. You’ll also learn about overloading and overriding methods, and adding methods to classes and objects. You’ll explore features such as open classes, ducktyping, and class hooks, as well as immutability and marshaling. Finally, you’ll learn about networking in Ruby, as well using GetOptLong, and idiomatic Ruby.

Target Audience

Programmers with knowledge of Ruby who want to learn how to implement advanced Ruby features



Expected Duration

90 min.

Course Objectives

Course Introduction

Higher Math

  • use higher math in Ruby
  • Random Numbers

  • use random numbers in Ruby
  • Advanced Arrays

  • use advanced arrays in Ruby
  • Regular Expressions

  • use regular expressions in Ruby
  • Accessors and Virtual Attributes

  • use accessors and virtual attributes in Ruby
  • Overriding Methods

  • use override methods in Ruby
  • Overloading Methods

  • use overload methods in Ruby
  • Adding Methods to a Ruby Class

  • add methods to a Ruby class
  • Ducktyping

  • use ducktyping in Ruby
  • Object Equality

  • check for object equality in Ruby
  • Mutability and Immutability in Objects

  • implement immutability in Ruby objects
  • Marshaling in Ruby

  • implement marshaling or serialization in Ruby
  • Socket Programming

  • implement networking functionality with Ruby
  • GetOptLong

  • use GetOptLong in Ruby
  • Idiomatic Ruby

  • use idiomatic Ruby
  • Exercise: Use Advanced Ruby Features