Module: Vim::Flavor::StringExtension

Defined in:
lib/vim-flavor/stringextension.rb

Instance Method Summary collapse

Instance Method Details

#to_bootstrap_pathObject



4
5
6
# File 'lib/vim-flavor/stringextension.rb', line 4

def to_bootstrap_path
  "#{self}/bootstrap.vim"
end

#to_deps_pathObject



8
9
10
# File 'lib/vim-flavor/stringextension.rb', line 8

def to_deps_path
  "#{self}/deps"
end

#to_flavorfile_pathObject



12
13
14
# File 'lib/vim-flavor/stringextension.rb', line 12

def to_flavorfile_path
  "#{self}/VimFlavor"
end

#to_flavors_pathObject



16
17
18
# File 'lib/vim-flavor/stringextension.rb', line 16

def to_flavors_path
  "#{self}/flavors"
end

#to_lockfile_pathObject



20
21
22
# File 'lib/vim-flavor/stringextension.rb', line 20

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

#to_stash_pathObject



24
25
26
# File 'lib/vim-flavor/stringextension.rb', line 24

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

#to_vimfiles_pathObject



28
29
30
# File 'lib/vim-flavor/stringextension.rb', line 28

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

#zapObject



32
33
34
# File 'lib/vim-flavor/stringextension.rb', line 32

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