Class: LearnGenerate::FileFinder
- Inherits:
-
Object
- Object
- LearnGenerate::FileFinder
- Defined in:
- lib/learn_generate/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_generate/file_finder.rb', line 3 def self.location_to_dir(dir_name) new.location_to_dir(dir_name) end |
.location_to_file(file_name) ⇒ Object
11 12 13 |
# File 'lib/learn_generate/file_finder.rb', line 11 def self.location_to_file(file_name) new.location_to_file(file_name) end |
Instance Method Details
#location_to_dir(dir_name) ⇒ Object
7 8 9 |
# File 'lib/learn_generate/file_finder.rb', line 7 def location_to_dir(dir_name) File.join(File.dirname(File.(__FILE__)), "#{dir_name}") end |
#location_to_file(file_name) ⇒ Object
15 16 17 |
# File 'lib/learn_generate/file_finder.rb', line 15 def location_to_file(file_name) File.join(File.dirname(File.(__FILE__))) end |