Class: HTML5RubyMacro
- Inherits:
-
Extensions::InlineMacroProcessor
- Object
- Extensions::InlineMacroProcessor
- HTML5RubyMacro
- Defined in:
- lib/asciidoctor-html5ruby/extension.rb
Instance Method Summary collapse
Instance Method Details
#process(parent, target, attributes) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/asciidoctor-html5ruby/extension.rb', line 9 def process parent, target, attributes rt = attributes['rt'] rt ||= "" %(<ruby>#{target}<rt>#{rt}</rt></ruby>) end |