Sha256: 84d402f268a40671372d210890cacf84d709cfec072fc7c62c888c334141e01f

Contents?: true

Size: 433 Bytes

Versions: 6

Compression:

Stored size: 433 Bytes

Contents

require 'rrtf'

DIR = File.dirname(__FILE__)

rtf = RRTF::Document.new
rtf.paragraph(
  "justification" => "RIGHT",
  "foreground_color" => '#ff0000',
  "font" => "ROMAN:Times"
) << \
  "Should you ever find yourself on a spacefaring vessel "\
  "wearing RED shirt, take heed and be on guard, for danger "\
  "is immanent and you are likely expendable among the crew."
File.open(DIR+'/03.rtf', 'w') { |file| file.write(rtf.to_rtf) }

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rrtf-1.3.1 examples/03_paragraph_inline_style.rb
rrtf-1.3.0 examples/03_paragraph_inline_style.rb
rrtf-1.2.0 examples/03_paragraph_inline_style.rb
rrtf-1.1.0 examples/03_paragraph_inline_style.rb
rrtf-1.0.1 examples/03_paragraph_inline_style.rb
rrtf-1.0.0 examples/03_paragraph_inline_style.rb