diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-06-23 07:05:59 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-06-23 07:05:59 +0000 |
| commit | 2431451396d851174715edf98c00231581e294f2 (patch) | |
| tree | d6abf2514a01ce6f2ff5160cea2d132933af3973 /lib | |
| parent | 623f789e46a571d4d18ba5a7ae5fd657e5d34a0f (diff) | |
| download | ruby-2431451396d851174715edf98c00231581e294f2.tar.gz ruby-2431451396d851174715edf98c00231581e294f2.tar.xz ruby-2431451396d851174715edf98c00231581e294f2.zip | |
2000-06-23
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/cgi.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb index 4fc2ca71e..7f40c3a0f 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -975,7 +975,7 @@ convert string charset, and set language to "ja". '="' + CGI::escapeHTML(value) + '"' end }.to_s + ">" + - if iterator? + if block_given? yield.to_s else "" @@ -1011,7 +1011,7 @@ convert string charset, and set language to "ja". '="' + CGI::escapeHTML(value) + '"' end }.to_s + ">" + - if iterator? + if block_given? yield.to_s + "</element.upcase>" else "" @@ -1036,7 +1036,7 @@ convert string charset, and set language to "ja". else href end - if iterator? + if block_given? super(attributes){ yield } else super(attributes) @@ -1055,7 +1055,7 @@ convert string charset, and set language to "ja". else href end - if iterator? + if block_given? super(attributes){ yield } else super(attributes) @@ -1074,7 +1074,7 @@ convert string charset, and set language to "ja". else cite or "" end - if iterator? + if block_given? super(attributes){ yield } else super(attributes) @@ -1093,7 +1093,7 @@ convert string charset, and set language to "ja". else align or "" end - if iterator? + if block_given? super(attributes){ yield } else super(attributes) @@ -1225,7 +1225,7 @@ convert string charset, and set language to "ja". end method end - if iterator? + if block_given? body = yield else body = "" @@ -1315,7 +1315,7 @@ convert string charset, and set language to "ja". buf.concat( doctype ) end - if iterator? + if block_given? buf.concat( super(attributes){ yield } ) else buf.concat( super(attributes) ) @@ -1397,7 +1397,7 @@ convert string charset, and set language to "ja". end action end - if iterator? + if block_given? form(attributes){ yield } else form(attributes) @@ -1672,7 +1672,7 @@ convert string charset, and set language to "ja". else name end - if iterator? + if block_given? super(attributes){ yield } else super(attributes) |
