Module: SchemaExtractor::Extractors
- Defined in:
- lib/schema_extractor/extractors.rb
Constant Summary collapse
- EXTRACTORS =
{ mysql: "mysql", }.freeze
Class Method Summary collapse
Class Method Details
.get_extractor(source, options) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/schema_extractor/extractors.rb', line 14 def get_extractor(source, ) underscored_name = EXTRACTORS[source.to_sym] require "schema_extractor/#{underscored_name}/extractor" klass = SchemaExtractor.const_get("#{underscored_name.capitalize}::Extractor") klass.new() end |
.sources ⇒ Object
10 11 12 |
# File 'lib/schema_extractor/extractors.rb', line 10 def sources EXTRACTORS.keys end |