Ruby instance_eval
Adding methods to an instance “on-the-fly” is a pretty common pattern in Ruby (activerecord, activesupport, etc..).
To do so, we can use the BasicObject#instance_eval
methods.. see more
Adding methods to an instance “on-the-fly” is a pretty common pattern in Ruby (activerecord, activesupport, etc..).
To do so, we can use the BasicObject#instance_eval
methods.. see more
Post a comment