summaryrefslogtreecommitdiff
path: root/lib/date.rb
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-09 13:44:26 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-09 13:44:26 +0000
commit616044e47eafdb4ace89a62c5466f237b834f242 (patch)
tree32accb53ae53815ffaeaa2cc429599384aaaabd3 /lib/date.rb
parentd2133ab996a48110c72da25855d1e6f59d9788b4 (diff)
downloadruby-616044e47eafdb4ace89a62c5466f237b834f242.tar.gz
use __send! instead of funcall.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/date.rb')
-rw-r--r--lib/date.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/date.rb b/lib/date.rb
index 45b56702a8..dcc673bed7 100644
--- a/lib/date.rb
+++ b/lib/date.rb
@@ -767,14 +767,14 @@ class Date
when :civil
g[1].each do |e|
break if elem[e]
- elem[e] = d.funcall(e)
+ elem[e] = d.__send!(e)
end
elem[:mon] ||= 1
elem[:mday] ||= 1
when :commercial
g[1].each do |e|
break if elem[e]
- elem[e] = d.funcall(e)
+ elem[e] = d.__send!(e)
end
elem[:cweek] ||= 1
elem[:cwday] ||= 1
@@ -783,14 +783,14 @@ class Date
when :wnum0
g[1].each do |e|
break if elem[e]
- elem[e] = d.funcall(e)
+ elem[e] = d.__send!(e)
end
elem[:wnum0] ||= 0
elem[:wday] ||= 0
when :wnum1
g[1].each do |e|
break if elem[e]
- elem[e] = d.funcall(e)
+ elem[e] = d.__send!(e)
end
elem[:wnum1] ||= 0
elem[:wday] ||= 0