Class: Plurimath::Math::Function::Table::Array
- Inherits:
-
Table
- Object
- Table
- Plurimath::Math::Function::Table::Array
- Defined in:
- lib/plurimath/math/function/table/array.rb
Instance Method Summary collapse
-
#initialize(value = [], open_paren = "[", close_paren = "]", options = {}) ⇒ Array
constructor
A new instance of Array.
- #to_latex(options:) ⇒ Object
- #to_mathml_without_math_tag(intent, options:) ⇒ Object
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 = "]", = {}) 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: )}\\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: ) end, ) end |