Defining Singleton Methods Using Blocks
There are some potential gotchas when using instance_eval with a block to define methods (metaprogramming). I wrote a post exploring the details.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
There are some potential gotchas when using instance_eval with a block to define methods (metaprogramming). I wrote a post exploring the details.
Post a comment