title: How to access a ruby file from another directory
body: <p>I am having two Folder name <code>Folder1</code> and <code>Folder2</code>.</p>
  
  <p>In <code>Folder1</code> I am having ruby File <code>File1.rb</code> and in <code>Folder2</code> I am having <code>File2.rb</code>. I want to use method inside <code>File1.rb</code> to <code>File2.rb</code>.</p>
  
  <p>When I try using <code>require_relative 'File1.rb'</code> in <code>File2.rb</code> it says it cannot able to access the file. What code I need to use to access <code>File1.rb</code>?</p>
  
  <p><em>Note:</em> If both files are in same folder, <code>require_relative</code> is working fine. But on different folder it is not working.</p>