Class: VimVersion

Inherits:
Object
  • Object
show all
Defined in:
lib/vim-version.rb

Class Method Summary collapse

Class Method Details

.matches(version_string = "7.1") ⇒ Object



5
6
7
8
9
# File 'lib/vim-version.rb', line 5

def self.matches(version_string = "7.1")
	return @matches_cached if @matches_cached
	vim_version = `vim --version`.split("\n")[0].split(" ")[4]
	@matches_cached = (vim_version == version_string)
end