Sha256: 7c63013368adfd5fd1c83a0f28d8b71842b11dcbb8f3aa66248d1e278c6ed98f
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true require_relative "unary_function" module Plurimath module Math module Function class Dot < UnaryFunction def to_mathml_without_math_tag first_value = parameter_one&.to_mathml_without_math_tag dot_tag = (Utility.ox_element("mo") << ".") over_tag = Utility.ox_element("mover") Utility.update_nodes( over_tag, [ first_value, dot_tag, ], ) end def to_omml_without_math_tag acc_tag = Utility.ox_element("acc", namespace: "m") acc_pr_tag = Utility.ox_element("accPr", namespace: "m") acc_pr_tag << Utility.ox_element( "chr", namespace: "m", attributes: { "m:val": "." }, ) Utility.update_nodes( acc_tag, [ acc_pr_tag, omml_parameter(parameter_one, tag_name: "e"), ], ) [acc_tag] end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
plurimath-0.3.9 | lib/plurimath/math/function/dot.rb |
plurimath-0.3.8 | lib/plurimath/math/function/dot.rb |