On Jun 11, 2010, at 20:36 , Jeremy Evans wrote: > You should realize that Sequel::Model is basically designed to wrap > the hashes that are returned by datasets. If you think of > Sequel::Model instances as hashes with some convenience methods, then > it doesn't seem so odd to access their members with #[].
Oops. I wasn't intending to say that [:percentage] was not eminently Ruby-flavored. It totally is. What seemed a little inelegant to me is to have *some* of the properties of an ingredient have accessor methods, but others not. That's definitely as much the 'fault' of my schema as it is Sequel's representation of it. I assume I could make my accesses totally consistent by just using [:name] and [:flavor] along with [:percentage], but having the accessor methods just looks so much prettier. I still have to figure out what all the effects of the various options are on Inserts, Updates, and Deletes, but I feel like I have more than enough alternatives to figure out something that works gracefully. -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
