The best way of thinking of it, is that it will assign a default value to a variable. So, if you have @var1 to initialize to a default value when its not set already, then: @var1 ||= "default" -- Posted via http://www.ruby-forum.com/.