RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Agery 1.0 for Generating Arrays of Ages

Agery is a set of extensions to Ruby’s Integer class to assist developers in generating arrays of ages. It’s designed to help generate data used when pricing is dependent upon age. Supports neat tricks like: 2.seniors + 1.teenager #=> [65, 65, 13], 1.over_21 #=> [21], and 2.under_18 #=> [17, 17]. See the README for more examples and further introduction.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in