summaryrefslogtreecommitdiff
path: root/lib/cgi.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-23 07:05:59 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-23 07:05:59 +0000
commit552fb72159d3bb27ff40ecc121bbc52a3fff89a1 (patch)
treed6abf2514a01ce6f2ff5160cea2d132933af3973 /lib/cgi.rb
parent44cf56d6e70dbe06a160b004494ba40dd4cfb426 (diff)
2000-06-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi.rb')
-rw-r--r--lib/cgi.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb
index 4fc2ca7..7f40c3a 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)