Class: Nanoc::Core::LayoutCollection
- Inherits:
-
IdentifiableCollection
- Object
- IdentifiableCollection
- Nanoc::Core::LayoutCollection
- Includes:
- MemoWise
- Defined in:
- lib/nanoc/core/layout_collection.rb
Instance Method Summary collapse
-
#get_memoized(arg) ⇒ Object
contract C::Any => C::Maybe[C::RespondTo].
-
#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
Constructor Details
#initialize(config, objects = []) ⇒ LayoutCollection
Returns a new instance of LayoutCollection.
8 9 10 |
# File 'lib/nanoc/core/layout_collection.rb', line 8 def initialize(config, objects = []) initialize_basic(config, objects, 'layouts') end |
Instance Method Details
#get_memoized(arg) ⇒ Object
contract C::Any => C::Maybe[C::RespondTo]
13 14 15 |
# File 'lib/nanoc/core/layout_collection.rb', line 13 def get_memoized(arg) get_unmemoized(arg) end |
#reference ⇒ Object
18 19 20 |
# File 'lib/nanoc/core/layout_collection.rb', line 18 def reference 'layouts' end |