1 <?xml version=
"1.0" encoding=
"iso-8859-1"?>
3 PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en" lang=
"en">
8 <title>Class: Git::Object::AbstractObject
</title>
9 <meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1" />
10 <meta http-equiv=
"Content-Script-Type" content=
"text/javascript" />
11 <link rel=
"stylesheet" href=
"../../.././rdoc-style.css" type=
"text/css" media=
"screen" />
12 <script type=
"text/javascript">
15 function popupCode( url ) {
16 window.open(url,
"Code",
"resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
19 function toggleCode( id ) {
20 if ( document.getElementById )
21 elem = document.getElementById( id );
22 else if ( document.all )
23 elem = eval(
"document.all." + id );
27 elemStyle = elem.style;
29 if ( elemStyle.display !=
"block" ) {
30 elemStyle.display =
"block"
32 elemStyle.display =
"none"
38 // Make codeblocks hidden by default
39 document.writeln(
"<style type=\"text/css\
">div.method-source-code { display: none }</style>" )
49 <div id=
"classHeader">
50 <table class=
"header-table">
51 <tr class=
"top-aligned-row">
52 <td><strong>Class
</strong></td>
53 <td class=
"class-name-in-header">Git::Object::AbstractObject
</td>
55 <tr class=
"top-aligned-row">
56 <td><strong>In:
</strong></td>
58 <a href=
"../../../files/lib/git/object_rb.html">
65 <tr class=
"top-aligned-row">
66 <td><strong>Parent:
</strong></td>
73 <!-- banner header -->
75 <div id=
"bodyContent">
79 <div id=
"contextContent">
85 <div id=
"method-list">
86 <h3 class=
"section-bar">Methods
</h3>
88 <div class=
"name-list">
89 <a href=
"#M000125">contents
</a>
90 <a href=
"#M000126">contents_array
</a>
91 <a href=
"#M000130">diff
</a>
92 <a href=
"#M000129">grep
</a>
93 <a href=
"#M000131">log
</a>
94 <a href=
"#M000124">new
</a>
95 <a href=
"#M000127">setup
</a>
96 <a href=
"#M000128">to_s
</a>
111 <div id=
"attribute-list">
112 <h3 class=
"section-bar">Attributes
</h3>
114 <div class=
"name-list">
116 <tr class=
"top-aligned-row context-row">
117 <td class=
"context-item-name">mode
</td>
118 <td class=
"context-item-value"> [RW]
</td>
119 <td class=
"context-item-desc"></td>
121 <tr class=
"top-aligned-row context-row">
122 <td class=
"context-item-name">sha
</td>
123 <td class=
"context-item-value"> [RW]
</td>
124 <td class=
"context-item-desc"></td>
126 <tr class=
"top-aligned-row context-row">
127 <td class=
"context-item-name">size
</td>
128 <td class=
"context-item-value"> [RW]
</td>
129 <td class=
"context-item-desc"></td>
131 <tr class=
"top-aligned-row context-row">
132 <td class=
"context-item-name">type
</td>
133 <td class=
"context-item-value"> [RW]
</td>
134 <td class=
"context-item-desc"></td>
142 <!-- if method_list -->
144 <h3 class=
"section-bar">Public Class methods
</h3>
146 <div id=
"method-M000124" class=
"method-detail">
147 <a name=
"M000124"></a>
149 <div class=
"method-heading">
150 <a href=
"#M000124" class=
"method-signature">
151 <span class=
"method-name">new
</span><span class=
"method-args">(base, sha)
</span>
155 <div class=
"method-description">
156 <p><a class=
"source-toggle" href=
"#"
157 onclick=
"toggleCode('M000124-source');return false;">[Source]
</a></p>
158 <div class=
"method-source-code" id=
"M000124-source">
160 <span class=
"ruby-comment cmt"># File lib/git/object.rb, line
13</span>
161 <span class=
"ruby-keyword kw">def
</span> <span class=
"ruby-identifier">initialize
</span>(
<span class=
"ruby-identifier">base
</span>,
<span class=
"ruby-identifier">sha
</span>)
162 <span class=
"ruby-ivar">@base
</span> =
<span class=
"ruby-identifier">base
</span>
163 <span class=
"ruby-ivar">@sha
</span> =
<span class=
"ruby-identifier">sha
</span>
164 <span class=
"ruby-ivar">@size
</span> =
<span class=
"ruby-ivar">@base
</span>.
<span class=
"ruby-identifier">lib
</span>.
<span class=
"ruby-identifier">object_size
</span>(
<span class=
"ruby-ivar">@sha
</span>)
165 <span class=
"ruby-identifier">setup
</span>
166 <span class=
"ruby-keyword kw">end
</span>
172 <h3 class=
"section-bar">Public Instance methods
</h3>
174 <div id=
"method-M000125" class=
"method-detail">
175 <a name=
"M000125"></a>
177 <div class=
"method-heading">
178 <a href=
"#M000125" class=
"method-signature">
179 <span class=
"method-name">contents
</span><span class=
"method-args">()
</span>
183 <div class=
"method-description">
184 <p><a class=
"source-toggle" href=
"#"
185 onclick=
"toggleCode('M000125-source');return false;">[Source]
</a></p>
186 <div class=
"method-source-code" id=
"M000125-source">
188 <span class=
"ruby-comment cmt"># File lib/git/object.rb, line
20</span>
189 <span class=
"ruby-keyword kw">def
</span> <span class=
"ruby-identifier">contents
</span>
190 <span class=
"ruby-ivar">@base
</span>.
<span class=
"ruby-identifier">lib
</span>.
<span class=
"ruby-identifier">object_contents
</span>(
<span class=
"ruby-ivar">@sha
</span>)
191 <span class=
"ruby-keyword kw">end
</span>
197 <div id=
"method-M000126" class=
"method-detail">
198 <a name=
"M000126"></a>
200 <div class=
"method-heading">
201 <a href=
"#M000126" class=
"method-signature">
202 <span class=
"method-name">contents_array
</span><span class=
"method-args">()
</span>
206 <div class=
"method-description">
207 <p><a class=
"source-toggle" href=
"#"
208 onclick=
"toggleCode('M000126-source');return false;">[Source]
</a></p>
209 <div class=
"method-source-code" id=
"M000126-source">
211 <span class=
"ruby-comment cmt"># File lib/git/object.rb, line
24</span>
212 <span class=
"ruby-keyword kw">def
</span> <span class=
"ruby-identifier">contents_array
</span>
213 <span class=
"ruby-keyword kw">self
</span>.
<span class=
"ruby-identifier">contents
</span>.
<span class=
"ruby-identifier">split
</span>(
<span class=
"ruby-value str">"\n
"</span>)
214 <span class=
"ruby-keyword kw">end
</span>
220 <div id=
"method-M000130" class=
"method-detail">
221 <a name=
"M000130"></a>
223 <div class=
"method-heading">
224 <a href=
"#M000130" class=
"method-signature">
225 <span class=
"method-name">diff
</span><span class=
"method-args">(objectish)
</span>
229 <div class=
"method-description">
230 <p><a class=
"source-toggle" href=
"#"
231 onclick=
"toggleCode('M000130-source');return false;">[Source]
</a></p>
232 <div class=
"method-source-code" id=
"M000130-source">
234 <span class=
"ruby-comment cmt"># File lib/git/object.rb, line
42</span>
235 <span class=
"ruby-keyword kw">def
</span> <span class=
"ruby-identifier">diff
</span>(
<span class=
"ruby-identifier">objectish
</span>)
236 <span class=
"ruby-constant">Git
</span><span class=
"ruby-operator">::
</span><span class=
"ruby-constant">Diff
</span>.
<span class=
"ruby-identifier">new
</span>(
<span class=
"ruby-ivar">@base
</span>,
<span class=
"ruby-ivar">@sha
</span>,
<span class=
"ruby-identifier">objectish
</span>)
237 <span class=
"ruby-keyword kw">end
</span>
243 <div id=
"method-M000129" class=
"method-detail">
244 <a name=
"M000129"></a>
246 <div class=
"method-heading">
247 <a href=
"#M000129" class=
"method-signature">
248 <span class=
"method-name">grep
</span><span class=
"method-args">(string, path_limiter = nil, opts = {})
</span>
252 <div class=
"method-description">
253 <p><a class=
"source-toggle" href=
"#"
254 onclick=
"toggleCode('M000129-source');return false;">[Source]
</a></p>
255 <div class=
"method-source-code" id=
"M000129-source">
257 <span class=
"ruby-comment cmt"># File lib/git/object.rb, line
36</span>
258 <span class=
"ruby-keyword kw">def
</span> <span class=
"ruby-identifier">grep
</span>(
<span class=
"ruby-identifier">string
</span>,
<span class=
"ruby-identifier">path_limiter
</span> =
<span class=
"ruby-keyword kw">nil
</span>,
<span class=
"ruby-identifier">opts
</span> = {})
259 <span class=
"ruby-identifier">default
</span> = {
<span class=
"ruby-identifier">:object
</span> =
<span class=
"ruby-operator">></span> <span class=
"ruby-ivar">@sha
</span>,
<span class=
"ruby-identifier">:path_limiter
</span> =
<span class=
"ruby-operator">></span> <span class=
"ruby-identifier">path_limiter
</span>}
260 <span class=
"ruby-identifier">grep_options
</span> =
<span class=
"ruby-identifier">default
</span>.
<span class=
"ruby-identifier">merge
</span>(
<span class=
"ruby-identifier">opts
</span>)
261 <span class=
"ruby-ivar">@base
</span>.
<span class=
"ruby-identifier">lib
</span>.
<span class=
"ruby-identifier">grep
</span>(
<span class=
"ruby-identifier">string
</span>,
<span class=
"ruby-identifier">grep_options
</span>)
262 <span class=
"ruby-keyword kw">end
</span>
268 <div id=
"method-M000131" class=
"method-detail">
269 <a name=
"M000131"></a>
271 <div class=
"method-heading">
272 <a href=
"#M000131" class=
"method-signature">
273 <span class=
"method-name">log
</span><span class=
"method-args">(count =
30)
</span>
277 <div class=
"method-description">
278 <p><a class=
"source-toggle" href=
"#"
279 onclick=
"toggleCode('M000131-source');return false;">[Source]
</a></p>
280 <div class=
"method-source-code" id=
"M000131-source">
282 <span class=
"ruby-comment cmt"># File lib/git/object.rb, line
46</span>
283 <span class=
"ruby-keyword kw">def
</span> <span class=
"ruby-identifier">log
</span>(
<span class=
"ruby-identifier">count
</span> =
<span class=
"ruby-value">30</span>)
284 <span class=
"ruby-constant">Git
</span><span class=
"ruby-operator">::
</span><span class=
"ruby-constant">Log
</span>.
<span class=
"ruby-identifier">new
</span>(
<span class=
"ruby-ivar">@base
</span>,
<span class=
"ruby-identifier">count
</span>).
<span class=
"ruby-identifier">object
</span>(
<span class=
"ruby-ivar">@sha
</span>)
285 <span class=
"ruby-keyword kw">end
</span>
291 <div id=
"method-M000127" class=
"method-detail">
292 <a name=
"M000127"></a>
294 <div class=
"method-heading">
295 <a href=
"#M000127" class=
"method-signature">
296 <span class=
"method-name">setup
</span><span class=
"method-args">()
</span>
300 <div class=
"method-description">
301 <p><a class=
"source-toggle" href=
"#"
302 onclick=
"toggleCode('M000127-source');return false;">[Source]
</a></p>
303 <div class=
"method-source-code" id=
"M000127-source">
305 <span class=
"ruby-comment cmt"># File lib/git/object.rb, line
28</span>
306 <span class=
"ruby-keyword kw">def
</span> <span class=
"ruby-identifier">setup
</span>
307 <span class=
"ruby-identifier">raise
</span> <span class=
"ruby-constant">NotImplementedError
</span>
308 <span class=
"ruby-keyword kw">end
</span>
314 <div id=
"method-M000128" class=
"method-detail">
315 <a name=
"M000128"></a>
317 <div class=
"method-heading">
318 <a href=
"#M000128" class=
"method-signature">
319 <span class=
"method-name">to_s
</span><span class=
"method-args">()
</span>
323 <div class=
"method-description">
324 <p><a class=
"source-toggle" href=
"#"
325 onclick=
"toggleCode('M000128-source');return false;">[Source]
</a></p>
326 <div class=
"method-source-code" id=
"M000128-source">
328 <span class=
"ruby-comment cmt"># File lib/git/object.rb, line
32</span>
329 <span class=
"ruby-keyword kw">def
</span> <span class=
"ruby-identifier">to_s
</span>
330 <span class=
"ruby-ivar">@sha
</span>
331 <span class=
"ruby-keyword kw">end
</span>
344 <div id=
"validator-badges">
345 <p><small><a href=
"http://validator.w3.org/check/referer">[Validate]
</a></small></p>