string - What is the Ruby equivalent of PHP's .= -


possible duplicate:
ruby equivalent of php's “.=” (dot equals) operator

i want create variable include_items , keep on adding strings it.

in php be...

$include_items  = "<td>first item</td>"; $include_items .= "<td>second item</td>"; $include_items .= "<td>third item</td>"; 

try << , see how works. can use +=, creates objects unnecessarily.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -