Sha256: 30d9ba6b0d0465db1bfd92446cd437ba73611395bec526d4700698c5ddc6b43c

Contents?: true

Size: 556 Bytes

Versions: 2

Compression:

Stored size: 556 Bytes

Contents

require 'stringio'

class Tracksperanto::Import::Base
  include Tracksperanto::Safety
  include Tracksperanto::Casts
  
  # The original width of the tracked image
  # Some importers need it
  cast_to_int :width
  
  # The original height of the original image.
  # Some importers need it
  cast_to_int :height
  
  # Safety on readers
  safe_reader :width, :height
  
  def self.inherited(by)
    Tracksperanto.importers << by
    super
  end
  
  # Should return an array of Tracksperanto::Tracker objects
  def parse(track_file_content)
    []
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tracksperanto-1.1.0 lib/import/base.rb
tracksperanto-1.0.6 lib/import/base.rb