module LunaPark::Tools

Public Class Methods

gem_installed?(name, *requirements)
Alias for: if_gem_installed
if_gem_installed(name, *requirements) { || ... } click to toggle source
# File lib/luna_park/tools.rb, line 7
def if_gem_installed(name, *requirements)
  Gem::Specification.find_by_name name, *requirements
rescue Gem::MissingSpecError
  false
else
  yield if block_given?
  true
end
Also aliased as: gem_installed?