All courses

Course

Learn Ruby

A programmer's best friend. 7 units that take you from your first program to the language's advanced features.

Units
7
Topics
39
Questions
201
Challenges
22
1

Unit 1

Getting started

Output, objects, numbers and strings

  1. Hello, Ruby
  2. Everything is an object
  3. Symbols
  4. Truthy and falsy
  5. Numbers
  6. String interpolation
  7. String methods
  8. Unit quiz and coding challenge
2

Unit 2

Control flow

Conditions, case and loops

  1. if / elsif / else
  2. Statement modifiers
  3. Boolean logic
  4. case / when
  5. Pattern matching
  6. Iterators
  7. Looping on a condition
  8. Loop control
  9. Unit quiz and coding challenge
3

Unit 3

Collections

Arrays, hashes and Enumerable

  1. Arrays
  2. Hashes
  3. Enumerable
  4. Unit quiz and coding challenge
4

Unit 4

Methods and blocks

Arguments, yield, procs and lambdas

  1. Defining methods
  2. Method arguments
  3. Blocks and yield
  4. Blocks as objects
  5. Procs versus lambdas
  6. Unit quiz and coding challenge
5

Unit 5

Object-oriented Ruby

Classes, inheritance and modules

  1. Classes
  2. Class methods
  3. Inheritance
  4. Method visibility
  5. Mixins
  6. Namespaces
  7. Unit quiz and coding challenge
6

Unit 6

Ruby power tools

Exceptions, structs and metaprogramming

  1. Exceptions
  2. Struct
  3. Data
  4. Metaprogramming
  5. Open classes
  6. Unit quiz and coding challenge
7

Unit 7

Ruby in practice

Files, gems and testing

  1. Files
  2. Standard input
  3. Gems and Bundler
  4. Rails
  5. Testing
  6. Unit quiz and coding challenge

Finale

Course exam

100 items from the whole course: 50 questions with choices, 35 typed answers and 15 coding challenges that mix topics.