# \[ANN\] rdp-arguments -- named arguments for 1.8 and 1.9!

**URL:** <https://www.ruby-forum.com/t/ann-rdp-arguments-named-arguments-for-1-8-and-1-9/180988>\
**Category:** Ruby\
**Created:** [January 3, 2010, 3:41am UTC](https://www.ruby-forum.com/t/ann-rdp-arguments-named-arguments-for-1-8-and-1-9/180988 "2010-01-03T03:41:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [January 3, 2010, 3:41am UTC](https://www.ruby-forum.com/t/ann-rdp-arguments-named-arguments-for-1-8-and-1-9/180988/1 "2010-01-03T03:41:49Z")

</div>

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

> > 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.

> **[GitHub - rdp/arguments: You don't have to wait until Ruby 2.0 to get...](https://github.com/rdp/arguments)**
>
> You don't have to wait until Ruby 2.0 to get (named|keyword) arguments. Has been tested with 1.8.6 and 1.9.1 - GitHub - rdp/arguments: You don't have to wait until Ruby 2.0 to get (named|ke...

-r

[1] [GitHub - maca/arguments: You don't have to wait until Ruby 2.0 to get (named|keyword) arguments. Works with 1.8.6, 1.8.7 and 1.9.1. An alternative to options hash.](http://github.com/maca/arguments)

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [January 3, 2010, 5:51am UTC](https://www.ruby-forum.com/t/ann-rdp-arguments-named-arguments-for-1-8-and-1-9/180988/2 "2010-01-03T05:51:25Z")

</div>

On Sun, Jan 3, 2010 at 11:41 AM, Roger P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> 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.

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.

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [January 4, 2010, 3:56am UTC](https://www.ruby-forum.com/t/ann-rdp-arguments-named-arguments-for-1-8-and-1-9/180988/3 "2010-01-04T03:56:21Z")

</div>

ichael Fellinger wrote:

> On Sun, Jan 3, 2010 at 11:41 AM, Roger P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > 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.
> 
> 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.

oops my bad.  
That’s now

$ gem install rdp-arguments

Thanks!  
-r
