I want to pass a block to a block that is instance_eval
-ed like this,
instance_eval(&block) { puts "test" }
where block
is defined as containing something like:
puts "Incoming message:"
yield
Is this possible? I discovered a way of doing this with fibers, but I'm trying to use yield
first. Looking at this question, it looks like this might not be possible, but I wanted to confirm.