Marius, When overwriting property readers and writers, you can use the #attribute_get and #attribute_set methods.
def id attribute_get(:id).to_s + 'foo/baz/bar' end #attribute_set takes the name as the first, and the value as the second parameter. cheers snusnu On Sun, May 2, 2010 at 14:56, Mariusz G <[email protected]> wrote: > def id > id.to_s + 'foo/baz/bar' > end -- 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.
