Sha256: c250a40bf6b655e390fd46f2d248fde055932230a018eef8d2792b6ef5541b46
Contents?: true
Size: 454 Bytes
Versions: 118
Compression:
Stored size: 454 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 def to_s @path end end end
Version data entries
118 entries across 91 versions & 16 rubygems