softwareas.com
Shorthand Parameters
Here is a weird abuse of default variable values to support shorthand variable names. It’s valid Ruby. [ruby] def area(r=radius) { Math::pi * r * r } [/ruby] Simple example, but you get the p…