Class: RDoc::Markup::Element Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/rdoc/markup/element.rb

Overview

This class is abstract.

Base class defining the interface for all markup elements found in documentation

Direct Known Subclasses

BlankLine, HardBreak, Table

Instance Method Summary collapse

Instance Method Details

#accept(visitor) ⇒ Object

This method is abstract.

: (untyped) -> void

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/rdoc/markup/element.rb', line 10

def accept(visitor)
  raise NotImplementedError, "#{self.class} must implement the accept method"
end

#pretty_print(q) ⇒ Object

This method is abstract.

: (PP) -> void

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/rdoc/markup/element.rb', line 16

def pretty_print(q)
  raise NotImplementedError, "#{self.class} must implement the pretty_print method"
end