Class: Logaling::GlossarySource
- Inherits:
-
Object
- Object
- Logaling::GlossarySource
- Defined in:
- lib/logaling/glossary_source.rb
Class Method Summary collapse
Class Method Details
.create(source_path, glossary) ⇒ Object
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/logaling/glossary_source.rb', line 24 def self.create(source_path, glossary) case File.extname(source_path) when ".csv" GlossarySources::GlossaryCsvSource.new(source_path, glossary) when ".tsv" GlossarySources::GlossaryTsvSource.new(source_path, glossary) when ".yml" GlossarySources::GlossaryYamlSource.new(source_path, glossary) end end |