# frozen_string_literal: true require_relative "binary_function" module Plurimath module Math module Function class Frac < BinaryFunction def to_mathml_without_math_tag first_value = parameter_one&.to_mathml_without_math_tag two_value = parameter_two&.to_mathml_without_math_tag "#{first_value}#{two_value}" end def to_latex first_value = parameter_one&.to_latex two_value = parameter_two&.to_latex "\\frac{#{first_value}}{#{two_value}}" end end end end end