From 96d49bf04ce77c975fe500f4d961e4a1ffed4c26 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sun, 30 Dec 2012 14:43:00 +0200 Subject: Use sdoc to generate application code documentation --- doc/code/classes/Tree.html | 322 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 322 insertions(+) create mode 100644 doc/code/classes/Tree.html (limited to 'doc/code/classes/Tree.html') diff --git a/doc/code/classes/Tree.html b/doc/code/classes/Tree.html new file mode 100644 index 00000000000..e71dfa3ffc4 --- /dev/null +++ b/doc/code/classes/Tree.html @@ -0,0 +1,322 @@ + + + + + Tree + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + +
Methods
+
+ +
E
+
+ +
+ +
I
+
+ +
+ +
N
+
+
    + + +
  • + new +
  • + +
+
+ +
+ + + + +
Included Modules
+
    + +
  • + + Linguist::BlobHelper + +
  • + +
+ + + + + + + + + + + + + + + +
Attributes
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [RW] + path
+ [RW] + project
+ [RW] + ref
+ [RW] + tree
+ + + + + +
Class Public methods
+ +
+
+ + new(raw_tree, project, ref = nil, path = nil) + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File app/models/tree.rb, line 8
+def initialize(raw_tree, project, ref = nil, path = nil)
+  @project, @ref, @path = project, ref, path
+  @tree = if path.present?
+            raw_tree / path
+          else
+            raw_tree
+          end
+end
+
+
+ +
+ +
Instance Public methods
+ +
+
+ + empty?() + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File app/models/tree.rb, line 25
+def empty?
+  data.blank?
+end
+
+
+ +
+ +
+
+ + invalid?() + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File app/models/tree.rb, line 21
+def invalid?
+  tree.nil?
+end
+
+
+ +
+ +
+
+ + is_blob?() + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File app/models/tree.rb, line 17
+def is_blob?
+  tree.is_a?(Grit::Blob)
+end
+
+
+ +
+
+ +
+ + \ No newline at end of file -- cgit v1.2.1