Class: DocuBot::Writer

Inherits:
Object
  • Object
show all
Defined in:
lib/docubot/writer.rb

Direct Known Subclasses

HTMLWriter

Constant Summary collapse

HAML_OPTIONS =
{ :format=>:html4, :ugly=>true }
DIR =
File.expand_path( DocuBot::DIR / 'docubot/writers' )
INSTALLED_WRITERS =
DocuBot::Writer.by_type.keys
@@by_type =
{}

Class Method Summary collapse

Instance Method Summary collapse

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_typeObject



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