Sha256: 0a58130e17e60cd7e4bdcc7de574a1852567167fbdedb33dd399d9186698da2b
Contents?: true
Size: 211 Bytes
Versions: 10
Compression:
Stored size: 211 Bytes
Contents
def create_continuation(arg) callcc { |continuation| return continuation } puts "Back in method: arg = #{arg}" exit end cont_one = create_continuation(123) cont_one.call #=> Back in method: arg = 123
Version data entries
10 entries across 10 versions & 5 rubygems