lib/import/base.rb in tracksperanto-1.2.4 vs lib/import/base.rb in tracksperanto-1.2.6
- old
+ new
@@ -4,10 +4,11 @@
class Tracksperanto::Import::Base
include Tracksperanto::Safety
include Tracksperanto::Casts
include Tracksperanto::BlockInit
include Tracksperanto::ZipTuples
+ include Tracksperanto::ConstName
# Tracksperanto will assign a proc that reports the status of the import to the caller.
# This block is automatically used by report_progress IF the proc is assigned. Should
# the proc be nil, the report_progress method will just pass (so you don't need to check for nil
# yourself)
@@ -27,10 +28,11 @@
# These reader methods will raise when the values are nil
cast_to_int :width, :height
safe_reader :width, :height
- # Used to register your importer in the list of supported formats
+ # Used to register your importer in the list of supported formats.
+ # Normally you would not need to override this
def self.inherited(by)
Tracksperanto.importers << by
super
end
\ No newline at end of file