R
Roger Pack
Though I can't take much credit for this (the original author is maca
[1]), in case it's useful, here's a pretty stable release of the
arguments gem.
usage
class A
def go(a = 3, b = 4)
[a, b]
end
named_args :go
end
Compatible with 1.8.x, and 1.9.x
Ahh.
Enjoy and happy new year.
http://github.com/rdp/arguments
-r
[1] http://github.com/maca/arguments
[1]), in case it's useful, here's a pretty stable release of the
arguments gem.
usage
class A
def go(a = 3, b = 4)
[a, b]
end
named_args :go
end
=> [3, 4]A.new.go(3, 4) => [3, 4]
A.new.goa => 3, :b => 4)
Compatible with 1.8.x, and 1.9.x
Ahh.
Enjoy and happy new year.
http://github.com/rdp/arguments
-r
[1] http://github.com/maca/arguments