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.
17 18 19 20 |
# File 'lib/nanoc/base/views/mutable_layout_collection_view.rb', line 17 def create(content, attributes, identifier) @objects << Nanoc::Int::Layout.new(content, attributes, identifier) self end |