Declarative Keyword Parameters in Ruby (SBPP #5)
Reading SBPP has got me thinking about keyword parameters. Ruby doesn’t have keyword arguments, but it fakes them pretty well: def explain(options={}) “the #{options[:the]} says #{options[:says]}” end explain the: “pig”,…