module Middleman
def spec_has_file?(spec, path)
-
(Boolean)
- Whether the file exists
Parameters:
-
path
(String
) -- Path to look for -
spec
(Gem::Specification
) --
Other tags:
- Private: -
def spec_has_file?(spec, path) full_path = File.join(spec.full_gem_path, path) File.exists?(full_path) end