lib/rbbt/tsv/accessor.rb in rbbt-util-5.14.35 vs lib/rbbt/tsv/accessor.rb in rbbt-util-5.14.36
- old
+ new
@@ -82,11 +82,11 @@
res
end
def with_monitor(value = true)
saved_monitor = @monitor
- @monitor = value
+ @monitor = value.nil? ? false : value
res = yield
@monitor = saved_monitor
res
end
@@ -469,13 +469,11 @@
@named_fields ||= NamedArray.setup @fields, @fields, nil, entity_options, entity_templates
end
end
def namespace=(value)
- #self.send(:[]=, "__tsv_hash_namespace", value.nil? ? SERIALIZED_NIL : TSV::TSV_SERIALIZER.dump(value), true)
self.send(:[]=, "__tsv_hash_namespace", dump_entry_value(value), true)
@namespace = value
- @entity_options = nil
end
def fields=(value)
clean = true
self.send(:[]=, "__tsv_hash_fields", dump_entry_value(value), clean)