Class: Coradoc::Parser::Base
- Inherits:
-
Parslet::Parser
- Object
- Parslet::Parser
- Coradoc::Parser::Base
- Includes:
- Asciidoc::AttributeList, Asciidoc::Base, Asciidoc::Block, Asciidoc::Citation, Asciidoc::Content, Asciidoc::DocumentAttributes, Asciidoc::Header, Asciidoc::Inline, Asciidoc::List, Asciidoc::Paragraph, Asciidoc::Section, Asciidoc::Table, Asciidoc::Term
- Defined in:
- lib/coradoc/parser/base.rb
Class Method Summary collapse
Methods included from Asciidoc::Term
Methods included from Asciidoc::Table
#cell_content, #empty_cell_content, #table, #table_row
Methods included from Asciidoc::Section
#contents, #section, #section_block, #section_id, #section_title
Methods included from Asciidoc::Paragraph
#paragraph, #paragraph_attributes, #paragraph_text_line
Methods included from Asciidoc::List
#definition_list, #dlist_definition, #dlist_delimiter, #dlist_item, #dlist_term, #list, #olist_item, #ordered_list, #ulist_item, #unordered_list
Methods included from Asciidoc::Inline
#bold_constrained, #bold_unconstrained, #highlight_constrained, #highlight_unconstrained, #italic_constrained, #italic_unconstrained, #text_formatted, #text_unformatted
Methods included from Asciidoc::Header
#author, #header, #header_title, #revision
Methods included from Asciidoc::DocumentAttributes
#attribute_name, #attribute_value, #document_attribute, #document_attributes
Methods included from Asciidoc::Content
#asciidoc_char, #asciidoc_char_with_id, #glossaries, #glossary, #highlight, #highlight_text, #literal_space, #literal_space?, #text_id, #text_line, #underline
Methods included from Asciidoc::Citation
#citation, #citation_noxref, #citation_xref, #cross_reference, #xref_anchor, #xref_arg, #xref_str
Methods included from Asciidoc::Block
#block, #block_content, #block_id, #block_style, #block_title, #block_type, #example_block, #pass_block, #quote_block, #sidebar_block, #source_block
Methods included from Asciidoc::Base
#attr_name, #block_image, #comment_block, #comment_line, #date, #digit, #digits, #email, #empty_line, #endline, #file_path, #include_directive, #inline_image, #keyword, #line_ending, #newline, #newline_single, #rich_text, #rich_texts, #space, #space?, #special_character, #tag, #text, #word, #words
Methods included from Asciidoc::Bibliography
Methods included from Asciidoc::AttributeList
#attribute_list, #named_attribute, #named_attribute_name, #named_attribute_value, #named_many, #positional_attribute, #positional_many, #positional_many_named_many, #positional_one_named_many, #positional_zero_or_one
Methods included from Asciidoc::Admonition
#admonition_line, #admonition_type
Class Method Details
.parse(filename) ⇒ Object
59 60 61 62 63 64 |
# File 'lib/coradoc/parser/base.rb', line 59 def self.parse(filename) content = File.read(filename) new.parse(content) rescue Parslet::ParseFailed => e puts e.parse_failure_cause.ascii_tree end |