In this, the first (but far from the last!) RubyTapas episode to focus on a Ruby 2.0 feature, we look at the implications of Ruby's newly relaxed rules for binding …
Search results for: episode 10
616 results found.
Episode #086: Naked Splat
In this episode we tackle how to override base class methods while cleanly passing through multiple base-class arguments. Notes: Paul Battley on Destructuring Assignment in Ruby
Episode #085: Ignore Arguments
Sometimes a block or method may receive arguments that you just don't care about. This episode introduces the idiomatic Ruby way to indicate that certain arguments should be ignored.
Episode #082: Inline Assignment
It's a small thing, but judicious use of inline assignment can make code more DRY and concise. In this episode we look at how to do it, and when.
Episode #072: Tail Part 1: Random Access
This episode kicks off a short miniseries on re-implementing a small subset of the UNIX "tail" command in Ruby. We'll start by learning how to jump around to arbitrary positions …
Episode #058: ARGF
This episode explores ARGF, a powerful object for working with input files in command-line programs.
Episode #050: Include Namespace Module
Sometimes a utility module is overkill. In this episode, we make a namespace module do double-duty.
Episode #040: Gradual Stiffening
In today's episode we'll try to come to grips with a slippery quality---a quality which is of importance to differentiating code that is easy to evolve, from code that isn't. …
Episode #032: Hash Default Blocks
Following on to the episodes about #fetch, today's episode answers the question: what do we do when we want the same defaulting behavior everwhere a Hash is used?