class Nanoc::Int::Item

@api private

Public Class Methods

new(content, attributes, identifier) click to toggle source

@see Document#initialize

Calls superclass method Nanoc::Int::Document.new
# File lib/nanoc/base/entities/item.rb, line 5
def initialize(content, attributes, identifier)
  super

  @forced_outdated_status = ForcedOutdatedStatus.new
end

Public Instance Methods

forced_outdated=(bool) click to toggle source

@api private

# File lib/nanoc/base/entities/item.rb, line 35
def forced_outdated=(bool)
  @forced_outdated_status.bool = bool
end
forced_outdated?() click to toggle source

@api private

# File lib/nanoc/base/entities/item.rb, line 40
def forced_outdated?
  @forced_outdated_status.bool
end
reference() click to toggle source

Returns an object that can be used for uniquely identifying objects.

@api private

@return [Object] An unique reference to this object

# File lib/nanoc/base/entities/item.rb, line 16
def reference
  [:item, identifier.to_s]
end