Sha256: 7f027da4de5746f0c1ef32fd7cb1ff470750109b2a7610e15e117c5bec247622
Contents?: true
Size: 512 Bytes
Versions: 11
Compression:
Stored size: 512 Bytes
Contents
# frozen_string_literal: true module Unitsml class Extender attr_accessor :symbol def initialize(symbol) @symbol = symbol end def ==(object) self.class == object.class && symbol == object&.symbol end def to_mathml Utility.ox_element("mo") << "⋅" end def to_latex "/" end def to_asciimath symbol end def to_html "⋅" end def to_unicode symbol == "*" ? "ยท" : symbol end end end
Version data entries
11 entries across 11 versions & 1 rubygems