Object
# File lib/git/path.rb, line 7 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
# File lib/git/path.rb, line 17 def readable? File.readable?(@path) end
# File lib/git/path.rb, line 25 def to_s @path end
# File lib/git/path.rb, line 21 def writable? File.writable?(@path) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.