title: Can you override a method by including a module?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5944278/overriding-method-by-another-defined-in-module">Overriding method by another defined in module</a>  </p>
  </blockquote>
  
  
  
  <p>Here's some code:</p>
  
  <pre><code>class Foo
    def bar
      puts "Original bar"
    end
  end
  
  module M
    def bar
      puts "Called M::bar"    
    end
  end
  
  Foo.send(:include,M)
  Foo.new.bar
  # =&gt; Original bar
  </code></pre>
  
  <p>Does ruby prevent overriding a previously defined method when a method of the same name is "included"?</p>