From 646304a6e7c3b2c442a0a7db995629e7009c3a14 Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Sun, 11 Nov 2007 17:59:18 -0800 Subject: added documentation and a license file --- doc/classes/Git/Path.html | 215 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 215 insertions(+) create mode 100644 doc/classes/Git/Path.html (limited to 'doc/classes/Git/Path.html') diff --git a/doc/classes/Git/Path.html b/doc/classes/Git/Path.html new file mode 100644 index 0000000..0b1f892 --- /dev/null +++ b/doc/classes/Git/Path.html @@ -0,0 +1,215 @@ + + + + + + Class: Git::Path + + + + + + + + + + +
+ + + + + + + + + + + + + + +
ClassGit::Path
In: + + lib/git/path.rb + +
+
Parent: + + Object + +
+
+ + +
+ + + +
+ + + +
+ +
+

Methods

+ +
+ new   + readable?   + writable?   +
+
+ +
+ + + + +
+ + + + + +
+

Attributes

+ +
+ + + + + + +
path [RW] 
+
+
+ + + + +
+

Public Class methods

+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/path.rb, line 6
+    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
+
+
+
+
+ +

Public Instance methods

+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/path.rb, line 14
+    def readable?
+      File.readable?(@path)
+    end
+
+
+
+
+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/path.rb, line 18
+    def writable?
+      File.writable?(@path)
+    end
+
+
+
+
+ + +
+ + +
+ + +
+

[Validate]

+
+ + + \ No newline at end of file -- cgit