Class: PrettyDoc::Converter
- Inherits:
-
Object
- Object
- PrettyDoc::Converter
- Defined in:
- lib/pretty_doc/converter.rb
Overview
Common Converter Class that will be inherited
Direct Known Subclasses
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#options ⇒ Object
Returns the value of attribute options.
Class Method Summary collapse
-
.descendants ⇒ Object
load all descendants.
- .perfer_exts ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
4 5 6 |
# File 'lib/pretty_doc/converter.rb', line 4 def content @content end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/pretty_doc/converter.rb', line 4 def @options end |
Class Method Details
.descendants ⇒ Object
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_exts ⇒ Object
10 11 12 |
# File 'lib/pretty_doc/converter.rb', line 10 def self.perfer_exts [] end |
Instance Method Details
#as_html ⇒ Object
6 7 8 |
# File 'lib/pretty_doc/converter.rb', line 6 def as_html convert end |