Class: Plurimath::Math::Function::Text
  
  
  
  Instance Attribute Summary
  
  
  #parameter_one
  
    
      Instance Method Summary
      collapse
    
    
  
  
  
  
  
  
  
  
  
  
  #==, #class_name, #initialize, #value_to_asciimath
  
    Instance Method Details
    
      
  
  
    #symbol_value(unicode)  ⇒ Object 
  
  
  
 
    
      
  
  
    #to_asciimath  ⇒ Object 
  
  
  
  
    
      
9
10
11 
     | 
    
      # File 'lib/plurimath/math/function/text.rb', line 9
def to_asciimath
  "\"#{parameter_one}\""
end
     | 
  
 
    
      
  
  
    #to_latex  ⇒ Object 
  
  
  
  
    
      
26
27
28 
     | 
    
      # File 'lib/plurimath/math/function/text.rb', line 26
def to_latex
  parameter_one
end 
     | 
  
 
    
      
  
  
    #to_mathml_without_math_tag  ⇒ Object 
  
  
  
  
    
      
13
14
15
16
17
18
19 
     | 
    
      # File 'lib/plurimath/math/function/text.rb', line 13
def to_mathml_without_math_tag
  regex_exp = %r{unicode\[:(?<unicode>\w{1,})\]}
  parameter_one.gsub!(regex_exp) do |_text|
    symbol_value(Regexp.last_match[:unicode]).to_s
  end
  "<mtext>#{parameter_one}</mtext>"
end
     |