In Ruby 1.9 there exists a new syntax for writing your lambda functions. How you would normally do these anonymous functions went something like this:

scope :enabled, lambda{ where(:enabled => true) }

Ruby 1.9 supports what is called 'stabby lambda' which looks like this:

scope :enabled, ->{ where(:enabled => true) }

As you can see this might save you some key strokes at the end of your day. I find that saving key strokes saves time, so this was a neat find for me.

David Chapman is a Ruby on Rails developer at isotope|eleven with over 5 years development experience. He's currently majoring in Electrical Engineering with a minor in Computer Science at the University of Alabama at Birmingham. David is a Linux geek, a math geek, a physics geek, a serious gamer, and a reader of Reddit. His super power is eating chips and salsa.