Class: Nanoc::MutableLayoutCollectionView
- Inherits:
-
MutableIdentifiableCollectionView
- Object
- View
- IdentifiableCollectionView
- MutableIdentifiableCollectionView
- Nanoc::MutableLayoutCollectionView
- Defined in:
- lib/nanoc/base/views/mutable_layout_collection_view.rb
Instance Method Summary collapse
-
#create(content, attributes, identifier) ⇒ self
Creates a new layout and adds it to the site’s collection of layouts.
Methods inherited from MutableIdentifiableCollectionView
Methods inherited from IdentifiableCollectionView
Methods inherited from View
Instance Method Details
#create(content, attributes, identifier) ⇒ self
Creates a new layout and adds it to the site’s collection of layouts.
19 20 21 22 |
# File 'lib/nanoc/base/views/mutable_layout_collection_view.rb', line 19 def create(content, attributes, identifier) @objects = @objects.add(Nanoc::Int::Layout.new(content, attributes, identifier)) self end |