Class: Eggshell::Bundles::Basic::DataLoaderMacro::YamlLoader

Inherits:
Object
  • Object
show all
Includes:
Loader
Defined in:
lib/eggshell/bundles/basics.rb

Instance Method Summary collapse

Methods included from Loader

#parse_io

Instance Method Details

#parse(content) ⇒ Object



1051
1052
1053
# File 'lib/eggshell/bundles/basics.rb', line 1051

def parse(content)
	YAML.load(content.is_a?(Array) ? content.join("\n") : content)
end