Module: Coradoc::AsciiDoc::Parser::Header
- Defined in:
- lib/coradoc/asciidoc/parser/header.rb
Instance Method Summary collapse
Instance Method Details
#author ⇒ Object
17 18 19 20 21 |
# File 'lib/coradoc/asciidoc/parser/header.rb', line 17 def words.as(:first_name) >> str(',') >> space? >> words.as(:last_name) >> space? >> str('<') >> email.as(:email) >> str('>') >> newline end |
#header ⇒ Object
7 8 9 10 11 |
# File 'lib/coradoc/asciidoc/parser/header.rb', line 7 def header header_title >> .maybe.as(:author) >> revision.maybe.as(:revision) >> newline.maybe end |
#header_title ⇒ Object
13 14 15 |
# File 'lib/coradoc/asciidoc/parser/header.rb', line 13 def header_title match('^=') >> str('=').absent? >> space? >> text.as(:title) >> newline end |
#revision ⇒ Object
23 24 25 26 27 |
# File 'lib/coradoc/asciidoc/parser/header.rb', line 23 def revision (word >> (str('.') >> word).maybe).as(:number) >> str(',') >> space? >> date.as(:date) >> str(':') >> space? >> words.as(:remark) >> newline end |