diff options
author | Akinori MUSHA <[email protected]> | 2022-02-17 18:02:42 +0900 |
---|---|---|
committer | Akinori MUSHA <[email protected]> | 2022-02-18 11:56:24 +0900 |
commit | dd3501bb9580951623a9aa7c2f86f7c98f9d6b9c (patch) | |
tree | 5f05faf3bf6f366f988a0f6a9996e4249d97308d /lib/set.rb | |
parent | 7757ccb5048b964642a0c884906e35c5fab634f3 (diff) |
Make Set a builtin feature [Feature #16989]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5563
Diffstat (limited to 'lib/set.rb')
-rw-r--r-- | lib/set.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/set.rb b/lib/set.rb index 7832c848cf..852c13a534 100644 --- a/lib/set.rb +++ b/lib/set.rb @@ -854,7 +854,7 @@ module Enumerable # Needs to `require "set"` to use this method. def to_set(klass = Set, *args, &block) klass.new(self, *args, &block) - end + end unless method_defined?(:to_set) end autoload :SortedSet, "#{__dir__}/set/sorted_set" |