title: How i can set path in ruby File
body: <p>i dont not how set path for my File in ruby.</p>
  
  <p>this is my  code in ruby class</p>
  
  <pre><code>tmp_file = File.new('name', "w+")
  
        tmp_file.path(Pathname.new("/public/word_tempate"))
  </code></pre>
  
  <p>How i can set path for write file in ruby?.</p>