Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • singleton.rb

Methods

Class/Module Index [+]

Quicksearch

Yup

Public Class Methods

new() click to toggle source
 
               # File singleton.rb, line 238
def Yup.new
  begin
    __sleep
    raise  "boom - thread ##{Thread.current[:i]} failed to create instance"
  ensure
    # simple flip-flop
    class << self
      remove_method :new
    end
  end
end