Wrote a cool def snippet for Ruby.