Sha256: bbaca8dd4908b97e2070dc79d3a3360bcb0cabda5d20fe2ad08b95c9d4a912d9
Contents?: true
Size: 1.1 KB
Versions: 10
Compression:
Stored size: 1.1 KB
Contents
# frozen_string_literal: true require_relative "ternary_function" module Plurimath module Math module Function class Rule < TernaryFunction FUNCTION = { name: "rule", first_value: "first argument", second_value: "second argument", third_value: "third argument", }.freeze def to_asciimath(**) "" end def to_latex(options:) first_value = "[#{parameter_one.to_latex(options: options)}]" if parameter_one second_value = "{#{parameter_two.to_latex(options: options)}}" if parameter_two third_value = "{#{parameter_three.to_latex(options: options)}}" if parameter_three "\\rule#{first_value}#{second_value}#{third_value}" end def to_mathml_without_math_tag(intent, **) Utility.ox_element("mi") end def to_omml_without_math_tag(_, **) [Utility.ox_element("m:r") << Utility.ox_element("m:t")] end def to_html "" end def to_unicodemath(**) "" end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems