Created
July 21, 2014 19:28
-
-
Save loganhasson/324bd63951f028733abd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FileFinder | |
def self.location_to_dir(dir_name) | |
new.location_to_dir(dir_name) | |
end | |
def location_to_dir(dir_name) | |
File.join(File.dirname(File.expand_path(__FILE__)), "#{dir_name}") | |
end | |
def self.location_to_file(file_name) | |
new.location_to_file(file_name) | |
end | |
def location_to_file(file_name) | |
File.join(File.dirname(File.expand_path(__FILE__))) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment