From: Chris Carter Date: 2007-06-29T04:52:42+09:00 Subject: Re: Ruby Forward Slash (/) On 6/28/07, 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? > > -- > Posted via http://www.ruby-forum.com/. > > The / is normally the division operator, but like most operators in ruby, it can be overridden. In this case, it is using the hpricot library, and / is an alias to #select (or #at, can't remember which is which). -- Chris Carter concentrationstudios.com brynmawrcs.com