Class: Nanoc::Core::OutdatednessReasons::Generic Private
- Inherits:
-
Object
- Object
- Nanoc::Core::OutdatednessReasons::Generic
- Defined in:
- lib/nanoc/core/outdatedness_reasons.rb
Overview
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.
A generic outdatedness reason. An outdatedness reason is basically a descriptive message that explains why a given object is outdated.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#message ⇒ String
readonly
private
A descriptive message for this outdatedness reason.
- #props ⇒ Nanoc::Core::DependencyProps readonly private
Instance Method Summary collapse
-
#initialize(message, props = Nanoc::Core::DependencyProps.new) ⇒ Generic
constructor
private
A new instance of Generic.
Constructor Details
#initialize(message, props = Nanoc::Core::DependencyProps.new) ⇒ Generic
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 Generic.
20 21 22 23 24 25 26 27 |
# File 'lib/nanoc/core/outdatedness_reasons.rb', line 20 def initialize(, props = Nanoc::Core::DependencyProps.new) # TODO: Replace `DependencyProps` with its own `OutdatednessProps` # type. For `OutdatednessProps`, the only values are true/false; # giving a collection for `raw_content` makes no sense (anymore). @message = @props = props end |
Instance Attribute Details
#message ⇒ String (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.
Returns A descriptive message for this outdatedness reason.
13 14 15 |
# File 'lib/nanoc/core/outdatedness_reasons.rb', line 13 def @message end |
#props ⇒ Nanoc::Core::DependencyProps (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.
16 17 18 |
# File 'lib/nanoc/core/outdatedness_reasons.rb', line 16 def props @props end |