Sha256: 97a005bdf5df9b0cb5ef18e6ee34d21de29bb2949a2f6d58f4a354d4d422f8ec
Contents?: true
Size: 647 Bytes
Versions: 49
Compression:
Stored size: 647 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 << Nanoc::Int::Layout.new(content, attributes, identifier) self end end end
Version data entries
49 entries across 49 versions & 1 rubygems