Module: FileHelper

Defined in:
lib/cartocss_helper/util/filehelper.rb

Class Method Summary collapse

Class Method Details

.make_string_usable_as_filename(string) ⇒ Object



4
5
6
# File 'lib/cartocss_helper/util/filehelper.rb', line 4

def self.make_string_usable_as_filename(string)
  return string.gsub(/[\x00\/\\:\*\?\"<>\|]/, '_')
end