7stud -- wrote: > Ruby gives you a choice with some methods, like +() and =(), to use a > special syntax. Special syntaxes are commonly known as "syntactic > sugar". What happens is that the "sugared syntax" is converted into > the normal method call, so: > > 1 + 2 becomes 1.+(2) > > and > > obj.x = 10 becomes obj.x=(10) (where the method name is 'x=') So, where might I find a list of the special sugary methods? and may I define my own? I know I can override + and =, but could I make or foo be sent to an object with syntax such as 4 foo 4 or "test""this" ? (I don't know that I would want to, but I am curious) Thanks, Sarah -- Posted via http://www.ruby-forum.com/.