ruby

Jul
14
TIL: Finding the Source of a Ruby Method

TIL: Finding the Source of a Ruby Method

Find out where the source of a method is defined
Jul
13
TIL: Lambda Composition in Ruby

TIL: Lambda Composition in Ruby

Joining lambdas together for fun and profit
Jul
12
TIL: Ruby Currying

TIL: Ruby Currying

If currying is a way to partially execute a function, here's how Ruby handles it
1 min read
Jul
11

TIL: Ruby Methods are Functions: Getting a Reference

I have to look this up every single time I want to do this: let's grab a reference to a Ruby method so we can pass it around
Jul
10

TIL: Fun With Ruby Method Creation

Ruby's def for method creation is a statement. This means it returns a value and you can use it to do interesting things.
Jul
09

TIL: Ruby Methods Can Take Tuples

Filed in the interesting but don't use category of fun Ruby things, but method arguments can be tuples
Jul
08

TIL: Ruby 2.7's Enumerable#filter_map

The Enumerable module is a source of wonder and crammed with so many useful methods. Today I learned about the new filter_map method
Jul
05

TIL: Complex String Interpolation with Ruby

Another one I re-remembered recently and prefer for complex string interpolations
1 min read
Jul
04

Controlling State Variables in Cucumber

Cucumber steps love local variables as the way the transition state across steps. Problem is that they're a
1 min read
Jul
03

TIL: Ruby's Loop Automatically Breaks at the End of Iteration

Autobreaking loops with iterators