Module: Gemmy::Patches::StringPatch::InstanceMethods::TempfilePath

Defined in:
lib/gemmy/patches/string_patch.rb

Instance Method Summary collapse

Instance Method Details

#tempfile_pathObject

Creates a tempfile containing a string and returns its path



68
69
70
# File 'lib/gemmy/patches/string_patch.rb', line 68

def tempfile_path
  Tempfile.new.tap { |t| t.write(self); t.close }.path
end