ruby

May
10
Ruby hashes: defaults and overrides

Ruby hashes: defaults and overrides

Using variable length keyword arguments to vary a default hash
1 min read
May
03
Gem Documentation

Gem Documentation

Read gem documentation locally
1 min read
Apr
25
TIL: Private Ruby Constants

TIL: Private Ruby Constants

Ruby's private constants
1 min read
Nov
22
TIL: Ruby slice_when

TIL: Ruby slice_when

Slicing arrays cleverly
Nov
07
TIL: English Ruby

TIL: English Ruby

Banishing cryptic constant names
Oct
04
Rightward Assignment in Ruby

Rightward Assignment in Ruby

Rightward assignment for deconstruction
2 min read
Sep
22
Memoization the Right Way

Memoization the Right Way

Dealing with nil values
1 min read
Aug
09
Ruby’s secret file

Ruby’s secret file

Ruby has a secret input stream hidden in every source file
1 min read
May
04
Method parameters and constructing defaults in Ruby

Method parameters and constructing defaults in Ruby

Under shoulda known but didn't
1 min read
Jan
19
TIL: Ruby string substitution with hashes

TIL: Ruby string substitution with hashes

gsub values from a hash