From 552fb72159d3bb27ff40ecc121bbc52a3fff89a1 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 23 Jun 2000 07:05:59 +0000 Subject: 2000-06-23 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/cgi.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'lib') diff --git a/lib/cgi.rb b/lib/cgi.rb index 4fc2ca71ea..7f40c3a0f6 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 + "" 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) -- cgit v1.2.3