On Oct 13, 2:24 am, Marnen Laibow-Koser
[email protected] wrote:
Then you want something like
def status=(value)
new_value = do_something_to(value)
self[:status] = new_value # assuming this class is derived from AR
endThe reason your attempt to do status = value didn’t work is that it was
just calling the same method.
Aaaah. Or course! You can omit the parantheses in ruby method call.
Thanks heaps for pointing me this out.
Kind regards,
–
Certified Scrum Master
http://blog.scrum8.com | http://jobs.scrum8.com |
http://twitter.com/scrum8