class Object

Public Instance Methods

__raise__(*args)
Alias for: raise
raise(*args) click to toggle source
Calls superclass method
# File lib/continuable/core_ext/object.rb, line 4
      def raise(*args)
              callcc do |continuation|
                      begin
                              super
                      rescue Exception => ex
                              ex.continuation = continuation if ex.respond_to?(:continue)
      super ex
    end
  end
end
Also aliased as: __raise__
raise_continuable(*args) click to toggle source
# File lib/continuable/core_ext/object.rb, line 15
def raise_continuable(*args)
      begin
              __raise__ *args
      rescue Exception => ex
              (class << ex; self; end).send(:include,Continuable)
              raise ex
      end
end