Bertram Scharpf wrote: > 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 ok, it looks like they just overode the operator /. I thought it was a standard part of the Ruby language. -- Posted via http://www.ruby-forum.com/.