I have code that looks like this:
module A def b(a) a+1 end end class B include A end I would like to write a method in the class B that looks sort of like this
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 How do I go about doing this in Ruby?