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