title: How can I access a method which return Option object?
body: <p>I have to call method which returns <code>Option[List[Obj]]</code>.</p>
  
  <p>After I call I need to iterate the List and print the Obj attributes.</p>
  
  <pre><code>object Tester{
    def main(args:Array[String]) {
      val ymlFilename ="some.yml";
    val entities: Option[QueryEntities] =  InputYamlProcessor.process(ymlFilename)
  
          for( e: QueryEntities  &lt;- entities ){
            /// this is not working
             //How to access the columnFamily, fromData and toDate ?
          }
    }
  </code></pre>
  
  <p>Complete sample</p>
  
  <p><a href="https://gist.github.com/shatestest/fdeaba767d78e171bb6c08b359fbd1bf" rel="nofollow noreferrer">https://gist.github.com/shatestest/fdeaba767d78e171bb6c08b359fbd1bf</a></p>