Sha256: 71ab58e8e35a079f252eefaed879804b7733ed2bed3a7e4482530d8d8e2c7d17
Contents?: true
Size: 621 Bytes
Versions: 6
Compression:
Stored size: 621 Bytes
Contents
require 'rrtf' DIR = File.dirname(__FILE__) rtf = RRTF::Document.new rtf.paragraph do |p| p << "Should you ever find yourself on a spacefaring vessel wearing a " p.apply( "foreground_color" => '#ff0000', "underline_color" => '#ff0000', "italic" => true, "bold" => true, "underline" => "SINGLE" ) do |emphasis| emphasis.link( "https://en.wikipedia.org/wiki/Redshirt_(character)", "red shirt") end p << ", take heed and be on guard, for danger " p << "is immanent and you are likely expendable among the crew." end File.open(DIR+'/05.rtf', 'w') { |file| file.write(rtf.to_rtf) }
Version data entries
6 entries across 6 versions & 1 rubygems