Hi brianp

The << operator has many different uses: A googling gave

 In an Array it is used to append (push) an object into a given array

 In a Fixnum and a Bignum object  it shifts the number   bits to the 
left

 In an IO object it will write the object (as a string) to the IO
 object.

 In a String it will append the object (to_s) to the String (if the
 object is a Fixnum between 0 and 255 it will convert it to the
 character representation before appending it)

     That means based on context it has different meanings


Sijo
-- 
Posted via http://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