lib/import/base.rb in tracksperanto-2.9.4 vs lib/import/base.rb in tracksperanto-2.9.5

- old
+ new

@@ -3,16 +3,12 @@ # this class the inherited class will be included in the list of supported # Tracksperanto importers. The API that an importer should present is very # basic, and consists only of a few methods. The main method is # `each`. class Tracksperanto::Import::Base - include Enumerable - include Tracksperanto::Safety - include Tracksperanto::Casts - include Tracksperanto::BlockInit - include Tracksperanto::ZipTuples - include Tracksperanto::ConstName + include Enumerable, Tracksperanto::Safety, Tracksperanto::Casts + include Tracksperanto::BlockInit, Tracksperanto::ZipTuples, Tracksperanto::ConstName # Handle to the IO with data being parsed attr_accessor :io # Tracksperanto will assign a proc that reports the status of the import to the caller. @@ -39,13 +35,10 @@ def self.inherited(by) Tracksperanto.importers << by super end - # OBSOLETE, do not use - attr_accessor :receiver - # Return an extension WITH DOT if this format has a typical extension that # you can detect (like ".nk" for Nuke) def self.distinct_file_ext nil end @@ -69,13 +62,7 @@ # The main method of the parser. Should # yield each tracker that has been fully parsed. After calling this method the caller can ask for # width and height as well. def each - end - - # OBSOLETE: do not use - def send_tracker(tracker_obj) - STDERR.puts "Import::Base#send_tracker has been deprecated, please rewrite your importer to use yield(t) inside each instead" - @receiver.push(tracker_obj) end end