Module: Ritex
- Defined in:
- lib/ritex.rb,
lib/ritex/lexer.rb,
lib/ritex/parser.rb,
lib/ritex/mathml/markup.rb,
lib/ritex/mathml/entities.rb,
lib/ritex/mathml/functions.rb
Overview
The main module for everything Ritex-related. See Ritex::Parser.
Defined Under Namespace
Modules: MathML Classes: Error, LexError, Lexer, Parser
Class Method Summary collapse
-
.global_parser ⇒ Object
This is not ideal by any means.
-
.global_parser=(value) ⇒ Object
This is not ideal by any means.
Class Method Details
.global_parser ⇒ Object
This is not ideal by any means. Until we can call a Proc with an arbitrary binding (Ruby 1.9?), we will relay all #markup and #lookup calls within the module to a registered parser, so that the “functions” in lib/functions.rb can be written more easily. Any better ideas?
In the mean time, I’d recommend not having more than one parser at a time going.
28 29 30 |
# File 'lib/ritex.rb', line 28 def global_parser @global_parser end |
.global_parser=(value) ⇒ Object
This is not ideal by any means. Until we can call a Proc with an arbitrary binding (Ruby 1.9?), we will relay all #markup and #lookup calls within the module to a registered parser, so that the “functions” in lib/functions.rb can be written more easily. Any better ideas?
In the mean time, I’d recommend not having more than one parser at a time going.
28 29 30 |
# File 'lib/ritex.rb', line 28 def global_parser=(value) @global_parser = value end |