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