Hmm… I didn't think of either of those. I knew I was missing something obvious!
A case of missing the wood for the trees, I think. :-)
Thanks, Colin and Steve!
/Carolyn
On Nov 22, 2012, at 4:51 AM, Steve Clarke st...@sclarkes.me.uk wrote:
I think that discussions about validation of user
I've done a bit of Googling, but couldn't find anything on this. I'd like to
use something like SmartProperties (for lightweight situations) or Virtus (when
I absolutely must have industrial-strength validations, etc) as outlets. My
experiments, such as they are, aren't helping me any! What, if
Sorry - I didn't make that clear!
You're right, Stephen: I'd like to Virtus' attribute or SmartProperty's
property *instead* of attr_accessor. I can roll my own solution, but I'd like
to not have to! (Besides laziness, and the strong possibility of introducing
bugs into any solution I come up
Basically, I need to make sure that when I ask for an integer, I get an
integer. And when I want a string - I can reject anything but strings.
Can't you use Ruby services like is_a? to force it ?
Thanks, David Kramf
On Nov 21, 2012, at 10:04 PM, Carolyn Ann Grant wrote:
Basically, I need to