Sha256: 6de2472857ac196e34230434077588ba47b075488b30a2db3ce17d1f927bd653
Contents?: true
Size: 393 Bytes
Versions: 13
Compression:
Stored size: 393 Bytes
Contents
# frozen_string_literal: true module LunaPark module Tools # TODO: add descriptions class << self def if_gem_installed(name, *requirements) Gem::Specification.find_by_name name, *requirements rescue Gem::MissingSpecError false else yield if block_given? true end alias gem_installed? if_gem_installed end end end
Version data entries
13 entries across 13 versions & 1 rubygems