How to Install a Specific Version of a Ruby Gem?

You can use the -v flag $ gem install GEM_NAME -v VERSION_NAME You can also use the longer --version flag $ gem install ...

Read the rest

Ruby 2.3 added to_proc

Hash#to_proc returns a proc that takes a key a parameter and returns the matching value. a = { name: "Catalin", email: "ci...

Read the rest