Sha256: 033613f50d15dd72641849db827be53db83f80c7463bcc62cf9a9f3ab82c3e69
Contents?: true
Size: 691 Bytes
Versions: 41
Compression:
Stored size: 691 Bytes
Contents
# frozen_string_literal: true 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
41 entries across 41 versions & 1 rubygems