title: Method overriding in Ruby
body: <p>I have code that looks like this:</p>
  
  <pre><code>module A
      def b(a)
        a+1
      end
  end
  class B
     include A
  end
  </code></pre>
  
  <p>I would like to write a method in the class B that looks sort of like this</p>
  
  <pre><code>class B
     def b(a)
        if a==2     # are you sure? same result as the old method
           3
        else
           A.b(a)
        end
     end
  end
  </code></pre>
  
  <p>How do I go about doing this in Ruby?</p>