lib/rbbt/tsv/accessor.rb in rbbt-util-5.19.36 vs lib/rbbt/tsv/accessor.rb in rbbt-util-5.19.37
- old
+ new
@@ -73,10 +73,11 @@
end
end
def setup_array(*args)
res = NamedArray.setup(*args)
- res.instance_variable_set(:@entity_templates, entity_templates)
+ return res if res.nil?
+ res.instance_variable_set(:@entity_templates, entity_templates)
res
end
def with_unnamed
saved_unnamed = @unnamed