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 [...]
Filed under: C, metaprogramming, programming, ruby | Tagged: metaprogramming, method_missing, ruby, ruby C API | 3 Comments »