Module: ActiveLoader
- Defined in:
- lib/active_loader.rb,
lib/active_loader/version.rb,
lib/active_loader/json_loader.rb,
lib/active_loader/parse_error.rb,
lib/active_loader/yaml_loader.rb,
lib/active_loader/content_loader.rb,
lib/active_loader/loader_dispatcher.rb
Defined Under Namespace
Classes: ContentLoader, JsonLoader, LoaderDispatcher, ParseError, YamlLoader
Constant Summary
collapse
- VERSION =
"1.0.0"
- UnknownTypeError =
Class.new(TypeError)
Class Method Summary
collapse
Class Method Details
.json(path) ⇒ Object
17
18
19
|
# File 'lib/active_loader.rb', line 17
def self.json(path)
meta_load(path, :json)
end
|
.load(path, type:) ⇒ Object
8
9
10
|
# File 'lib/active_loader.rb', line 8
def self.load(path, type:)
meta_load(path, type)
end
|
.yaml(path) ⇒ Object
12
13
14
|
# File 'lib/active_loader.rb', line 12
def self.yaml(path)
meta_load(path, :yaml)
end
|