title: Open Yaml file outside the directory
body: <p>I wantto have a common Yml file with the configurations built inside it across all the directories inside a master folder.</p>
  
  <p>I have a folder called <code>ROMauto</code> and a directory within that called <code>Mobile</code></p>
  
  <p>The <code>test_data.yml</code> is stored outside the <code>Mobile</code> directory but within the <code>ROMauto</code>.</p>
  
  <p>I want to access this <code>test_data.yml</code> from the <code>Mobile</code> folder. I can do the same being inside the <code>ROMauto</code> as it is sourcing from the same directory.</p>
  
  <p>How do I read the <code>YAML</code> outside its directory?</p>
  
  <p>I tried it with </p>
  
  <pre><code>@datasource = YAML.load_file("test_data.yml")
  
  YAML::load(File.open('ROMauto/test_data.yml)'))
  
  fn = File.dirname(File.expand_path(FILE)) + '../../test_data.yml'
  YAML::load(File.open(fn))
  
  YAML::load_file(File.join(File.dirname(File.expand_path(__FILE__)), 'test_data.yml'))
  </code></pre>
  
  <p>from the <code>Mobile</code> folder and it still throws me this error called:</p>
  
  <pre><code>No such file or directory @ rb_sysopen - test_data.yml (Errno::ENOENT)
  </code></pre>
  
  <p>Is there a way to call and read the YAML from outside the directory?</p>