In Files

Parent

Files

Git::Path

Attributes

path[RW]

Public Class Methods

new(path, check_path = true) click to toggle source
    # File lib/git/path.rb, line 6
 6:     def initialize(path, check_path = true)
 7:       if !check_path || File.exists?(path)
 8:         @path = File.expand_path(path)
 9:       else
10:         raise ArgumentError, "path does not exist", File.expand_path(path)
11:       end
12:     end

Public Instance Methods

readable?() click to toggle source
    # File lib/git/path.rb, line 14
14:     def readable?
15:       File.readable?(@path)
16:     end
to_s() click to toggle source
    # File lib/git/path.rb, line 22
22:     def to_s
23:       @path
24:     end
writable?() click to toggle source
    # File lib/git/path.rb, line 18
18:     def writable?
19:       File.writable?(@path)
20:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.