  A general scheme for construction of flat pencils of contravariant metrics
and Frobenius manifolds as well as related solutions to WDVV associativity
equations is formulated. The advantage is taken from the Rota-Baxter identity
and some relation being counterpart of the modified Yang-Baxter identity from
the classical $r$-matrix formalism. The scheme for the construction of
Frobenius manifolds is illustrated on the algebras of formal Laurent series and
meromorphic functions on Riemann sphere.
