Class: Gitenv::OneFile

Inherits:
FilesMatcher show all
Defined in:
lib/gitenv/files/one_file.rb

Instance Method Summary collapse

Methods inherited from FilesMatcher

#except

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, options = {}
  super options
  @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