Language features, syntax, and gotchas.
Category: Language
Episode #080: Splat Basics
Ruby supports a limited form of destructuring assignment, in the form of the "splat" operator. In today's episode we go over splat basics, in order to lay a foundation for …
Episode #073: Tail Part 2: Do While
As we continue to rewrite a subset of the UNIX tail(1) command, we learn how to write a do...while loop in Ruby.
Episode #071: Break With Value
In the second of two episodes about the 'break' keyword, we discover how to override method return values to suit our own needs.
Episode #070: Break
In this, the first of two episodes on the 'break' keyword, we look at how it can be applied beyond breaking out of loops.
Episode #062: Fiber
In this episode we'll explore Ruby's lightweight concurrency primitive by using it to emulate the Enumerator class.
Episode #058: ARGF
This episode explores ARGF, a powerful object for working with input files in command-line programs.
Episode #055: Runnable Library
It's a library! No, it's an executable! Relax, your Ruby files can be both require-able libraries and executables!
Episode #043: Exclusive Or
This episode looks at Ruby's logical XOR operator, and how it can be useful in checking that a method was called with the correct optional arguments.