Sha256: 1746f15e152880b9962dd01b60a7fb21650b87711b95f4ca2974dc11c309f4d0
Contents?: true
Size: 1.11 KB
Versions: 15
Compression:
Stored size: 1.11 KB
Contents
# frozen_string_literal: true require_relative "binary_function" module Plurimath module Math module Function class Td < BinaryFunction def to_asciimath parameter_one.map(&:to_asciimath).join(" ") end def to_mathml_without_math_tag return "" if Utility.symbol_value(parameter_one.first, "|") td_attribute = parameter_two if parameter_two&.any? Utility.update_nodes( Utility.ox_element("mtd", attributes: td_attribute), parameter_one.map(&:to_mathml_without_math_tag), ) end def to_latex return "" if Utility.symbol_value(parameter_one.first, "|") parameter_one.map(&:to_latex).join(" ") end def to_html first_value = parameter_one.map(&:to_html).join "<td>#{first_value}</td>" end def to_omml_without_math_tag me = Utility.ox_element("e", namespace: "m") Utility.update_nodes( me, parameter_one&.map(&:to_omml_without_math_tag), ) end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems