Module: Gemmy::Patches::StringPatch::InstanceMethods::TempfilePath
- Defined in:
- lib/gemmy/patches/string_patch.rb
Instance Method Summary collapse
-
#tempfile_path ⇒ Object
Creates a tempfile containing a string and returns its path.
Instance Method Details
#tempfile_path ⇒ Object
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 |