title: Ruby functions vs methods
body: <p>In the <a href="https://rads.stackoverflow.com/amzn/click/com/0596516177" rel="noreferrer" rel="nofollow noreferrer">Ruby Programming Language</a>, Chapter 6 (second paragraph) they state:</p>
  
  <blockquote>
    <p>Many languages distinguish between
    functions, which have no associated
    object, and methods, which are invoked
    on a receiver object. Because Ruby is
    a purely object oriented language, all
    methods are true methods and are
    associated with at least one object.</p>
  </blockquote>
  
  <p>And then in the middle of the 6th paragraph:</p>
  
  <blockquote>
    <p>Both procs and lambdas are functions
    rather than methods invoked on an
    object.</p>
  </blockquote>
  
  <p>I am a bit confused about these statements. Is Ruby truly pure OO, and therefore doesn't have functions that aren't associated with objects (if that is a valid definition of pure OO), or are procs/lambdas associated with the Proc object? What is the difference between functions and methods in Ruby?</p>
  
  <p>Any help in parsing and understanding this would be appreciated.</p>