Module: Coradoc::Parser::Asciidoc::Term
- Included in:
- Base
- Defined in:
- lib/coradoc/parser/asciidoc/term.rb
Instance Method Summary collapse
Instance Method Details
#term ⇒ Object
9 10 11 12 13 14 |
# File 'lib/coradoc/parser/asciidoc/term.rb', line 9 def term line_start? >> term_type >> str(':[') >> match('[^\]]').repeat(1).as(:term) >> str("]") >> str("\n").repeat(1).as(:line_break) end |
#term2 ⇒ Object
16 17 18 19 20 21 |
# File 'lib/coradoc/parser/asciidoc/term.rb', line 16 def term2 line_start? >> match('^\[') >> term_type >> str(']#') >> match('[^\#]').repeat(1).as(:term2) >> str('#') >> str("\n").repeat(1).as(:line_break) end |
#term_type ⇒ Object
5 6 7 |
# File 'lib/coradoc/parser/asciidoc/term.rb', line 5 def term_type (str("alt") | str("deprecated") | str("domain")).as(:term_type) end |