Sha256: 43f1bf99f797a3c08c4c2d1a4e97752b2d4cd391e267bc31fae15273cebecea0

Contents?: true

Size: 631 Bytes

Versions: 6

Compression:

Stored size: 631 Bytes

Contents

require 'rrtf'

DIR = File.dirname(__FILE__)

rtf = RRTF::Document.new
rtf.list do |l|
  l.item do |li|
    li << "Never venture into ominous settings such as:"
  end

  l.list do |l2|
    l2.item{ |li| li << "Dark caves." }
    l2.item{ |li| li << "Abandoned vessels." }
    l2.item{ |li| li << "Misty planets." }
  end

  l.item do |li|
    li << "Never attempt to disable an unknown entity. "
    li << "Get away quickly."
  end

  l.item do |li|
    li << "Never stand guard alone. Make certain at least three "
    li << "other redshirts are present."
  end
end
File.open(DIR+'/07.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/07_nested_list.rb
rrtf-1.3.0 examples/07_nested_list.rb
rrtf-1.2.0 examples/07_nested_list.rb
rrtf-1.1.0 examples/07_nested_list.rb
rrtf-1.0.1 examples/07_nested_list.rb
rrtf-1.0.0 examples/07_nested_list.rb