Sha256: 5cb027321ce3c7640e6c3db66683e239f65efe2604b5a71db0ac196b5434cb58
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
# frozen_string_literal: true require_relative "unary_function" module Plurimath module Math module Function class Ddot < UnaryFunction attr_accessor :attributes def initialize(parameter_one = nil, attributes = {}) super(parameter_one) @attributes = attributes end def to_mathml_without_math_tag second_value = Utility.ox_element("mo") << ".." Utility.update_nodes( Utility.ox_element("mover", attributes: { accent: "true" }), mathml_value << second_value, ) end def to_omml_without_math_tag(_) return r_element("..", rpr_tag: false) unless parameter_one symbol = Symbol.new("..") Overset.new(parameter_one, symbol).to_omml_without_math_tag(true) end def to_html first_value = "<i>#{parameter_one.to_html}</i>" if parameter_one "#{first_value}<i>..</i>" end def line_breaking(obj) parameter_one&.line_breaking(obj) obj.update(Utility.filter_values(obj.value)) if obj.value_exist? end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
plurimath-0.7.2 | lib/plurimath/math/function/ddot.rb |
plurimath-0.7.1 | lib/plurimath/math/function/ddot.rb |
plurimath-0.7.0 | lib/plurimath/math/function/ddot.rb |