Class: Plurimath::Math::Function::Left
- Inherits:
-
UnaryFunction
- Object
- UnaryFunction
- Plurimath::Math::Function::Left
- Defined in:
- lib/plurimath/math/function/left.rb
Instance Attribute Summary
Attributes inherited from UnaryFunction
Instance Method Summary collapse
Methods inherited from UnaryFunction
#==, #class_name, #initialize, #to_html, #to_mathml_without_math_tag, #value_to_asciimath
Constructor Details
This class inherits a constructor from Plurimath::Math::Function::UnaryFunction
Instance Method Details
#to_asciimath ⇒ Object
9 10 11 |
# File 'lib/plurimath/math/function/left.rb', line 9 def to_asciimath "left#{parameter_one}" end |
#to_latex ⇒ Object
13 14 15 16 |
# File 'lib/plurimath/math/function/left.rb', line 13 def to_latex prefix = "\\" if parameter_one == "{" "\\left#{prefix}#{parameter_one}" end |