Class: Plurimath::Math::Function::Obrace
Instance Attribute Summary
#parameter_one
Instance Method Summary
collapse
#==, #initialize, #to_asciimath, #to_html
Methods inherited from Core
#class_name, #empty_tag, #insert_t_tag, #nary_attr_value, #omml_parameter, #omml_tag_name, #r_element, #tag_name
Instance Method Details
#to_latex ⇒ Object
9
10
11
12
|
# File 'lib/plurimath/math/function/obrace.rb', line 9
def to_latex
first_value = "{#{parameter_one.to_latex}}" if parameter_one
"\\overbrace#{first_value}"
end
|
#to_mathml_without_math_tag ⇒ Object
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/plurimath/math/function/obrace.rb', line 14
def to_mathml_without_math_tag
mo_tag = (Utility.ox_element("mo") << "⏞")
if parameter_one
over_tag = Utility.ox_element("mover")
arr_value = mathml_value
Utility.update_nodes(over_tag, (arr_value << mo_tag))
else
mo_tag
end
end
|
#to_omml_without_math_tag ⇒ Object
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/plurimath/math/function/obrace.rb', line 29
def to_omml_without_math_tag
groupchr = Utility.ox_element("groupChr", namespace: "m")
Utility.update_nodes(
groupchr,
[
group_chr_pr,
omml_parameter(parameter_one, tag_name: "e"),
],
)
[groupchr]
end
|
25
26
27
|
# File 'lib/plurimath/math/function/obrace.rb', line 25
def validate_function_formula
false
end
|