title: in ruby is there a distinction between a method and function
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/928443/ruby-functions-vs-methods">Ruby functions vs methods</a>  </p>
  </blockquote>
  
  
  
  <p>Im just reading some ruby documentation and t seems to use the term function and method in an interchangeable way, i jut wanted to know if there is any distinction?</p>
  
  <p>the docs im looking at refer to this as a function:</p>
  
  <pre><code>def saysomething()
    puts "Hello"
  end
  
  saysomething
  </code></pre>
  
  <p>and this a method:</p>
  
  <pre><code>def multiply(val1, val2 )
    result = val1 * val2
    puts result
  end
  </code></pre>
  
  <p>this may be a something semantic but i wanted to check</p>
  
  <p>jt</p>