Metaprogramming in the Ruby C API: Part Two: Dynamic Methods

In the first article we discussed how to use blocks in the C API; in particular how to yield to a block from a method and how to convert a block to a proc. In this article we will utilize that knowledge and learn how to  dynamically create methods for both classes and objects,  we [...]