Class: Coradoc::Parser::Base
- Inherits:
-
Asciidoc::Base
- Object
- Parslet::Parser
- Asciidoc::Base
- Coradoc::Parser::Base
- Defined in:
- lib/coradoc/parser/base.rb
Class Method Summary collapse
Methods inherited from Asciidoc::Base
Methods included from Asciidoc::Text
#attr_name, #block_image, #comment_block, #comment_line, #date, #digit, #digits, #email, #empty_line, #endline, #eof?, #file_path, #include_directive, #inline_image, #keyword, #line_end, #line_ending, #line_start?, #newline, #newline_single, #rich_text, #rich_texts, #space, #space?, #special_character, #tag, #text, #word, #words
Methods included from Asciidoc::Term
#footnote, #term, #term_inline, #term_inline2, #term_type
Methods included from Asciidoc::Table
#cell_content, #empty_cell_content, #table, #table_row
Methods included from Asciidoc::Section
#contents, #section, #section_block, #section_prefix, #section_title
Methods included from Asciidoc::Paragraph
#line_not_text?, #paragraph, #paragraph_attributes, #paragraph_text_line
Methods included from Asciidoc::List
#definition_list, #dlist_definition, #dlist_delimiter, #dlist_item, #dlist_term, #list, #list_continuation, #list_marker, #olist_item, #olist_marker, #ordered_list, #ulist_item, #ulist_marker, #unordered_list
Methods included from Asciidoc::Inline
#attribute_reference, #bold_constrained, #bold_unconstrained, #highlight_constrained, #highlight_unconstrained, #inline, #inline_chars?, #inline_image, #italic_constrained, #italic_unconstrained, #link, #monospace_constrained, #monospace_unconstrained, #small, #span, #span_constrained, #span_unconstrained, #subscript, #superscript, #text_any, #text_formatted, #text_unformatted, #underline
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, #element_id, #element_id_inline, #glossaries, #glossary, #list_prefix, #literal_space, #literal_space?, #text_line
Methods included from Asciidoc::Citation
#cross_reference, #xref_anchor, #xref_arg, #xref_str
Methods included from Asciidoc::Block
#block, #block_content, #block_delimiter, #block_style, #block_title, #block_type, #element_attributes, #example_block, #pass_block, #quote_block, #sidebar_block, #source_block
Methods included from Asciidoc::Bibliography
Methods included from Asciidoc::AttributeList
#attribute_list, #named_attribute, #named_attribute_name, #named_key, #named_many, #named_value, #named_value_double_quote, #named_value_noquote, #named_value_single_quote, #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
32 33 34 35 36 37 |
# File 'lib/coradoc/parser/base.rb', line 32 def self.parse(filename) content = File.read(filename) new.parse(content) rescue Parslet::ParseFailed => e puts e.parse_failure_cause.ascii_tree end |