tario/fastruby — Issue #38: Default arguments on methods
Author: tario
Created: 2011-10-23 23:56:12+00:00
State: open

example:

def foo(a,b,c=$x)
a+b+c
end

$x = 99
foo(1,2) # 102
foo(1,2,3) # 6