2020-01-28 09:00:13 -05:00
|
|
|
#--
|
2019-05-13 08:25:22 -04:00
|
|
|
#
|
2020-02-26 23:33:51 -05:00
|
|
|
#
|
2019-05-13 08:25:22 -04:00
|
|
|
#
|
|
|
|
# Copyright (c) 1999-2006 Minero Aoki
|
|
|
|
#
|
|
|
|
# This program is free software.
|
2020-11-10 07:00:49 -05:00
|
|
|
# You can distribute/modify this program under the same terms of ruby.
|
|
|
|
# see the file "COPYING".
|
2019-05-13 08:25:22 -04:00
|
|
|
#
|
2020-01-28 09:00:13 -05:00
|
|
|
#++
|
2019-05-13 08:25:22 -04:00
|
|
|
|
|
|
|
unless Object.method_defined?(:__send)
|
|
|
|
class Object
|
|
|
|
alias __send __send__
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
unless Object.method_defined?(:__send!)
|
|
|
|
class Object
|
|
|
|
alias __send! __send__
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
unless Array.method_defined?(:map!)
|
|
|
|
class Array
|
|
|
|
if Array.method_defined?(:collect!)
|
|
|
|
alias map! collect!
|
|
|
|
else
|
|
|
|
alias map! filter
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|