Module: Vimgem

Defined in:
lib/vimgem.rb,
lib/vimgem/version.rb

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.browse(gem_name) ⇒ Object



2
3
4
5
6
7
# File 'lib/vimgem.rb', line 2

def self.browse(gem_name)
  matches = Gem.source_index.find_name(gem_name)
  exit if matches.empty?
  spec = matches.first
  `gvim #{spec.full_gem_path}`
end