summaryrefslogtreecommitdiff
path: root/lib/racc/compat.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-05-31 17:35:44 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-06-08 17:25:38 +0900
commitd1775aa388bff73ca2d22344d4c3745f23bfe654 (patch)
treeb81f25a36fff5f74a79792e6b54a9bbd48868338 /lib/racc/compat.rb
parentb90683be44d8821a1a8121b6364d653a47421914 (diff)
Try to promote racc as bundled gems
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7877
Diffstat (limited to 'lib/racc/compat.rb')
-rw-r--r--lib/racc/compat.rb33
1 files changed, 0 insertions, 33 deletions
diff --git a/lib/racc/compat.rb b/lib/racc/compat.rb
deleted file mode 100644
index 62f4f630be..0000000000
--- a/lib/racc/compat.rb
+++ /dev/null
@@ -1,33 +0,0 @@
-#--
-#
-#
-#
-# Copyright (c) 1999-2006 Minero Aoki
-#
-# This program is free software.
-# You can distribute/modify this program under the same terms of ruby.
-# see the file "COPYING".
-#
-#++
-
-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