Sha256: 88a34d724ce633904fc0dd2a999329ec2fc7b0b14945ad80e883a8e1e594ae7d

Contents?: true

Size: 1.13 KB

Versions: 36

Compression:

Stored size: 1.13 KB

Contents

# require File.expand_path(File.join(File.dirname(__FILE__),'workbook'))
# require File.expand_path(File.join(File.dirname(__FILE__),'worksheet'))
# require File.expand_path(File.join(File.dirname(__FILE__),'cell'))
# require File.expand_path(File.join(File.dirname(__FILE__),'color'))
require 'rubygems'
require 'nokogiri'

module RubyXL
module Writer
  class RootRelsWriter
    attr_accessor :dirpath, :workbook

    def initialize(dirpath, wb)
      @dirpath = dirpath
      @wb = wb
    end

    def write()
      contents = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/></Relationships>'
      contents
    end
  end
end
end

Version data entries

36 entries across 36 versions & 3 rubygems

Version Path
listen360-rubyXL-1.2.10.2 lib/rubyXL/writer/root_rels_writer.rb
listen360-rubyXL-1.2.10.1 lib/rubyXL/writer/root_rels_writer.rb
thunderboltlabs-rubyXL-1.2.10.2 lib/rubyXL/writer/root_rels_writer.rb
thunderboltlabs-rubyXL-1.2.10.1 lib/rubyXL/writer/root_rels_writer.rb
rubyXL-1.2.10 lib/rubyXL/writer/root_rels_writer.rb
rubyXL-1.2.9 lib/rubyXL/writer/root_rels_writer.rb
rubyXL-1.2.8 lib/rubyXL/writer/root_rels_writer.rb
rubyXL-1.2.7 lib/rubyXL/writer/root_rels_writer.rb
rubyXL-1.2.6 lib/rubyXL/writer/root_rels_writer.rb
rubyXL-1.2.5 lib/rubyXL/writer/root_rels_writer.rb
rubyXL-1.2.4 lib/rubyXL/writer/root_rels_writer.rb
rubyXL-1.2.3 lib/rubyXL/writer/root_rels_writer.rb
rubyXL-1.2.2 lib/rubyXL/writer/root_rels_writer.rb
rubyXL-1.2.1 lib/rubyXL/writer/root_rels_writer.rb
rubyXL-1.2.0 lib/rubyXL/writer/root_rels_writer.rb
rubyXL-1.1.12 lib/rubyXL/writer/root_rels_writer.rb
rubyXL-1.1.11 lib/rubyXL/writer/root_rels_writer.rb
rubyXL-1.1.10 lib/rubyXL/writer/root_rels_writer.rb
rubyXL-1.1.9 lib/rubyXL/writer/root_rels_writer.rb
rubyXL-1.1.8 lib/rubyXL/writer/root_rels_writer.rb