If an argument is provided, uses yield(self) instead of instance_eval. This allows you to call other local methods without having to grab a copy of self before calling Riif#new.
Coverage decreased (-0%) when pulling 2edfe1b4208e504819141494e737148d3b9f0841 on ghiculescu:master into affede9c07a24f2d11f1cf7e7baf334918694b30 on linjunpop:master.
Coverage decreased (-0%) when pulling 77178fda4e0aa0b82bba75bf32bb667c50bd8e7c on ghiculescu:master into affede9c07a24f2d11f1cf7e7baf334918694b30 on linjunpop:master.
If an argument is provided, uses
yield(self)
instead ofinstance_eval
. This allows you to call other local methods without having to grab a copy of self before callingRiif#new
.See http://rubylearning.com/blog/2010/11/30/how-do-i-build-dsls-with-yield-and-instance_eval/ for more info.