Sha256: 2b4ba3b67a1b82120794ab0bfc6505578ef18e2150a3e3b8106130d909e59c3e
Contents?: true
Size: 655 Bytes
Versions: 1
Compression:
Stored size: 655 Bytes
Contents
module VimEpidemic class Config attr_reader :plugins def initialize @plugins = [] @home = File.expand_path '~' end def touch FileUtils.touch file end def has? *args @plugins.find{ |p| p.match? *args } end def empty? @plugins.empty? end def install *args, &block @plugins << Plugin.new(self, *args, block) end def configure &block self.instance_eval &block end def file File.join @home, '.epidemic.vim.rb' end def exists? File.exists? file end def bundle_dir File.join @home, '.vim', 'bundle' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vim-epidemic-0.0.3 | lib/vim-epidemic/config.rb |