Sha256: e8b788b9d1d7960672bd8d2cba7c636b5a7c0a7ee5c73568593e37749cb766c1

Contents?: true

Size: 440 Bytes

Versions: 8

Compression:

Stored size: 440 Bytes

Contents

module LearnGenerate
  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
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
learn-generate-1.0.16 lib/learn_generate/file_finder.rb
learn-generate-1.0.15 lib/learn_generate/file_finder.rb
learn-generate-1.0.14 lib/learn_generate/file_finder.rb
learn-generate-1.0.13 lib/learn_generate/file_finder.rb
learn-generate-1.0.12 lib/learn_generate/file_finder.rb
learn-generate-1.0.11 lib/learn_generate/file_finder.rb
learn-generate-1.0.1 lib/learn_generate/file_finder.rb
learn-generate-1.0.0 lib/learn_generate/file_finder.rb