Sha256: fd47cc1bd6c74fa4615067feb275c66ecaaae8c67c71801b08fb69e8b57f194e
Contents?: true
Size: 623 Bytes
Versions: 19
Compression:
Stored size: 623 Bytes
Contents
module Ecm module Cms module Importers class Navigation def initialize(yaml, option = {}) @navigations = nil @yaml = YAML.load(yaml) end def build_navigations navigations = [] @yaml.each do |navigation_data| navigation = Ecm::Cms::Navigation.new(navigation_data) navigations << navigation end if @yaml.respond_to?(:each) navigations end def navigations @navigations ||= build_navigations end def yaml @yaml end end end end end
Version data entries
19 entries across 19 versions & 2 rubygems