#10 ✓invalid
bahuvrihi

Delegates should allow a :to_s attribute

Reported by bahuvrihi | February 11th, 2009 @ 11:29 PM

This to_s attribute would point to a block that stringifies a value into a format acceptable to the attr_writer. In the case of most Validation blocks, a default of to_yaml will suffice, but there are special cases (ex range and regexp). Having a to_s block attribute allows arbitrarily complex/weird mappings of command line inputs to configs and back.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Class configurations that map to the command line.

People watching this ticket

Pages