From: Bertram Scharpf Date: 2007-06-29T04:57:04+09:00 Subject: Re: Ruby Forward Slash (/) Hi, Am Freitag, 29. Jun 2007, 04:46:53 +0900 schrieb Vincent Predoehl: > I thought I knew everything about the Ruby syntax, then I saw this: > > (doc/"#sidebar").remove > > What does the slash do, is it an operator? What's it called? What does doc.class say? Maybe this code make it a little more clear: class S ; def / oth ; puts oth.inspect ; self ; end ; end s = S.new s.resond_to? :"/" s / "dummy" Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de