I wanted to learn something about Continuation, type several examples from some articles with callcc method and I've got the error:
NoMethodError: undefined method `callcc' for main:Object
from (pry):2:in `<main>'
None of articles have mentioned to include continuation library. So how to fix this problem? Thanks
EDIT: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
You need to require 'continuation'.
require 'continuation'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With