The Ruby “core libraries” are the standard Ruby classes and modules that are always available without loading any extra code.
Tag: corelib
Episode #020: Struct
In previous episodes we've used the Struct class in passing to quickly construct classes. This time, we put Struct in the spotlight, and put it through its paces. You'll want …
Episode #018: Subclassing Array
Sooner or later you'll want to subclass Array. This episode looks at why that's a bad idea, and presents an alternative.
Episode #008: #fetch as an Assertion
Hash#fetch is one of my favorite methods. In this episode, I take a look at using it to assert the existence of hash keys.