Incompatible Symbol#to_proc was reverted upstream

This commit is contained in:
Jeremy Kemper
2008-04-20 03:52:13 -07:00
parent f67b070fac
commit daab53d8c0

View File

@@ -1,10 +1,3 @@
# Remove 1.8.7's incompatible method.
if :to_proc.respond_to?(:to_proc) && [1] != ([[1, 2]].map(&:first) rescue false)
class Symbol
remove_method :to_proc
end
end
unless :to_proc.respond_to?(:to_proc)
class Symbol
# Turns the symbol into a simple proc, which is especially useful for enumerations. Examples: