Class: Coradoc::Parser::Base

Inherits:
Parslet::Parser
  • Object
show all
Includes:
Asciidoc::Bibdata, Asciidoc::Header, Asciidoc::Section
Defined in:
lib/coradoc/parser/base.rb

Class Method Summary collapse

Methods included from Asciidoc::Section

#fifth_level_section, #fourth_level_section, #second_level_section, #section, #section_block, #section_id, #section_title, #sixth_level_section, #sub_section, #third_level_section

Methods included from Asciidoc::Content

#asciidoc_char, #asciidoc_char_with_id, #block_title, #cell_content, #contents, #definition_list, #dlist_item, #empty_cell_content, #example_block, #glossaries, #glossary, #highlight, #highlight_text, #list, #literal_space, #literal_space?, #nlist_item, #numbered_list, #paragraph, #table, #table_row, #text_id, #text_line, #ulist_item, #underline, #unnumbered_list, #word

Methods included from Asciidoc::Base

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

Methods included from Asciidoc::Bibdata

#bibdata, #bibdatas

Methods included from Asciidoc::Header

#author, #header, #revision

Class Method Details

.parse(filename) ⇒ Object



26
27
28
29
# File 'lib/coradoc/parser/base.rb', line 26

def self.parse(filename)
  content = File.read(filename)
  new.parse_with_debug(content)
end