danlucraft /blog

Short is Good

August 2007 • Daniel Lucraft

Here’s a little Ruby snippet that I enjoy:

module Kernel
  alias fn lambda
end

Example usage:

lambda {a_call}.should raise_error
fn {a_call}.should raise_error

Courtesy of Arc.

blog comments powered by Disqus