From: Martin DeMello Date: 2002-12-02T00:43:20+09:00 Subject: Re: [FAQ] [Revised] What do some of Ruby's symbols mean? Gavin Sinclair wrote: Looking good. Some suggestions and typofixes: > <= < != == > >> That last should be >= > Relational operators, as per most other computer languages. Are often > redefined for use with various classes. > > + - * / % > Common arithmetic operators. Some are defined also for String, Array > and others. Might be worth defining % as it's not standart > === > Case comparison operator. Used to select branches in case statements. When you say "case a; when b", a === b is implicitly called > << > Singleton definition. See [appropriate link] for more info. > Also commonly used as a method for appending (e.g. Array and String). Singleton *class* definition > . ... ..., not . > Range definers, as in 0...10 and "a".."z" > ?! Write ? ! instead of ?!, since we have two-character operators This might also be a good place to explain the class#method notation, #{} in strings, and the ?c to get a character's ascii value, and perhaps @ and @@ for completeness. martin