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



5
6
7
# File 'lib/learn_test/file_finder.rb', line 5

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

Instance Method Details

#location_to_dir(dir_name) ⇒ Object



9
10
11
# File 'lib/learn_test/file_finder.rb', line 9

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