module Qonfig::Loaders
@api private @since 0.2.0
@api private @since 0.15.0
Public Class Methods
resolve(format)
click to toggle source
@param format [String, Symbol] @return [Module]
@raise [Qonfig::UnsupportedLoaderFormatError]
@api private @since 0.15.0
# File lib/qonfig/loaders.rb, line 20 def resolve(format) case format.to_s when 'yaml', 'yml' Qonfig::Loaders::YAML when 'json' Qonfig::Loaders::JSON when 'dynamic' Qonfig::Loaders::Dynamic else raise(Qonfig::UnsupportedLoaderFormatError, "<#{format}> format is not supported.") end end
Also aliased as: []