Class: CodelessCode::Formats::Parsers::Base
- Inherits:
-
MediaWikiWalker
- Object
- MediaWikiWalker
- CodelessCode::Formats::Parsers::Base
- Defined in:
- lib/codeless_code/formats/parsers/base.rb
Overview
An abstract base class for the custom parsers for the syntax tree generated by the MediaCloth gem.
Constant Summary collapse
- ABSTRACT_METHODS =
Reimplement these
i[ parse_paragraph parse_paste parse_formatted parse_list_item parse_list_term parse_list_definition parse_preformatted parse_section parse_link parse_internal_link parse_internal_link_item parse_table parse_table_row parse_table_cell parse_element parse_template parse_category parse_keyword ].freeze
Instance Attribute Summary collapse
-
#ctx ⇒ Object
readonly
Returns the value of attribute ctx.
Instance Method Summary collapse
-
#initialize(ctx) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(ctx) ⇒ Base
Returns a new instance of Base.
55 56 57 |
# File 'lib/codeless_code/formats/parsers/base.rb', line 55 def initialize(ctx) @ctx = ctx end |
Instance Attribute Details
#ctx ⇒ Object (readonly)
Returns the value of attribute ctx.
53 54 55 |
# File 'lib/codeless_code/formats/parsers/base.rb', line 53 def ctx @ctx end |