Interestings
Grant Hutchins / David Lee
If you wrap the opening name of a Ruby heredoc in single quotes, its insides will act like a single-quoted string.
If you wrap the opening name in backticks, the heredoc will be immediately executed through system()
<<-HEREDOC
1 + 2 = #{1 + 2}
HEREDOC
=> "1 + 2 = 3\n"
<<-'HEREDOC'
1 + 2 = #{1 + 2}
HEREDOC
=> "1 + 2 = #{1 + 2}\n"
<<-HEREDOC
uname
date
HEREDOC
=> "Darwin\nMon Apr 1 17:50:43 EDT 2013\n"
Found at http://jeff.dallien.net/posts/optional-behavior-for-ruby-heredocs
rvm autolibs
In the latest versions of RVM, you can have RVM build dependencies automatically for you. For instance, if you use Homebrew, you can run
$ rvm autolibs brew
and from then on, RVM will automatically build any packages it needs via Homebrew.
As always, read "brew doctor" to get more info about how to set up your particular system.