module ActiveLoader

Constants

UnknownTypeError
VERSION

Public Class Methods

json(path) click to toggle source
# File lib/active_loader.rb, line 17
def self.json(path)
  meta_load(path, :json)
end
load(path, type:) click to toggle source
# File lib/active_loader.rb, line 8
def self.load(path, type:)
  meta_load(path, type)
end
yaml(path) click to toggle source
# File lib/active_loader.rb, line 12
def self.yaml(path)
  meta_load(path, :yaml)
end

Private Class Methods

meta_load(path, type) click to toggle source
# File lib/active_loader.rb, line 21
def self.meta_load(path, type)
  content = ContentLoader.new(path).call

  LoaderDispatcher.new(content, type).call
end