class Jekyll::PostFiles::PostFile

Public Class Methods

new(site, base, dir, name, dest) click to toggle source

Initialize a new PostFile.

site - The Site. base - The String path to the <source> - /srv/jekyll dir - The String path between <source> and the file - _posts/somedir name - The String filename of the file - cool.svg dest - The String path to the containing folder of the document which is output - /dist/blog/[:tag/]*:year/:month/:day

Calls superclass method
# File lib/jekyll/postfiles.rb, line 40
def initialize(site, base, dir, name, dest)
  super(site, base, dir, name)
  @name = name
  @dest = dest
end

Public Instance Methods

destination(_dest) click to toggle source

Obtain destination path.

dest - The String path to the destination dir.

Returns destination file path.

# File lib/jekyll/postfiles.rb, line 51
def destination(_dest)
  File.join(@dest, @name)
end