lib/nanoc/base/compilation/outdatedness_reasons.rb in nanoc-3.7.4 vs lib/nanoc/base/compilation/outdatedness_reasons.rb in nanoc-3.7.5
- old
+ new
@@ -1,25 +1,21 @@
# encoding: utf-8
module Nanoc
-
# Module that contains all outdatedness reasons.
module OutdatednessReasons
-
# A generic outdatedness reason. An outdatedness reason is basically a
# descriptive message that explains why a given object is outdated.
class Generic
-
# @return [String] A descriptive message for this outdatedness reason
attr_reader :message
# @param [String] message The descriptive message for this outdatedness
# reason
def initialize(message)
@message = message
end
-
end
CodeSnippetsModified = Generic.new(
'The code snippets have been modified since the last time the site was compiled.')
@@ -38,9 +34,7 @@
RulesModified = Generic.new(
'The rules file has been modified since the last time the site was compiled.')
SourceModified = Generic.new(
'The source file of this item has been modified since the last time the site was compiled.')
-
end
-
end