The Ruby “core libraries” are the standard Ruby classes and modules that are always available without loading any extra code.
Tag: corelib
Episode #215: Grep
Today we look at Ruby's grep method, and explore the idea of matching objects by example.
Episode #205: Comparable
In this episode we meet a Ruby standard module that makes it easy to make classes comparable and sortable.
Episode #204: Hash Equality
Building on the previous episode on hash tables, today we tackle the concept of hash equality: how Ruby decides if two objects are the same for the purpose of use …
Episode #203: Hash Table
Today's dish is an exploration of how Ruby is able to quickly look up keys in hashes.
Episode #202: Identity And Equality
Today's episode deals with the concepts of identity and equality - what makes one object equal to another.
Episode #199: Regexp Union
Today's episode demonstrates an easy way to build big regular expressions out of little ones.
Episode #196: String Templates
Have you ever wanted a way to customize the format of certain generated strings, but felt like ERB or some other templating language was overkill? If so, today's episode should …
Episode #195: Advanced String Formats
Following on from the last episode, today we look at some more advanced uses of Ruby's string formatting features.
Episode #194: String Format
Sometimes Kernel#puts and string interpolation doesn't give us the level of control we want over our program's output. When we need to control numeric formatting and field widths, we need …