The Ruby “core libraries” are the standard Ruby classes and modules that are always available without loading any extra code.
Tag: corelib
Episode #307: Command Loop
In this episode we'll build a simple command-prompt loop in Ruby.
Episode #306: Random Samples
Sometimes we want to be surprised. Today, we'll talk about different ways to pick things at random in Ruby.
Episode #298: File Find
In this "lost episode", we'll learn how to use Ruby's "find" library to dig through files on disk.
Episode #293: Integer Formats
Sometimes using a string format is overkill. Today we look at quick and easy ways to convert to and from hexadecimal, octal, binary, and other integer representations.
Episode #291: Advanced Chunk
Today we continue our look at the Enumerable#chunk method, this time applying it to the problem of a streaming network protocol.
Episode #290: Chunk
Chunking streams of data by some criterion is a technique with a broad range of applicability. In today's episode, we'll learn about Ruby's approach to chunking.
Episode #288: Partition
Today's is a quick episode about efficiently splitting a list into high- and low-priority subsets.
Episode #285: Flat Map
Today we look at how we can tighten up our code with the #flat_map method.