Sha256: fd1b15092f3c89dca5d3818d5f378a5d73baba662d8bf67ad4471ff5057419ce

Contents?: true

Size: 764 Bytes

Versions: 15

Compression:

Stored size: 764 Bytes

Contents

# frozen_string_literal: true

require_relative "ternary_function"
module Plurimath
  module Math
    module Function
      class Rule < TernaryFunction
        def to_asciimath
          ""
        end

        def to_latex
          first_value = "[#{parameter_one.to_latex}]" if parameter_one
          second_value = "{#{parameter_two.to_latex}}" if parameter_two
          third_value = "{#{parameter_three.to_latex}}" if parameter_three
          "\\rule#{first_value}#{second_value}#{third_value}"
        end

        def to_mathml_without_math_tag
          Utility.ox_element("mi")
        end

        def to_omml_without_math_tag
          Utility.ox_element("m:e")
        end

        def to_html
          ""
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
plurimath-0.3.5 lib/plurimath/math/function/rule.rb
plurimath-0.3.4 lib/plurimath/math/function/rule.rb
plurimath-0.3.3 lib/plurimath/math/function/rule.rb
plurimath-0.3.2 lib/plurimath/math/function/rule.rb
plurimath-0.3.1.2 lib/plurimath/math/function/rule.rb
plurimath-0.3.1 lib/plurimath/math/function/rule.rb
plurimath-0.3.0 lib/plurimath/math/function/rule.rb
plurimath-0.2.9 lib/plurimath/math/function/rule.rb
plurimath-0.2.8 lib/plurimath/math/function/rule.rb
plurimath-0.2.7 lib/plurimath/math/function/rule.rb
plurimath-0.2.6 lib/plurimath/math/function/rule.rb
plurimath-0.2.5 lib/plurimath/math/function/rule.rb
plurimath-0.2.4 lib/plurimath/math/function/rule.rb
plurimath-0.2.3 lib/plurimath/math/function/rule.rb
plurimath-0.2.2 lib/plurimath/math/function/rule.rb