Class: LearnTest::FileFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/learn_test/file_finder.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.location_to_dir(dir_name) ⇒ Object



3
4
5
# File 'lib/learn_test/file_finder.rb', line 3

def self.location_to_dir(dir_name)
  new.location_to_dir(dir_name)
end

Instance Method Details

#location_to_dir(dir_name) ⇒ Object



7
8
9
# File 'lib/learn_test/file_finder.rb', line 7

def location_to_dir(dir_name)
  File.join(File.dirname(File.expand_path(__FILE__)), "#{dir_name}")
end