Sha256: 1b4f6d4d3a5d3ff375839ba0458df32e9f05f66700de4c8e6e8217a3a2d2db51
Contents?: true
Size: 1.32 KB
Versions: 5
Compression:
Stored size: 1.32 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>create_tempfile (Grit::Git)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre><span class="ruby-comment cmt"># File lib/grit/git.rb, line 134</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_tempfile</span>(<span class="ruby-identifier">seed</span>, <span class="ruby-identifier">unlink</span> = <span class="ruby-keyword kw">false</span>) <span class="ruby-identifier">path</span> = <span class="ruby-constant">Tempfile</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">seed</span>).<span class="ruby-identifier">path</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">unlink</span>(<span class="ruby-identifier">path</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">unlink</span> <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">path</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
5 entries across 5 versions & 1 rubygems