Re:The Billy Baldwin of Conditional Assignment in Ruby
by laserlemon on Tuesday June 21, 2011 @03:31PM
(#2680058)
Thank you for pointing this out. Addressed in the comments:
http://collectiveidea.com/blog/archives/2011/06/21/the-billy...
@value ||= "foo" is more efficient than
As it actually evaluates as follows: This is especially good when working with hashes, as the left hand side is only evaluated once, not twice.