Class: Plurimath::Math::Function::Table::Cases
- Inherits:
-
Table
- Object
- Table
- Plurimath::Math::Function::Table::Cases
- Defined in:
- lib/plurimath/math/function/table/cases.rb
Instance Method Summary collapse
-
#initialize(value = [], open_paren = "{", close_paren = ":}", options = {}) ⇒ Cases
constructor
A new instance of Cases.
- #to_mathml_without_math_tag(intent) ⇒ Object
- #to_unicodemath(options:) ⇒ Object
Constructor Details
#initialize(value = [], open_paren = "{", close_paren = ":}", options = {}) ⇒ Cases
Returns a new instance of Cases.
8 9 10 11 12 13 |
# File 'lib/plurimath/math/function/table/cases.rb', line 8 def initialize(value = [], open_paren = "{", close_paren = ":}", = {}) super end |
Instance Method Details
#to_mathml_without_math_tag(intent) ⇒ Object
22 23 24 25 26 27 |
# File 'lib/plurimath/math/function/table/cases.rb', line 22 def to_mathml_without_math_tag(intent, **) table_tag = super set_table_intent(table_tag) if intent table_tag.attributes["intent"] = intent_names[:equations] if intent table_tag end |
#to_unicodemath(options:) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/plurimath/math/function/table/cases.rb', line 15 def to_unicodemath(options:) unicode_value = value.map do |val| val.to_unicodemath(options: ) end.join("@") "Ⓒ(#{unicode_value})" end |