Sha256: d3cdf5308da41459b2f73954d26120e8791674f8adea3b2cc2dd82533948d50a
Contents?: true
Size: 606 Bytes
Versions: 56
Compression:
Stored size: 606 Bytes
Contents
module Cmor 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 = Cmor::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
56 entries across 56 versions & 1 rubygems