class

ProjectWatch::Ignore

Inherits Reference < Object

Constructors

new(content : String)
Source

Class methods

load(path : String) : self | Nil
Source

Instance methods

empty?
Source
ignores?(rel : String, dir : Bool = false) : Bool

Whether rel (relative to the .gitignore's directory, / separators) is ignored. dir: true when the subject is a directory — dir-only rules then apply, and the caller is expected to skip the whole subtree (git's real behavior).

Source