7 Quick reference to the [new features in Ruby 2.1](https://www.ruby-lang.org/).
10 ### Named arguments with defaults
14 def pad(num, length:, char: "0")
15 num.to_s.rjust(length, char)
20 pad(42, length: 6) #=> "000042"
21 pad(42) #=> #<ArgumentError: missing keyword: length>
36 - http://globaldev.co.uk/2013/03/ruby-2-0-0-in-detail
37 - http://globaldev.co.uk/2014/05/ruby-2-1-in-detail