Sha256: 0a6218b272a479136e0106df524014ed2b71b9ed2d461d1561be0a1d83dd7ec7
Contents?: true
Size: 478 Bytes
Versions: 2
Compression:
Stored size: 478 Bytes
Contents
# encoding: utf-8 # WizRft: A gem for exporting Word Documents in ruby # using the Microsoft Rich Text Format (RTF) Specification # Copyright (C) 2015 by sgzhe@163.com module WizRtf class Color def initialize(red, green, blue) @red = red @green = green @blue = blue end def render(io) io.delimit do io.cmd :red, @red io.cmd :green, @green io.cmd :blue, @blue end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wiz_rtf-0.5.5 | lib/wiz_rtf/color.rb |
wiz_rtf-0.5.0 | lib/wiz_rtf/color.rb |