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/Object/AbstractObject.html | 349 +++++++++++++++++++++++++++++ 1 file changed, 349 insertions(+) create mode 100644 doc/classes/Git/Object/AbstractObject.html (limited to 'doc/classes/Git/Object/AbstractObject.html') diff --git a/doc/classes/Git/Object/AbstractObject.html b/doc/classes/Git/Object/AbstractObject.html new file mode 100644 index 0000000..e2569c4 --- /dev/null +++ b/doc/classes/Git/Object/AbstractObject.html @@ -0,0 +1,349 @@ + + + + + + Class: Git::Object::AbstractObject + + + + + + + + + + +
+ + + + + + + + + + + + + + +
ClassGit::Object::AbstractObject
In: + + lib/git/object.rb + +
+
Parent: + Object +
+
+ + +
+ + + +
+ + + +
+ +
+

Methods

+ +
+ contents   + contents_array   + diff   + grep   + log   + new   + setup   + to_s   +
+
+ +
+ + + + +
+ + + + + +
+

Attributes

+ +
+ + + + + + + + + + + + + + + + + + + + + +
mode [RW] 
sha [RW] 
size [RW] 
type [RW] 
+
+
+ + + + +
+

Public Class methods

+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/object.rb, line 13
+      def initialize(base, sha)
+        @base = base
+        @sha = sha
+        @size = @base.lib.object_size(@sha)
+        setup
+      end
+
+
+
+
+ +

Public Instance methods

+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/object.rb, line 20
+      def contents
+        @base.lib.object_contents(@sha)
+      end
+
+
+
+
+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/object.rb, line 24
+      def contents_array
+        self.contents.split("\n")
+      end
+
+
+
+
+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/object.rb, line 42
+      def diff(objectish)
+        Git::Diff.new(@base, @sha, objectish)
+      end
+
+
+
+
+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/object.rb, line 36
+      def grep(string, path_limiter = nil, opts = {})
+        default = {:object => @sha, :path_limiter => path_limiter}
+        grep_options = default.merge(opts)
+        @base.lib.grep(string, grep_options)
+      end
+
+
+
+
+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/object.rb, line 46
+      def log(count = 30)
+        Git::Log.new(@base, count).object(@sha)
+      end
+
+
+
+
+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/object.rb, line 28
+      def setup
+        raise NotImplementedError
+      end
+
+
+
+
+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/object.rb, line 32
+      def to_s
+        @sha
+      end
+
+
+
+
+ + +
+ + +
+ + +
+

[Validate]

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