Method: Fasterer::Config#file_location
- Defined in:
- lib/fasterer/config.rb
#file_location ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/fasterer/config.rb', line 30 def file_location @file_location ||= Pathname(Dir.pwd) .enum_for(:ascend) .map { |dir| File.join(dir.to_s, FILE_NAME) } .find { |f| File.exist?(f) } end |