On Aug 12, 4:37 pm, Marnen Laibow-Koser <rails-mailing-l...@andreas-
s.net> wrote:
> Robert Walker wrote:
> > Sijo Kg wrote:
> >> Hi brianp
>
> >> The << operator has many different uses: A googling gave
>
> > Just a small clarification: << is not an operator, it is a method. It
> > has whatever "meaning" that is defined by its class.
>
> << is most certainly an operator.  It is also a method; all operators
> are methods in Ruby.  Not all methods are operators, but that's another
> syntactic issue.

If we're being pedantic, then not all operators are methods: ! is not
a method, nor is ?: and != is hardwired to be the negation of ==
(there are a few others eg &&, :: et.)

Fred
>
> Best,
> --
> Marnen Laibow-Koserhttp://www.marnen.org
> [email protected]
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to