Module: Coradoc::Parser::Asciidoc::Bibdata

Includes:
Base
Included in:
Base
Defined in:
lib/coradoc/parser/asciidoc/bibdata.rb

Instance Method Summary collapse

Methods included from Base

#attribute_name, #attribute_value, #digits, #email, #empty_line, #endline, #keyword, #line_ending, #newline, #space, #space?, #special_character, #text, #word, #words

Instance Method Details

#bibdataObject



12
13
14
15
# File 'lib/coradoc/parser/asciidoc/bibdata.rb', line 12

def bibdata
  str(":") >> attribute_name.as(:key) >> str(":") >>
  space? >> attribute_value.as(:value) >> line_ending
end

#bibdatasObject

Bibdata



8
9
10
# File 'lib/coradoc/parser/asciidoc/bibdata.rb', line 8

def bibdatas
  bibdata.repeat(1)
end