From: Trans Date: 2007-06-29T04:54:44+09:00 Subject: Re: Ruby Forward Slash (/) On Jun 28, 3:46 pm, Vincent Predoehl wrote: > 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? That's not an official part of Ruby. It looks like an Hpricot method. Hpricot is used to scan xml/html docs and is based on jQeury. However, since _why introduced this notation I've used it myself where it seemed suitable. For instance Facets extends Hash with #/: h = {:a => 1} h/:a #=> 1 T.