module SchemaExtractor::Formatters
Constants
- FORMATTERS
Public Class Methods
formats()
click to toggle source
# File lib/schema_extractor/formatters.rb, line 11 def formats FORMATTERS.keys end
get_formatter(format)
click to toggle source
# File lib/schema_extractor/formatters.rb, line 15 def get_formatter(format) underscored_name = FORMATTERS[format.to_sym] require "schema_extractor/formatters/#{underscored_name}" klass = SchemaExtractor::Formatters.const_get(underscored_name.capitalize) klass.new end