I'm having a headache while trying to achive something like this:

module Math
   def Math.cos val
     if val.kind_of? MyType
       val = super(val)
       # do stuff with val and return
       return val
     else
       # normal behavior
       super
     end
   end
end

super seems not to work, perhaps because Math is not a module..

Does anybody please know how to to this?

thanks and bye!
Dominik