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.



10
11
12
# File 'lib/gitignore_rb.rb', line 10

def initialize(path)
  @path = path
end

Instance Method Details

#included_filesObject



14
15
16
# File 'lib/gitignore_rb.rb', line 14

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