Sha256: c5606187a5fb9a23326c62cdc16418669d65b02dfa5fffea6bb4f92603e3ccf9

Contents?: true

Size: 474 Bytes

Versions: 5

Compression:

Stored size: 474 Bytes

Contents

module Vim
  module Flavor
    module StringExtension
      def to_flavorfile_path
        "#{self}/Flavorfile"
      end

      def to_flavors_path
        "#{self}/pack/flavors/start"
      end

      def to_lockfile_path
        "#{self}/Flavorfile.lock"
      end

      def to_stash_path
        "#{self}/.vim-flavor"
      end

      def to_vimfiles_path
        "#{self}/.vim"
      end

      def zap
        gsub(/[^A-Za-z0-9._-]/, '_')
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vim-flavor-4.0.3 lib/vim-flavor/stringextension.rb
vim-flavor-4.0.2 lib/vim-flavor/stringextension.rb
vim-flavor-4.0.1 lib/vim-flavor/stringextension.rb
vim-flavor-4.0.0 lib/vim-flavor/stringextension.rb
vim-flavor-3.0.0 lib/vim-flavor/stringextension.rb