11 lines
218 B
Plaintext
11 lines
218 B
Plaintext
$ ruby example4.rb
|
|
---------- script source ---
|
|
_buf = ''; for item in list
|
|
_buf << ' <p>'; _buf << ( item ).to_s; _buf << '</p>
|
|
'; end
|
|
_buf.to_s
|
|
---------- result ----------
|
|
<p>aaa</p>
|
|
<p>bbb</p>
|
|
<p>ccc</p>
|