Class: DocuBot::Writer
- Inherits:
-
Object
- Object
- DocuBot::Writer
- Defined in:
- lib/docubot/writer.rb
Direct Known Subclasses
Constant Summary collapse
- HAML_OPTIONS =
{ :format=>:html4, :ugly=>true }
- DIR =
File.( DocuBot::DIR / 'docubot/writers' )
- INSTALLED_WRITERS =
DocuBot::Writer.by_type.keys
- @@by_type =
{}
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bundle) ⇒ Writer
constructor
A new instance of Writer.
Constructor Details
#initialize(bundle) ⇒ Writer
Returns a new instance of Writer.
15 16 17 |
# File 'lib/docubot/writer.rb', line 15 def initialize( bundle ) @bundle = bundle end |
Class Method Details
.by_type ⇒ Object
10 11 12 |
# File 'lib/docubot/writer.rb', line 10 def self.by_type @@by_type end |
.handles_type(type) ⇒ Object
7 8 9 |
# File 'lib/docubot/writer.rb', line 7 def self.handles_type( type ) @@by_type[type.to_s.downcase] = self end |