barsoom / attr_extras

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

Optional attributes with default values #11

Closed bartoszkopinski closed 9 years ago

bartoszkopinski commented 9 years ago

This introduces changes requested in #6. Thanks for a reminder and let me know your thoughts.

henrik commented 9 years ago

Thank you! Hope to look at this within a few days.

henrik commented 9 years ago

@teoljungberg and I have discussed adding real Ruby 2 keyword argument support to attr_extras. That could be another way to handle default values, though then that wouldn't get us defaults for positional arguments.

henrik commented 9 years ago

Closing this since #16 passes all tests we've thrown at it.