lib/recite_csv/row/base.rb in recite_csv-0.1.1 vs lib/recite_csv/row/base.rb in recite_csv-0.1.2
- old
+ new
@@ -10,8 +10,16 @@
end
def [](key)
self._raw_data[key]
end
+
+ def self.new(*)
+ if self == Base
+ raise ::NotImplementedError,
+ "#{self} is an abstract class and cannot be instantiated."
+ end
+ super
+ end
end
end
end