barsoom / attr_extras

Takes some boilerplate out of Ruby with methods like attr_initialize.
MIT License
560 stars 31 forks source link

Fix `rattr_initialize` example #20

Closed jeffcole closed 8 years ago

jeffcole commented 8 years ago

The example for rattr_initialize is creating an instance with a single argument, while calling rattr_initialize with two arguments. Running the code would cause an ArgumentError in validate_arity. This change adds the missing second argument to the instance initialization.

It also fixes typos in example calls to rattr_initialize and pattr_initialize.

Thanks for this great project!

jeffcole commented 8 years ago

Not sure what's going on with the TravisCI failure; it looks like it's failing on trying to install rbx-2.5.2 :disappointed: This PR only touches the README :smiley:

henrik commented 8 years ago

Awesome, thank you! I'll remove rbx, don't think we want to support that anymore anyway :)