Class: GitIgnoreRb
- Inherits:
-
Object
- Object
- GitIgnoreRb
- 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
- #included_files ⇒ Object
-
#initialize(path) ⇒ GitIgnoreRb
constructor
A new instance of GitIgnoreRb.
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_files ⇒ Object
16 17 18 |
# File 'lib/gitignore_rb.rb', line 16 def included_files GitIgnoreRust.included_files(@path).to_a end |