Module: Tracksperanto
- Defined in:
- lib/tracksperanto.rb
Defined Under Namespace
Modules: BlockInit, Casts, ConstName, Export, Import, Middleware, Parameters, Pipeline, Returning, Safety, ShakeGrammar, SimpleExport, UVCoordinates, ZipTuples Classes: BufferIO, BufferingReader, ExtIO, FormatDetector, Keyframe, NukeGrammarUtils, Tracker, UnknownExporterError, UnknownImporterError, UnknownMiddlewareError, YieldNonEmpty
Constant Summary collapse
- PATH =
File.(File.dirname(__FILE__))
- VERSION =
'2.9.8'
Class Attribute Summary collapse
-
.exporters ⇒ Object
Returns the array of all exporter classes defined.
-
.importers ⇒ Object
Returns the array of all importer classes defined.
-
.middlewares ⇒ Object
Returns the array of all available middlewares.
Class Method Summary collapse
-
.exporter_names ⇒ Object
Returns the names of all the exporters.
-
.get_exporter(name) ⇒ Object
Case-insensitive search for an export module by name.
-
.get_importer(name) ⇒ Object
Case-insensitive search for an export module by name.
-
.get_middleware(name) ⇒ Object
Case-insensitive search for a middleware class by name.
-
.importer_names ⇒ Object
Returns the names of all the importers.
-
.middleware_names ⇒ Object
Returns the names of all the middlewares.
Class Attribute Details
.exporters ⇒ Object
Returns the array of all exporter classes defined
19 20 21 |
# File 'lib/tracksperanto.rb', line 19 def exporters @exporters end |
.importers ⇒ Object
Returns the array of all importer classes defined
22 23 24 |
# File 'lib/tracksperanto.rb', line 22 def importers @importers end |
.middlewares ⇒ Object
Returns the array of all available middlewares
25 26 27 |
# File 'lib/tracksperanto.rb', line 25 def middlewares @middlewares end |
Class Method Details
.exporter_names ⇒ Object
Returns the names of all the exporters
33 34 35 |
# File 'lib/tracksperanto.rb', line 33 def exporter_names exporters.map{|e| e.const_name } end |
.get_exporter(name) ⇒ Object
Case-insensitive search for an export module by name
70 71 72 73 74 75 76 |
# File 'lib/tracksperanto.rb', line 70 def self.get_exporter(name) exporters.each do | x | return x if x.const_name.downcase == name.downcase end raise UnknownExporterError, "Unknown exporter #{name.inspect}" end |
.get_importer(name) ⇒ Object
Case-insensitive search for an export module by name
79 80 81 82 83 84 85 |
# File 'lib/tracksperanto.rb', line 79 def self.get_importer(name) importers.each do | x | return x if x.const_name.downcase == name.downcase end raise UnknownImporterError, "Unknown importer #{name.inspect}" end |
.get_middleware(name) ⇒ Object
Case-insensitive search for a middleware class by name
61 62 63 64 65 66 67 |
# File 'lib/tracksperanto.rb', line 61 def self.get_middleware(name) middlewares.each do | x | return x if x.const_name.downcase == name.downcase end raise UnknownMiddlewareError, "Unknown middleware #{name.inspect}" end |
.importer_names ⇒ Object
Returns the names of all the importers
28 29 30 |
# File 'lib/tracksperanto.rb', line 28 def importer_names importers.map{|e| e.const_name } end |
.middleware_names ⇒ Object
Returns the names of all the middlewares
38 39 40 |
# File 'lib/tracksperanto.rb', line 38 def middleware_names middlewares.map{|e| e.const_name } end |