"<<" is not only for collection class . even it also works for string

suppose veriable1 = "abc"

veriable1 << "def"

then if you print the value of veriable1 you will get "abcdef"


On Aug 12, 5:21 am, brianp <[email protected]> wrote:
> On Aug 11, 2:38 pm, Conrad Taylor <[email protected]> wrote:
>
> > Also, I would recommend getting a copy of the 'Programming Ruby' and/or
> > 'Programming Ruby 1.9'.
>
> > -Conrad
>
> thanks for the help/recommendation. In the passed 2 week I went
> through Simply Rails 2, now AWDWR, next up is Why's (Poignant) Guide
> to Ruby, then I'll check out your suggestions.
>
> On Aug 11, 2:39 pm, bill walton <[email protected]> wrote:
>
> > It's the append method.  In the case above, it appends the current item
> > to @items which is (probably) an array.
>
> > HTH,
> > Bill
>
> also, thanks for your help !
>
> That makes complete sense. I had a lapse and forgot we were dealing
> with a collection/array.
--~--~---------~--~----~------------~-------~--~----~
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