Ruby one-liners cookbook
The book heavily leans on examples and exercises to help you get comfortable with using Ruby from the command line.
The book heavily leans on examples and exercises to help you get comfortable with using Ruby from the command line. It is recommended that you manually type each example and experiment with them.
Prerequisites: You should be comfortable with programming basics and have prior experience working with Ruby. You should know concepts like blocks, be familiar with string/array/hash/enumerable methods, regular expressions etc. You should also have prior experience working with command line and bash shell and be familiar with concepts like file redirection, command pipeline and so on.