In the second of two episodes about the 'break' keyword, we discover how to override method return values to suit our own needs.
Search results for: episode 64?s=episode 64
616 results found.
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 #059: Enumerator
In previous episodes we've touched on Enumerator in passing. This time it'll take center stage, as we explore just what an Enumerator is and what it's good for.
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 #015: Advanced #fetch
In this final installment on the #fetch method we look at #fetch beyond Hash; #fetch with nested hashes; re-using default blocks; and more.
Episode #012: #fetch for Defaults
How to use Hash#fetch to provide defaults for missing keys, and why you might prefer that to other techniques for defaulting values.
Episode #513: Literal Expectation
In tests is it better to assert against model attributes, or against literal values? In this episode, you'll see why one option is clearly preferable to the other.