class Dir

Overview

Monkey patch Dir to add ignore methods

Included Modules

Defined in:

ignore/core_ext.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.ignore(*patterns : String) : Ignore::Dir #

Class method: patterns with current directory


def self.ignore(*, root : String) : Ignore::Dir #

Class method: load from ignore files in current directory tree


def self.ignore(*, file : String, base : String = "") : Ignore::Dir #

Class method: load from single file, current directory


Instance Method Detail

def ignore(*patterns : String) : Ignore::Dir #

Instance method: returns an Ignore::Dir based on this Dir's path


def ignore(*, root : String) : Ignore::Dir #

Instance method: load patterns from ignore files in this directory tree


def ignore(*, file : String, base : String = "") : Ignore::Dir #

Instance method: load patterns from a single file