Sha256: c6d043c085ce4d8e6c7d8524419e5a21639ecad795e6bd8e515b2d8f8ee1000f
Contents?: true
Size: 445 Bytes
Versions: 19
Compression:
Stored size: 445 Bytes
Contents
module SproutCore class FileRule def initialize(exp, mode) @mode = mode @expression = Regexp.new(exp) end # Decides whether or not a file should be included. # Returns either true, false, or nil (for not a match at all) def include?(file) ret = (@mode == :deny) ? false : true if file =~ @expression return ret else return nil end end end end
Version data entries
19 entries across 19 versions & 1 rubygems