lib/origen/parameters/set.rb in origen-0.44.0 vs lib/origen/parameters/set.rb in origen-0.50.0

- old
+ new

@@ -19,11 +19,11 @@ def define(parent = nil, &_block) @defining = true yield self, parent @defining = false - finalize + finalize unless Origen::Parameters.transaction_open end # Returns the current parameter context def context owner._parameter_current @@ -112,9 +112,10 @@ def test(*args, &block) method_missing(:test, *args, &block) end def defining? + return true if Origen::Parameters.transaction_open if top_level? @defining else top_level.defining? end