Sha256: 294c8c8e70e847d46bbd05d3b6edcb8f6871e442febb6ea2dec7651c935127e3
Contents?: true
Size: 416 Bytes
Versions: 2
Compression:
Stored size: 416 Bytes
Contents
module Git class Path attr_accessor :path def initialize(path, check_path = true) if !check_path || File.exists?(path) @path = File.expand_path(path) else raise ArgumentError, "path does not exist", File.expand_path(path) end end def readable? File.readable?(@path) end def writable? File.writable?(@path) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
git-1.0.1 | lib/git/path.rb |
git-1.0.2 | lib/git/path.rb |