Sha256: 5ac6f2fe7af9acf4a4a06ad3fd701ed36a038706d568b8e1c16a7376ae090f06

Contents?: true

Size: 367 Bytes

Versions: 4

Compression:

Stored size: 367 Bytes

Contents

module BabelYoda
  class StringsHelper
    def self.safe_init_strings_file(path)
      unless File.exists? path
        empty_strings_file = File.join File.dirname(__FILE__), '..', '..', 'data', 'empty.strings'
        FileUtils.mkdir_p File.split(path)[0], :verbose => true
        FileUtils.cp empty_strings_file, path, :verbose => true
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
babelyoda-1.6.0 lib/babelyoda/strings.rb
babelyoda-1.5.0 lib/babelyoda/strings.rb
babelyoda-1.4.0 lib/babelyoda/strings.rb
babelyoda-1.3.0 lib/babelyoda/strings.rb