Ruby Trick Shots
One handy trick that I've found a lot of people don't know:There's often the problem when working in IRB that you want to run a command that will produce a huge amount of output. For example, you might be reading a large file and assigning its value to a variable:    s = File.read("largefile.txt")

This can take a long time, as you wait for Ruby to print the entire contents to the terminal. However, this can be avoided by using a semicolon and another statement:    s = File.read("largefile.txt"); 0

Now the only thing printed out to the terminal will be 0, but s will still get the contents of largefile.txt.