Sha256: 99c94ad4c84f625cbe1c61aa43d8d8ff0e0ecf3c80d4f73160665fd0080dc341

Contents?: true

Size: 1.26 KB

Versions: 1

Compression:

Stored size: 1.26 KB

Contents

require 'stringio'
require 'delegate'


module Tracksperanto
  PATH = File.expand_path(File.dirname(__FILE__))
  VERSION = '1.2.3'
  
  module Import; end
  module Export; end
  module Middleware; end
  module Pipeline; end
  
  class << self
    # Returns the array of all exporter classes defined
    attr_accessor :exporters

    # Returns the array of all importer classes defined
    attr_accessor :importers

    # Returns the array of all available middlewares
    attr_accessor :middlewares
    
    # Returns the names of all the importers
    def importer_names
      importers.map{|e| e.to_s.split('::').pop }
    end
  end
  self.exporters, self.importers, self.middlewares = [], [], []
  
end

%w( casts block_init safety zip_tuples keyframe tracker format_detector).each do | submodule |
  require File.join(Tracksperanto::PATH, "tracksperanto", submodule)
end

# Load importers
Dir.glob(File.dirname(__FILE__) + '/import/*.rb').sort.each do | i |
  require i
end

# Load exporters
Dir.glob(File.dirname(__FILE__) + '/export/*.rb').sort.each do | i |
  require i
end

# Load middleware
Dir.glob(File.dirname(__FILE__) + '/middleware/*.rb').sort.each do | i |
  require i
end

# Load pipelines
Dir.glob(File.dirname(__FILE__) + '/pipeline/*.rb').sort.each do | i |
  require i
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tracksperanto-1.2.3 lib/tracksperanto.rb