Class Continuation
In:
Parent: Object

Methods

create  

Public Class methods

[Source]

    # File lib/more/facets/continuation.rb, line 52
52: def Continuation.create(*args, &block)
53:   args = [args] if not args.nil? and not args.is_a? Array # 1.6.8 compatibility
54:   cc = nil; result = callcc {|c| cc = c; block.call(cc) if block and args.empty?}
55:   result ||= args
56:   return *[cc, *result]
57: end

[Validate]