File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,7 @@ def convert(input, formatter)
210210 autoload :BlankLine , "#{ __dir__ } /markup/blank_line"
211211 autoload :BlockQuote , "#{ __dir__ } /markup/block_quote"
212212 autoload :Document , "#{ __dir__ } /markup/document"
213+ autoload :Element , "#{ __dir__ } /markup/element"
213214 autoload :HardBreak , "#{ __dir__ } /markup/hard_break"
214215 autoload :Heading , "#{ __dir__ } /markup/heading"
215216 autoload :Include , "#{ __dir__ } /markup/include"
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ module RDoc
4+ class Markup
5+ # Base class defining the interface for all markup elements found in documentation
6+ # @abstract
7+ class Element
8+ # @abstract
9+ #: (untyped) -> void
10+ def accept ( visitor )
11+ raise NotImplementedError , "#{ self . class } must implement the accept method"
12+ end
13+
14+ # @abstract
15+ #: (PP) -> void
16+ def pretty_print ( q )
17+ raise NotImplementedError , "#{ self . class } must implement the pretty_print method"
18+ end
19+ end
20+ end
21+ end
You can’t perform that action at this time.
0 commit comments