UMBC Training Centers logo
 

Ruby Programming

 

Course Description | Course Outline | Software Development | IT Training

 

1. Chapter 1: An Overview Of Ruby (Part 1)

  • What is Ruby?
  • Executing Ruby Code
  • Getting Input
  • Comments
  • Numbers
  • Strings
  • The Class Class
  • Decision Making
  • The case Construct
  • Loops
  • Iterators
  • Regular Expressions
  • Functions
  • Odds and Ends
  • Time Methods

    2. Chapter 2: An Overview of Ruby (Part 2)

  • 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 Functions
  • Hashes and Functions
  • Named Parameters
  • Symbols
  • Procs
  • Closures


    3. Chapter 3: 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

    4. Chapter 4: Input and Output

  • Introduction
  • Reading from the Standard Input
  • Reading a Character at a Time
  • Writing to the Standard Output
  • 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

    5. Chapter 5: Exceptions

  • Introduction
  • Exception Hierarchy
  • Handling Exceptions
  • Multiple Rescue Clauses
  • Exceptions are Classes
  • ensure
  • retry
  • raise
  • Creating Your Own Exceptions
  • catch and throw


    6. Chapter 6: 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

    7. Chapter 7: Odds and Ends

  • Ruby Conventions
  • Strings Are References
  • The Selection Operator, [ ]
  • Index Methods
  • Stripping Whitespace Characters
  • Bit Manipulation
  • The Upto Method
  • Substituting
  • Processing a Line at a Time
  • Marshalling
  • Reflection
  • grep
  • Classes are Objects
  • Aliasing
  • Testing
  • Test::Unit::TestCase
  • Testing Your Own Classes
  • Freezing Objects
  •