weshatheleopard/rubyXL

View on GitHub
lib/rubyXL.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'rubyXL/objects/root'
require 'rubyXL/parser'

module RubyXL
  @@suppress_warnings = false

  # Convert any path passed to absolute path (within the XLSX file).
  def self.from_root(path)
    return path unless path.absolute?
    path.relative_path_from(OOXMLTopLevelObject::ROOT)
  end
end