Module: Ms::Mzxml

Defined in:
lib/ms/mzxml.rb

Class Method Summary collapse

Class Method Details

.parent_basename_and_dir(xml_value) ⇒ Object



5
6
7
8
9
10
# File 'lib/ms/mzxml.rb', line 5

def parent_basename_and_dir(xml_value)
  fn = xml_value.gsub(/\\/, '/')
  dn = File.dirname(fn)
  dn = nil if dn == '.' && !fn.include?('/')
  [File.basename(fn), dn]
end