From: Tobias Reif Date: 2002-01-09T00:08:34+09:00 Subject: chaining methods Hi, I'm looking for a nice way to chain methods in an API I'm writing. I'd like to be able to write r.width=5.height=6 , but then the receiver of height= is 5. So I have to write (r.width=5).height=6 ; the first expression returns a Rect. def height= value add_attributes('height'=>value.to_s) self end What would be a simple way to make it possible to chain the above methods? Tobi -- http://www.pinkjuice.com/