Class: Plurimath::Math::Function::Table::Array

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Array.



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

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

Instance Method Details

#to_latex(options:) ⇒ Object



15
16
17
# File 'lib/plurimath/math/function/table/array.rb', line 15

def to_latex(options:)
  "\\begin{array}#{array_args || '.'}#{latex_content(options: options)}\\end{array}"
end

#to_mathml_without_math_tag(intent, options:) ⇒ Object



19
20
21
22
23
24
25
26
# File 'lib/plurimath/math/function/table/array.rb', line 19

def to_mathml_without_math_tag(intent, options:)
  Utility.update_nodes(
    ox_element("mtable", attributes: attributes(intent)),
    value&.map do |object|
      object&.to_mathml_without_math_tag(intent, options: options)
    end,
  )
end