Module: Coradoc::AsciiDoc::Parser::Stem
- Included in:
- Base
- Defined in:
- lib/coradoc/asciidoc/parser/stem.rb
Instance Method Summary collapse
Instance Method Details
#stem ⇒ Object
11 12 13 14 15 |
# File 'lib/coradoc/asciidoc/parser/stem.rb', line 11 def stem (stem_type >> str(':[') >> match('[^\]]').repeat(1).as(:content) >> str(']')).as(:stem) end |
#stem_type ⇒ Object
7 8 9 |
# File 'lib/coradoc/asciidoc/parser/stem.rb', line 7 def stem_type (str('stem') | str('latexmath') | str('asciimath')).as(:stem_type) end |