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.
173 174 175 176 |
# File 'lib/mbrao/parser.rb', line 173 def parse(content, = {}) = () ::Mbrao::Parser.create_engine([:engine]).parse(content, ) end |
- (String) render(content, options = {}, context = {})
Renders a content.
184 185 186 187 |
# File 'lib/mbrao/parser.rb', line 184 def render(content, = {}, context = {}) = () ::Mbrao::Parser.create_engine([:engine], :rendering).render(content, , context) end |