Class: Plurimath::Math::Function::Rule

Inherits:
TernaryFunction show all
Defined in:
lib/plurimath/math/function/rule.rb

Instance Attribute Summary

Attributes inherited from TernaryFunction

#parameter_one, #parameter_three, #parameter_two

Instance Method Summary collapse

Methods inherited from TernaryFunction

#==, #class_name, #initialize

Constructor Details

This class inherits a constructor from Plurimath::Math::Function::TernaryFunction

Instance Method Details

#to_asciimathObject



8
9
10
# File 'lib/plurimath/math/function/rule.rb', line 8

def to_asciimath
  ""
end

#to_htmlObject



27
28
29
# File 'lib/plurimath/math/function/rule.rb', line 27

def to_html
  ""
end

#to_latexObject



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_tagObject



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_tagObject



23
24
25
# File 'lib/plurimath/math/function/rule.rb', line 23

def to_omml_without_math_tag
  Utility.ox_element("m:e")
end