Sha256: aad5af8b38f5d28424e7614697934ccc98acfebeb1b18fc8512779a5cae19da8
Contents?: true
Size: 660 Bytes
Versions: 13
Compression:
Stored size: 660 Bytes
Contents
module Nanoc class MutableLayoutCollectionView < Nanoc::MutableIdentifiableCollectionView # @api private def view_class Nanoc::MutableLayoutView end # Creates a new layout and adds it to the site’s collection of layouts. # # @param [String] content The layout content. # # @param [Hash] attributes A hash containing this layout's attributes. # # @param [Nanoc::Identifier, String] identifier This layout's identifier. # # @return [self] def create(content, attributes, identifier) @objects = @objects.add(Nanoc::Int::Layout.new(content, attributes, identifier)) self end end end
Version data entries
13 entries across 13 versions & 1 rubygems