RubyFlow The Ruby and Rails community linklog

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

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in