Sha256: cfdfad0eddb1a49d946feabaca4b75f6fcc86d270660723bc3905a7b70358604
Contents?: true
Size: 690 Bytes
Versions: 1
Compression:
Stored size: 690 Bytes
Contents
module DocxGenerator module Word # Extensions to create some common elements easily. module Extensions def self.space DocxGenerator::Word::Run.new({}, [DocxGenerator::Word::Text.new({ "xml:space" => "preserve" }, [" "])]) end def self.newline DocxGenerator::Word::Run.new({}, [DocxGenerator::Word::Break.new]) end class Newline def generate DocxGenerator::Word::Run.new({}, [DocxGenerator::Word::Break.new]) end end class Tab def generate DocxGenerator::Word::Run.new({}, [DocxGenerator::Word::Tab.new]) end end class NoSpace end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
docx_generator-0.1.1 | lib/docx_generator/word/extensions.rb |