Sha256: b0664686e3b7f0fa0b93d76d25fdd58d2ed1cf4f8c34ab482ae3a9fdea4f876b

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

require 'rrtf'

DIR = File.dirname(__FILE__)

rtf = RRTF::Document.new

rtf.paragraph("tabs" => {
    "leader" => "DOT",
    "type" => "FLUSH_RIGHT",
    "position" => "2in"
}) do |p|
  p << "Engineers"
  p.tab
  p << "10"
  p.line_break
  p << "Redshirts"
  p.tab
  p << "100"
end

File.open(DIR+'/12.rtf', 'w') { |file| file.write(rtf.to_rtf) }

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rrtf-1.3.1 examples/12_tabs.rb
rrtf-1.3.0 examples/12_tabs.rb