Class: Nanoc::Core::LayoutCollection
- Inherits:
-
IdentifiableCollection
- Object
- IdentifiableCollection
- Nanoc::Core::LayoutCollection
- Defined in:
- lib/nanoc/core/layout_collection.rb
Instance Method Summary collapse
-
#initialize(config, objects = []) ⇒ LayoutCollection
constructor
A new instance of LayoutCollection.
- #reference ⇒ Object
Methods inherited from IdentifiableCollection
#[], #add, #empty?, #find_all, #freeze, #initialize_basic, #inspect, #object_with_identifier, #reject, #to_a
Methods included from ContractsSupport
enabled?, included, setup_once, warn_about_performance
Constructor Details
#initialize(config, objects = []) ⇒ LayoutCollection
Returns a new instance of LayoutCollection.
6 7 8 |
# File 'lib/nanoc/core/layout_collection.rb', line 6 def initialize(config, objects = []) initialize_basic(config, objects, 'layouts') end |
Instance Method Details
#reference ⇒ Object
10 11 12 |
# File 'lib/nanoc/core/layout_collection.rb', line 10 def reference 'layouts' end |