Method: RubyXL.from_root

Defined in:
lib/rubyXL.rb

.from_root(path) ⇒ Object

Convert any path passed to absolute path (within the XLSX file).

[View source]

8
9
10
11
# File 'lib/rubyXL.rb', line 8

def self.from_root(path)
  return path unless path.absolute?
  path.relative_path_from(OOXMLTopLevelObject::ROOT)
end