Sha256: c0f0d6ee291f73b1573642a746644f989745a1289d6947450914ad2929f396d2
Contents?: true
Size: 583 Bytes
Versions: 15
Compression:
Stored size: 583 Bytes
Contents
# frozen_string_literal: true module Plurimath module Math class Number < Base attr_accessor :value def initialize(value) @value = super end def ==(object) object.value == value end def to_asciimath value end def to_mathml_without_math_tag Utility.ox_element("mn") << value end def to_latex value end def to_html value end def to_omml_without_math_tag Utility.ox_element("t", namespace: "m") << value end end end end
Version data entries
15 entries across 15 versions & 1 rubygems