lib/nanoc/base/compilation/filter.rb
# Returns a filename that is used to write data to. This method is only
#   used on binary items. When running a binary filter on a file, the
#   resulting file must end up in the location returned by this method.
#
# The returned filename will be absolute, so it is safe to change to
#   another directory inside the filter.
#
# @return [String] The output filename
Returns a filename that is used to write data to. This method is only
used on binary items. When running a binary filter on a file, the
resulting file must end up in the location returned by this method.

The returned filename will be absolute, so it is safe to change to
another directory inside the filter.
Returns a filename that is used to write data to . This method is only used on binary items . When running a binary filter on a file the resulting file must end up in the location returned by this method . The returned filename will be absolute so it is safe to change to another directory inside the filter .
def output_filename
      @output_filename ||= begin
        FileUtils.mkdir_p(TMP_BINARY_ITEMS_DIR)
        tempfile = Tempfile.new('', TMP_BINARY_ITEMS_DIR)
        new_filename = tempfile.path
        tempfile.close!
        File.expand_path(new_filename)
      end
    end
def output_filename @output_filename ||= begin FileUtils . mkdir_p ( TMP_BINARY_ITEMS_DIR ) tempfile = Tempfile . new ( '' , TMP_BINARY_ITEMS_DIR ) new_filename = tempfile . path tempfile . close! File . expand_path ( new_filename ) end end
Returns a filename that is used to write data to.
Returns a filename that is used to write data to .
The output filename
The output filename
String