lib/hyperloop/context.rb in hyperloop-config-0.9.6 vs lib/hyperloop/context.rb in hyperloop-config-0.9.7
- old
+ new
@@ -10,10 +10,9 @@
# If reset! has been called then the instance variable will be record, and
# will be reset on the next call to reset!
# If you want to record the current value of the instance variable then set
# force to true.
def self.set_var(ctx, var, force: nil)
- puts "calling set_var(#{var})"
inst_value_b4 = ctx.instance_variable_get(var)
if @context && !@context[ctx].key?(var) && (force || !inst_value_b4)
@context[ctx][var] = (inst_value_b4 && inst_value_b4.dup)
end
inst_value_b4 || ctx.instance_variable_set(var, yield)