Class: Kramdown::Parser::ISKram
- Inherits:
-
Kramdown
- Object
- Kramdown
- Kramdown::Parser::ISKram
- Defined in:
- lib/kramdown_parser/kram_parser.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.register_post_parse_hook(&hook) ⇒ Object
8 9 10 11 |
# File 'lib/kramdown_parser/kram_parser.rb', line 8 def register_post_parse_hook &hook @hooks ||= [] @hooks << hook end |
.trigger_post_parse_hooks(parser) ⇒ Object
13 14 15 16 17 |
# File 'lib/kramdown_parser/kram_parser.rb', line 13 def trigger_post_parse_hooks parser @hooks.each do |hook| hook.call parser end end |
Instance Method Details
#parse ⇒ Object
21 22 23 24 |
# File 'lib/kramdown_parser/kram_parser.rb', line 21 def parse super trigger_post_parse_hooks end |