Class: Nanoc::Core::OutdatednessReasons::DocumentCollectionExtended Private

Inherits:
Generic
  • Object
show all
Defined in:
lib/nanoc/core/outdatedness_reasons.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Attributes inherited from Generic

#message, #props

Instance Method Summary collapse

Constructor Details

#initialize(objects) ⇒ DocumentCollectionExtended

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of DocumentCollectionExtended.



53
54
55
56
57
58
59
60
# File 'lib/nanoc/core/outdatedness_reasons.rb', line 53

def initialize(objects)
  super(
    'New items/layouts have been added to the site.',
    Nanoc::Core::DependencyProps.new(raw_content: true),
  )

  @objects = objects
end

Instance Attribute Details

#objectsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



51
52
53
# File 'lib/nanoc/core/outdatedness_reasons.rb', line 51

def objects
  @objects
end