Sha256: afad838ef68990152de4407b58338bd45db245fa39087f228f6a680a483a2927
Contents?: true
Size: 698 Bytes
Versions: 16
Compression:
Stored size: 698 Bytes
Contents
# frozen_string_literal: true require_relative "binary_function" module Plurimath module Math module Function class Arg < BinaryFunction def to_mathml_without_math_tag(intent, options:) first_value = parameter_one.to_mathml_without_math_tag(intent, options: options) first_value.attributes[:arg] = Utility.html_entity_to_unicode(parameter_two.value) first_value end def to_unicodemath(options:) first_value = "(#{parameter_two&.to_unicodemath(options: options)} #{parameter_one&.to_unicodemath(options: options)})" if parameter_one || parameter_two "ⓐ#{first_value}" end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems