module SchemaExtractor::Extractors

Constants

EXTRACTORS

Public Class Methods

get_extractor(source, options) click to toggle source
# File lib/schema_extractor/extractors.rb, line 14
def get_extractor(source, options)
  underscored_name = EXTRACTORS[source.to_sym]
  require "schema_extractor/#{underscored_name}/extractor"
  klass = SchemaExtractor.const_get("#{underscored_name.capitalize}::Extractor")
  klass.new(options)
end
sources() click to toggle source
# File lib/schema_extractor/extractors.rb, line 10
def sources
  EXTRACTORS.keys
end