mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
use __send! instead of funcall.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d2133ab996
commit
616044e47e
1 changed files with 4 additions and 4 deletions
|
@ -767,14 +767,14 @@ class Date
|
||||||
when :civil
|
when :civil
|
||||||
g[1].each do |e|
|
g[1].each do |e|
|
||||||
break if elem[e]
|
break if elem[e]
|
||||||
elem[e] = d.funcall(e)
|
elem[e] = d.__send!(e)
|
||||||
end
|
end
|
||||||
elem[:mon] ||= 1
|
elem[:mon] ||= 1
|
||||||
elem[:mday] ||= 1
|
elem[:mday] ||= 1
|
||||||
when :commercial
|
when :commercial
|
||||||
g[1].each do |e|
|
g[1].each do |e|
|
||||||
break if elem[e]
|
break if elem[e]
|
||||||
elem[e] = d.funcall(e)
|
elem[e] = d.__send!(e)
|
||||||
end
|
end
|
||||||
elem[:cweek] ||= 1
|
elem[:cweek] ||= 1
|
||||||
elem[:cwday] ||= 1
|
elem[:cwday] ||= 1
|
||||||
|
@ -783,14 +783,14 @@ class Date
|
||||||
when :wnum0
|
when :wnum0
|
||||||
g[1].each do |e|
|
g[1].each do |e|
|
||||||
break if elem[e]
|
break if elem[e]
|
||||||
elem[e] = d.funcall(e)
|
elem[e] = d.__send!(e)
|
||||||
end
|
end
|
||||||
elem[:wnum0] ||= 0
|
elem[:wnum0] ||= 0
|
||||||
elem[:wday] ||= 0
|
elem[:wday] ||= 0
|
||||||
when :wnum1
|
when :wnum1
|
||||||
g[1].each do |e|
|
g[1].each do |e|
|
||||||
break if elem[e]
|
break if elem[e]
|
||||||
elem[e] = d.funcall(e)
|
elem[e] = d.__send!(e)
|
||||||
end
|
end
|
||||||
elem[:wnum1] ||= 0
|
elem[:wnum1] ||= 0
|
||||||
elem[:wday] ||= 0
|
elem[:wday] ||= 0
|
||||||
|
|
Loading…
Reference in a new issue