Sha256: 8741c15ea7ebe8ea7f65d44af383bbf7b4097784a9b3f06e882049a297761416
Contents?: true
Size: 436 Bytes
Versions: 1
Compression:
Stored size: 436 Bytes
Contents
require 'yaml' require 'juggalo/portlet' require 'juggalo/page' require 'juggalo/page/loader/base' module Juggalo class Page::Loader class YAML < Base def initialize(location) @location = location end def components page_hash["components"].map { |c| create_component_from c } end private def page_hash ::YAML::load(File.open(@location)) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
juggalo-0.0.2 | lib/juggalo/page/loader/yaml.rb |