Class: Plurimath::Math::Function::Left
  
  
  
  Instance Attribute Summary
  
  
  #parameter_one
  
    
      Instance Method Summary
      collapse
    
    
  
  
  
  
  
  
  
  
  
  
  #==, #class_name, #initialize
  
  
  
  
  
  
  
  
  Methods inherited from Core
  #class_name, #empty_tag, #insert_t_tag, #nary_attr_value, #omml_parameter, #tag_name
  
    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_html  ⇒ Object 
  
  
  
  
    
      
28
29
30 
     | 
    
      # File 'lib/plurimath/math/function/left.rb', line 28
def to_html
  "<i>#{parameter_one}</i>"
end
     | 
  
 
    
      
    
      
  
  
    #to_mathml_without_math_tag  ⇒ Object 
  
  
  
  
    
      
13
14
15
16
17 
     | 
    
      # File 'lib/plurimath/math/function/left.rb', line 13
def to_mathml_without_math_tag
  mo = Utility.ox_element("mo")
  mo << left_paren if parameter_one
  mo
end
     | 
  
 
    
      
  
  
    #to_omml_without_math_tag  ⇒ Object 
  
  
  
  
    
      
19
20
21
22
23
24
25
26 
     | 
    
      # File 'lib/plurimath/math/function/left.rb', line 19
def to_omml_without_math_tag
  mr = Utility.ox_element("m:r")
  if parameter_one
    mt = Utility.ox_element("m:t")
    mr << (mt << parameter_one)
  end
  [mr]
end
     | 
  
 
    
      
  
  
    
      
36
37
38 
     | 
    
      # File 'lib/plurimath/math/function/left.rb', line 36
def validate_function_formula
  false
end 
     |