class Nanoc::Core::ChecksumCollection
Public Class Methods
new(checksums)
click to toggle source
# File lib/nanoc/core/checksum_collection.rb, line 10 def initialize(checksums) @checksums = checksums end
Public Instance Methods
attributes_checksum_for(obj)
click to toggle source
# File lib/nanoc/core/checksum_collection.rb, line 25 def attributes_checksum_for(obj) @checksums[[obj.reference, :each_attribute]] end
checksum_for(obj)
click to toggle source
# File lib/nanoc/core/checksum_collection.rb, line 15 def checksum_for(obj) @checksums[obj.reference] end
content_checksum_for(obj)
click to toggle source
# File lib/nanoc/core/checksum_collection.rb, line 20 def content_checksum_for(obj) @checksums[[obj.reference, :content]] end
to_h()
click to toggle source
# File lib/nanoc/core/checksum_collection.rb, line 29 def to_h @checksums end