On Tue, 2009-08-11 at 14:23 -0700, brianp wrote: > Hey, > > I'm just going through Agile Web Development With Rails and we're > using what I'm assuming is an assignment operator. > > ex: > @items << current_item > > But (unless i skipped it) they didn't really explain what that was. So > what is it exactly and why use it over what (at this point im > assuming) a regular assignment operator = could do?
It's the append method. In the case above, it appends the current item to @items which is (probably) an array. HTH, Bill --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

