# File lib/nanoc/base/result_data/item_rep.rb, line 429 def snapshot(snapshot_name, params={}) is_final = params.fetch(:final) { true } @content[snapshot_name] = @content[:last] unless self.binary? self.write(snapshot_name) if is_final end