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/Snippet.html | 402 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 402 insertions(+) create mode 100644 doc/code/classes/Snippet.html (limited to 'doc/code/classes/Snippet.html') diff --git a/doc/code/classes/Snippet.html b/doc/code/classes/Snippet.html new file mode 100644 index 00000000000..a71f13165fc --- /dev/null +++ b/doc/code/classes/Snippet.html @@ -0,0 +1,402 @@ + + + + + Snippet + + + + + + + + + + + + + +
+
+ +
+ +

Schema Information

+ +

Table name: snippets

+ +
id         :integer          not null, primary key
+title      :string(255)
+content    :text
+author_id  :integer          not null
+project_id :integer          not null
+created_at :datetime         not null
+updated_at :datetime         not null
+file_name  :string(255)
+expires_at :datetime
+ +
+ + + + + + + + + + + + + + + +
Methods
+
+ +
C
+
+ +
+ +
D
+
+
    + + +
  • + data +
  • + +
+
+ +
E
+
+ +
+ +
M
+
+
    + + +
  • + mode +
  • + +
+
+ +
N
+
+
    + + +
  • + name +
  • + +
+
+ +
S
+
+
    + + +
  • + size +
  • + +
+
+ +
+ + + + +
Included Modules
+
    + +
  • + + Linguist::BlobHelper + +
  • + +
+ + + + + + + + + + + + + + + + + + +
Class Public methods
+ +
+
+ + content_types() + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File app/models/snippet.rb, line 38
+def self.content_types
+  [
+    ".rb", ".py", ".pl", ".scala", ".c", ".cpp", ".java",
+    ".haml", ".html", ".sass", ".scss", ".xml", ".php", ".erb",
+    ".js", ".sh", ".coffee", ".yml", ".md"
+  ]
+end
+
+
+ +
+ +
Instance Public methods
+ +
+
+ + data() + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File app/models/snippet.rb, line 46
+def data
+  content
+end
+
+
+ +
+ +
+
+ + expired?() + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File app/models/snippet.rb, line 62
+def expired?
+  expires_at && expires_at < Time.current
+end
+
+
+ +
+ +
+
+ + mode() + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File app/models/snippet.rb, line 58
+def mode
+  nil
+end
+
+
+ +
+ +
+
+ + name() + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File app/models/snippet.rb, line 54
+def name
+  file_name
+end
+
+
+ +
+ +
+
+ + size() + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File app/models/snippet.rb, line 50
+def size
+  0
+end
+
+
+ +
+
+ +
+ + \ No newline at end of file -- cgit v1.2.1