Module: Vim::Flavor::StringExtension
- Defined in:
- lib/vim-flavor/stringextension.rb
Instance Method Summary collapse
- #to_bootstrap_path ⇒ Object
- #to_deps_path ⇒ Object
- #to_flavorfile_path ⇒ Object
- #to_flavors_path ⇒ Object
- #to_lockfile_path ⇒ Object
- #to_stash_path ⇒ Object
- #to_vimfiles_path ⇒ Object
- #zap ⇒ Object
Instance Method Details
#to_bootstrap_path ⇒ Object
4 5 6 |
# File 'lib/vim-flavor/stringextension.rb', line 4 def to_bootstrap_path "#{self}/bootstrap.vim" end |
#to_deps_path ⇒ Object
8 9 10 |
# File 'lib/vim-flavor/stringextension.rb', line 8 def to_deps_path "#{self}/deps" end |
#to_flavorfile_path ⇒ Object
12 13 14 |
# File 'lib/vim-flavor/stringextension.rb', line 12 def to_flavorfile_path "#{self}/VimFlavor" end |
#to_flavors_path ⇒ Object
16 17 18 |
# File 'lib/vim-flavor/stringextension.rb', line 16 def to_flavors_path "#{self}/flavors" end |
#to_lockfile_path ⇒ Object
20 21 22 |
# File 'lib/vim-flavor/stringextension.rb', line 20 def to_lockfile_path "#{self}/VimFlavor.lock" end |
#to_stash_path ⇒ Object
24 25 26 |
# File 'lib/vim-flavor/stringextension.rb', line 24 def to_stash_path "#{self}/.vim-flavor" end |
#to_vimfiles_path ⇒ Object
28 29 30 |
# File 'lib/vim-flavor/stringextension.rb', line 28 def to_vimfiles_path "#{self}/.vim" end |
#zap ⇒ Object
32 33 34 |
# File 'lib/vim-flavor/stringextension.rb', line 32 def zap gsub(/[^A-Za-z0-9._-]/, '_') end |