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
Post a Comment