mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
2f19c5b7e0
commit
cc54e1cf48
1 changed files with 1 additions and 1 deletions
|
@ -27,5 +27,5 @@ module Enumerable
|
|||
# Makes a set from the enumerable object with given arguments.
|
||||
def to_set(klass = Set, *args, &block)
|
||||
klass.new(self, *args, &block)
|
||||
end
|
||||
end unless instance_methods.include?(:to_set) # RJIT could already load this from builtin prelude
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue