Class: Nanoc::Core::OutdatednessReasons::AttributesModified 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(attributes) ⇒ AttributesModified

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 AttributesModified.



72
73
74
75
76
77
78
79
# File 'lib/nanoc/core/outdatedness_reasons.rb', line 72

def initialize(attributes)
  super(
    'The attributes of this item have been modified since the last time the site was compiled.',
    Nanoc::Core::DependencyProps.new(attributes: true, compiled_content: true),
  )

  @attributes = attributes
end

Instance Attribute Details

#attributesObject (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.



70
71
72
# File 'lib/nanoc/core/outdatedness_reasons.rb', line 70

def attributes
  @attributes
end