Method: Nanoc::Core::ItemRep#path

Defined in:
lib/nanoc/core/item_rep.rb

#path(snapshot: :last) ⇒ Object

Returns the item rep’s path, as used when being linked to. It starts with a slash and it is relative to the output directory. It does not include the path to the output directory. It will not include the filename if the filename is an index filename.



77
78
79
# File 'lib/nanoc/core/item_rep.rb', line 77

def path(snapshot: :last)
  @paths.fetch(snapshot, []).first
end