Class: Gitenv::OneFile
- Inherits:
-
FilesMatcher
- Object
- FilesMatcher
- Gitenv::OneFile
- Defined in:
- lib/gitenv/files/one_file.rb
Instance Method Summary collapse
- #files(path) ⇒ Object
-
#initialize(file, options = {}) ⇒ OneFile
constructor
A new instance of OneFile.
Methods inherited from FilesMatcher
Constructor Details
#initialize(file, options = {}) ⇒ OneFile
Returns a new instance of OneFile.
6 7 8 9 |
# File 'lib/gitenv/files/one_file.rb', line 6 def initialize file, = {} super @file = file end |
Instance Method Details
#files(path) ⇒ Object
11 12 13 |
# File 'lib/gitenv/files/one_file.rb', line 11 def files path [ @file ] end |