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
-
bahuvrihi March 26th, 2009 @ 08:38 PM
- State changed from new to invalid
Nope... this is a special case that should be handled by the server.
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.
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.