Class: Plurimath::Math::Function::Right

Inherits:
UnaryFunction show all
Defined in:
lib/plurimath/math/function/right.rb

Instance Attribute Summary

Attributes inherited from UnaryFunction

#parameter_one

Instance Method Summary collapse

Methods inherited from UnaryFunction

#==, #class_name, #initialize, #to_html, #value_to_asciimath

Constructor Details

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

Instance Method Details

#to_asciimathObject



9
10
11
# File 'lib/plurimath/math/function/right.rb', line 9

def to_asciimath
  "right#{parameter_one}"
end

#to_latexObject



17
18
19
20
# File 'lib/plurimath/math/function/right.rb', line 17

def to_latex
  prefix = "\\" if parameter_one == "}"
  "\\right#{prefix}#{parameter_one}"
end

#to_mathml_without_math_tagObject



13
14
15
# File 'lib/plurimath/math/function/right.rb', line 13

def to_mathml_without_math_tag
  "<mi>#{parameter_one}</mi>"
end