class CodeCaser::PathConverter

Public Class Methods

new(path) click to toggle source
# File lib/code_caser/path_converter.rb, line 4
def initialize(path)
  @path = File.directory?(path) ? File.join(path, "*") : path
end

Public Instance Methods

dirname() click to toggle source
# File lib/code_caser/path_converter.rb, line 8
def dirname
  File.expand_path(File.dirname(@path))
end
get_files() click to toggle source
# File lib/code_caser/path_converter.rb, line 16
def get_files
  Dir.glob(File.expand_path(@path))
end
join(name) click to toggle source
# File lib/code_caser/path_converter.rb, line 12
def join(name)
  File.join(dirname + name)
end