Class: Nanoc::Core::ItemCollection
- Inherits:
-
IdentifiableCollection
- Object
- IdentifiableCollection
- Nanoc::Core::ItemCollection
- Includes:
- MemoWise
- Defined in:
- lib/nanoc/core/item_collection.rb
Instance Method Summary collapse
-
#initialize(config, objects = []) ⇒ ItemCollection
constructor
A new instance of ItemCollection.
- #reference ⇒ Object
Methods inherited from IdentifiableCollection
#add, #empty?, #find_all, #freeze, #initialize_basic, #inspect, #object_matching_glob, #object_with_identifier, #reject, #to_a
Constructor Details
#initialize(config, objects = []) ⇒ ItemCollection
Returns a new instance of ItemCollection.
8 9 10 |
# File 'lib/nanoc/core/item_collection.rb', line 8 def initialize(config, objects = []) initialize_basic(config, objects, 'items') end |
Instance Method Details
#reference ⇒ Object
12 13 14 |
# File 'lib/nanoc/core/item_collection.rb', line 12 def reference 'items' end |