usage
class A
def go(a = 3, b = 4)
[a, b]
end
named_args :go
end
>> A.new.go(3, 4)
=> [3, 4]
>> A.new.go(:a => 3, :b => 4)
=> [3, 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
--
Posted via http://www.ruby-forum.com/.
The README is wrong about install, github doesn't build gems anymore,
and the name doesn't match your repo anyway.
Looks interesting, will check it out.
>
> usage
>
> class A
> def go(a = 3, b = 4)
> [a, b]
> end
> named_args :go
> end
>
>>> A.new.go(3, 4)
> => [3, 4]
>>> A.new.go(:a => 3, :b => 4)
> => [3, 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
> --
> Posted via http://www.ruby-forum.com/.
>
>
--
Michael Fellinger
CTO, The Rubyists, LLC
oops my bad.
That's now
$ gem install rdp-arguments
Thanks!
-r