Hi Piotr,

> >> #<Class:0x1015a1d68>
> >> #<Class:0x10158b540>
>
> It's done like that so we can support providing options via #[]. Let me know 
> if you have a better way of doing it.

We could override Enum.to_s and Flag.to_s to be more helpful during
debugging, perhaps return something like:

  "DataMapper::Property::Enum[:first, :second, :third]"
  "DataMapper::Property::Flag[:first, :second, :third]"

While not as good of a solution as figuring out some way to not use
anonymous classes, this will resolve one source of confusion.

--

Dan

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" 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/datamapper?hl=en.

Reply via email to