class Git::Path
def initialize(path, check_path=true)
def initialize(path, check_path=true) path = File.expand_path(path) if check_path && !File.exist?(path) raise ArgumentError, 'path does not exist', [path] end @path = path end
def initialize(path, check_path=true) path = File.expand_path(path) if check_path && !File.exist?(path) raise ArgumentError, 'path does not exist', [path] end @path = path end