Class: PrettyDoc::Converter

Inherits:
Object
  • Object
show all
Defined in:
lib/pretty_doc/converter.rb

Overview

Common Converter Class that will be inherited

Direct Known Subclasses

Markdown

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content.



4
5
6
# File 'lib/pretty_doc/converter.rb', line 4

def content
  @content
end

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/pretty_doc/converter.rb', line 4

def options
  @options
end

Class Method Details

.descendantsObject

load all descendants



15
16
17
# File 'lib/pretty_doc/converter.rb', line 15

def self.descendants
  ObjectSpace.each_object(Class).select { |klass| klass < self }
end

.perfer_extsObject



10
11
12
# File 'lib/pretty_doc/converter.rb', line 10

def self.perfer_exts
  []
end

Instance Method Details

#as_htmlObject



6
7
8
# File 'lib/pretty_doc/converter.rb', line 6

def as_html
  convert
end