Sha256: e0ce80a9baf0063a98cf2c59f998749a664386a1bd37da097b69f2768a1f950a
Contents?: true
Size: 364 Bytes
Versions: 66
Compression:
Stored size: 364 Bytes
Contents
module Danger class FileList < Array # Information about pattern: http://ruby-doc.org/core-2.2.0/File.html#method-c-fnmatch # e.g. "**/something.*" for any file called something with any extension def include?(pattern) self.each do |current| return true if File.fnmatch(pattern, current) end return false end end end
Version data entries
66 entries across 66 versions & 1 rubygems