Class: Plurimath::Math::Function::Table::Eqarray

Inherits:
Table
  • Object
show all
Defined in:
lib/plurimath/math/function/table/eqarray.rb

Instance Method Summary collapse

Constructor Details

#initialize(value = [], open_paren = "", close_paren = "", options = {}) ⇒ Eqarray

Returns a new instance of Eqarray.



8
9
10
11
12
13
# File 'lib/plurimath/math/function/table/eqarray.rb', line 8

def initialize(value = [],
               open_paren = "",
               close_paren = "",
               options = {})
  super
end

Instance Method Details

#to_mathml_without_math_tag(intent) ⇒ Object



22
23
24
25
26
27
# File 'lib/plurimath/math/function/table/eqarray.rb', line 22

def to_mathml_without_math_tag(intent, **)
  matrix = super
  set_table_intent(matrix) if intent
  matrix["intent"] = intent_names[:equations] if intent
  matrix
end

#to_unicodemath(options:) ⇒ Object



15
16
17
18
19
20
# File 'lib/plurimath/math/function/table/eqarray.rb', line 15

def to_unicodemath(options:)
  unicode_value = value.map do |val|
    val.to_unicodemath(options: options)
  end.join("@")
  "#{open_paren&.to_unicodemath(options: options)}█(#{unicode_value})#{close_paren&.to_unicodemath(options: options)}"
end