Class: GitIgnoreRb

Inherits:
Object
  • Object
show all
Defined in:
lib/gitignore_rb.rb

Overview

Represents a ‘.gitignore` file and the operations one can perform on or with them.

This class will take the ‘.gitignore` file given, parse the rules contained within it, and provides a set of functions to apply these rules in various useful ways.

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ GitIgnoreRb

Returns a new instance of GitIgnoreRb.



12
13
14
# File 'lib/gitignore_rb.rb', line 12

def initialize(path)
  @path = path
end

Instance Method Details

#included_filesObject



16
17
18
# File 'lib/gitignore_rb.rb', line 16

def included_files
  GitIgnoreRust.included_files(@path).to_a
end