Class: Plurimath::Asciimath::Parser
- Inherits:
 - 
      Object
      
        
- Object
 - Plurimath::Asciimath::Parser
 
 
- Defined in:
 - lib/plurimath/asciimath/parser.rb
 
Instance Attribute Summary collapse
- 
  
    
      #text  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute text.
 
Instance Method Summary collapse
- 
  
    
      #initialize(text)  ⇒ Parser 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Parser.
 - #parse ⇒ Object
 
Constructor Details
#initialize(text) ⇒ Parser
Returns a new instance of Parser.
      11 12 13 14 15 16 17 18  | 
    
      # File 'lib/plurimath/asciimath/parser.rb', line 11 def initialize(text) @text = text &.gsub(/(\|:|:\|)/, "|") &.gsub(/(\{:)/, "ℒ") &.gsub(/(:\})/, "ℛ") &.gsub(/(\(:)/, "ᑕ") &.gsub(/(:\))/, "ᑐ") end  | 
  
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
      9 10 11  | 
    
      # File 'lib/plurimath/asciimath/parser.rb', line 9 def text @text end  |