Class: Plurimath::Math::Function::Rule
Instance Attribute Summary
#parameter_one, #parameter_three, #parameter_two
Instance Method Summary
collapse
#==, #class_name, #initialize
Instance Method Details
#to_asciimath ⇒ Object
8
9
10
|
# File 'lib/plurimath/math/function/rule.rb', line 8
def to_asciimath
""
end
|
#to_html ⇒ Object
27
28
29
|
# File 'lib/plurimath/math/function/rule.rb', line 27
def to_html
""
end
|
#to_latex ⇒ Object
12
13
14
15
16
17
|
# File 'lib/plurimath/math/function/rule.rb', line 12
def to_latex
first_value = "[#{parameter_one.to_latex}]" if parameter_one
second_value = "{#{parameter_two.to_latex}}" if parameter_two
third_value = "{#{parameter_three.to_latex}}" if parameter_three
"\\rule#{first_value}#{second_value}#{third_value}"
end
|
#to_mathml_without_math_tag ⇒ Object
19
20
21
|
# File 'lib/plurimath/math/function/rule.rb', line 19
def to_mathml_without_math_tag
Utility.ox_element("mi")
end
|
#to_omml_without_math_tag ⇒ Object
23
24
25
|
# File 'lib/plurimath/math/function/rule.rb', line 23
def to_omml_without_math_tag
Utility.ox_element("m:e")
end
|