Class: Plurimath::Math::Function::Left

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

Instance Attribute Summary

Attributes inherited from UnaryFunction

#parameter_one

Instance Method Summary collapse

Methods inherited from UnaryFunction

#==, #class_name, #initialize, #to_mathml_without_math_tag

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/left.rb', line 9

def to_asciimath
  "left#{value_to_asciimath}"
end

#to_latexObject



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

def to_latex
  "\\left(#{parameter_one&.to_latex}\\right)"
end

#value_to_asciimathObject



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

def value_to_asciimath
  "(#{parameter_one.to_asciimath}right)" if parameter_one
end