lib/bindata/base.rb in bindata-2.3.0 vs lib/bindata/base.rb in bindata-2.3.1

- old
+ new

@@ -263,11 +263,12 @@ def top_level_set(sym, value) top_level.instance_variable_set("@tl_#{sym}", value) end def top_level_get(sym) - top_level.instance_variable_defined?("@tl_#{sym}") and - top_level.instance_variable_get("@tl_#{sym}") + tl = top_level + tl.instance_variable_defined?("@tl_#{sym}") and + tl.instance_variable_get("@tl_#{sym}") end def top_level if parent.nil? tl = self