End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Singleton#dup
dup
lib/singleton.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/singleton.rb, line 103
def dup
raise TypeError, "can't dup instance of singleton #{self.class}"
end
Raises a TypeError to prevent duping.