Sha256: b18349753d75a057445ba04fbb3e27948b5c501c27bb05271acc36f1ce2b725a
Contents?: true
Size: 971 Bytes
Versions: 2
Compression:
Stored size: 971 Bytes
Contents
# frozen_string_literal: true require_relative "unary_function" module Plurimath module Math module Function class Vec < UnaryFunction def to_mathml_without_math_tag first_value = parameter_one&.to_mathml_without_math_tag Utility.update_nodes( Utility.ox_element("mover"), [ first_value, Utility.ox_element("mo") << "→", ], ) 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/vec.rb |
plurimath-0.3.8 | lib/plurimath/math/function/vec.rb |