&block question

Hello friends,

I’m having a hard time implementing the equivalent of this in the ruby
C API:

module M
module_function
def run(&block)
module_eval(&block)
end
end

How is the &block operation implemented in the C API? im looking for
something to convert a proc to a
block. i’ve scanned many of the .c files and have found nothing.
Anyone have any ideas?

cheers

John

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs