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