lib/meibo/data_model.rb in meibo-0.14.0 vs lib/meibo/data_model.rb in meibo-0.15.0
- old
+ new
@@ -59,9 +59,13 @@
def self.define_write_converters(klass, attribute_names:, converters:)
write_converter = Converter.build_write_converter(fields: attribute_names, converters: converters)
klass.define_singleton_method(:write_converters) { write_converter }
end
+ def lineno
+ collection.lineno(self)
+ end
+
def to_csv(...)
to_a.to_csv(...)
end
def deconstruct