123456789_123456789_123456789_123456789_123456789_

Class: RDoc::Markup::Element Abstract

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Inherits: Object
Defined in: lib/rdoc/markup/element.rb

Overview

This class is abstract.

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

Instance Method Summary

Instance Method Details

#accept(visitor)

This method is abstract.

: (untyped) -> void

Raises:

  • (NotImplementedError)
[ GitHub ]

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

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

#pretty_print(q)

This method is abstract.

: (PP) -> void

Raises:

  • (NotImplementedError)
[ GitHub ]

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

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