Use instance_eval so that the assigned block is evaluated inside the DSL sandbox instance, giving access to all required methods and instance variables.
Use instance_eval so that the assigned block is evaluated inside the DSL sandbox instance, giving access to all required methods and instance variables.