Sha256: 0cdb05853bbe7ca453bb82b01812b38d5998e2558a7f726eb4a56996c079049a
Contents?: true
Size: 604 Bytes
Versions: 20
Compression:
Stored size: 604 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 attr_reader :yaml end end end end
Version data entries
20 entries across 20 versions & 1 rubygems