class Nanoc::Core::MutableLayoutCollectionView
Public Instance Methods
create(content, attributes, identifier)
click to toggle source
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::Core::Identifier, String] identifier This layout's identifier.
@return [self]
# File lib/nanoc/core/mutable_layout_collection_view.rb, line 20 def create(content, attributes, identifier) @objects = @objects.add(Nanoc::Core::Layout.new(content, attributes, identifier)) self end
view_class()
click to toggle source
@api private
# File lib/nanoc/core/mutable_layout_collection_view.rb, line 7 def view_class Nanoc::Core::MutableLayoutView end