title: Ruby equivalent to Python __main__
body: <p>If in a ruby file I define a function like so:</p>
  
  <pre><code>def tell_the_truth()
      puts "truth"
  end
  </code></pre>
  
  <p>is there an equivalent to python's main?</p>
  
  <pre><code>if __name__ == "__main__":
      tell_the_truth()
  </code></pre>
  
  <p>Is it to simply call the function inside the file?</p>
  
  <pre><code>tell_the_truth
  </code></pre>