Sha256: d839f37dc04304eae7ebd6e3e5a86e3c8c3ba290b2add6557688e44db063fcd3
Contents?: true
Size: 378 Bytes
Versions: 1
Compression:
Stored size: 378 Bytes
Contents
module Booky::Docbook def self.create puts "\n-> Creating Docbook XML" raise "File #{Booky.name}.textile not found. Sorry" if !File.exists?("#{Booky.name}.textile") textile = File.open("#{Booky.name}.textile", 'rb') { |f| f.read } File.open("#{Booky.name}.xml", 'w') {|f| f.write(RedCloth.new(textile).to_docbook) } puts "Done.\n" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
booky-0.0.1 | lib/booky/docbook.rb |