module Danica class Division < Operator variables :numerator, :denominator def to_f numerator.to_f / denominator.to_f end def to_tex "\\frac{#{numerator.to_tex}}{#{denominator.to_tex}}" end def to_gnu "#{numerator.to_gnu}/#{denominator.to_gnu}" end end end