by Jim Thereâs an important difference between instance_eval and instance_exec. And thereâs a great lesson about how to use them well in FactoryGirl But first, before you go rushing off to build your fantastic DSL, letâs look at what instance_eval is and does. The simplest of examples can be taken straight from the Ruby docs: class KlassWithSecret def initialize @secret = 99 end end k = KlassWithS
{{#tags}}- {{label}}
{{/tags}}