module Gemmy::Patches::StringPatch::InstanceMethods::TempfilePath

Public Instance Methods

tempfile_path() click to toggle source

Creates a tempfile containing a string and returns its path

# File lib/gemmy/patches/string_patch.rb, line 68
def tempfile_path
  Tempfile.new.tap { |t| t.write(self); t.close }.path
end