Class: Mbrao::Parser
- Inherits:
-
Object
- Object
- Mbrao::Parser
- Includes:
- PublicInterface, Validations
- Defined in:
- lib/mbrao/parser.rb
Overview
A parser to handle pipelined content.
Instance Method Summary (collapse)
-
- (Content) parse(content, options = {})
Parses a source text.
-
- (String) render(content, options = {}, context = {})
Renders a content.
Instance Method Details
- (Content) parse(content, options = {})
Parses a source text.
211 212 213 214 |
# File 'lib/mbrao/parser.rb', line 211 def parse(content, = {}) = () ::Mbrao::Parser.create_engine([:engine]).parse(content, ) end |
- (String) render(content, options = {}, context = {})
Renders a content.
222 223 224 225 |
# File 'lib/mbrao/parser.rb', line 222 def render(content, = {}, context = {}) = () ::Mbrao::Parser.create_engine([:engine], :rendering).render(content, , context) end |