module Tracksperanto
Constants
- PATH
- VERSION
Attributes
exporters[RW]
Returns the array of all exporter classes defined
importers[RW]
Returns the array of all importer classes defined
tools[RW]
Returns the array of all available tools
Public Class Methods
exporter_names()
click to toggle source
Returns the names of all the exporters
# File lib/tracksperanto.rb, line 35 def exporter_names exporters.map{|e| e.const_name } end
get_exporter(name)
click to toggle source
Case-insensitive search for an export module by name
# File lib/tracksperanto.rb, line 72 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)
click to toggle source
Case-insensitive search for an export module by name
# File lib/tracksperanto.rb, line 81 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_tool(name)
click to toggle source
Case-insensitive search for a tool class by name
# File lib/tracksperanto.rb, line 63 def self.get_tool(name) tools.each do | x | return x if x.const_name.downcase == name.downcase end raise UnknownToolError, "Unknown tool #{name.inspect}" end
importer_names()
click to toggle source
Returns the names of all the importers
# File lib/tracksperanto.rb, line 30 def importer_names importers.map{|e| e.const_name } end
tool_names()
click to toggle source
Returns the names of all the tools
# File lib/tracksperanto.rb, line 40 def tool_names tools.map{|e| e.const_name } end
Private Class Methods
sort_on_human_name(array)
click to toggle source
# File lib/tracksperanto.rb, line 54 def sort_on_human_name(array) array.sort!{|a, b| a.human_name <=> b.human_name } array end