module Creeker::Utils
Public Instance Methods
expand_to_rels_path(filepath)
click to toggle source
# File lib/creeker/utils.rb, line 3 def expand_to_rels_path(filepath) filepath.sub(/(\/[^\/]+$)/, '/_rels\1.rels') end
file_exist?(path)
click to toggle source
# File lib/creeker/utils.rb, line 7 def file_exist?(path) @book.files.file.exist?(path) end
parse_xml(xml_path)
click to toggle source
# File lib/creeker/utils.rb, line 11 def parse_xml(xml_path) doc = @book.files.file.open(xml_path) Nokogiri::XML::Document.parse(doc) end