Method: DocuBot::Bundle#write
- Defined in:
- lib/docubot/bundle.rb
#write(writer_type, destination = nil) ⇒ Object
188 189 190 191 192 193 194 195 |
# File 'lib/docubot/bundle.rb', line 188 def write( writer_type, destination=nil ) writer = DocuBot::Writer.by_type[ writer_type.to_s.downcase ] if writer writer.new( self ).write( destination ) else raise "Unknown writer '#{writer_type}'; available types: #{DocuBot::Writer::INSTALLED_WRITERS.join ', '}" end end |