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::Path
</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::Path
</td>
55 <tr class=
"top-aligned-row">
56 <td><strong>In:
</strong></td>
58 <a href=
"../../files/lib/git/path_rb.html">
65 <tr class=
"top-aligned-row">
66 <td><strong>Parent:
</strong></td>
68 <a href=
"Object.html">
75 <!-- banner header -->
77 <div id=
"bodyContent">
81 <div id=
"contextContent">
87 <div id=
"method-list">
88 <h3 class=
"section-bar">Methods
</h3>
90 <div class=
"name-list">
91 <a href=
"#M000122">new
</a>
92 <a href=
"#M000123">readable?
</a>
93 <a href=
"#M000124">writable?
</a>
108 <div id=
"attribute-list">
109 <h3 class=
"section-bar">Attributes
</h3>
111 <div class=
"name-list">
113 <tr class=
"top-aligned-row context-row">
114 <td class=
"context-item-name">path
</td>
115 <td class=
"context-item-value"> [RW]
</td>
116 <td class=
"context-item-desc"></td>
124 <!-- if method_list -->
126 <h3 class=
"section-bar">Public Class methods
</h3>
128 <div id=
"method-M000122" class=
"method-detail">
129 <a name=
"M000122"></a>
131 <div class=
"method-heading">
132 <a href=
"#M000122" class=
"method-signature">
133 <span class=
"method-name">new
</span><span class=
"method-args">(path, check_path = true)
</span>
137 <div class=
"method-description">
138 <p><a class=
"source-toggle" href=
"#"
139 onclick=
"toggleCode('M000122-source');return false;">[Source]
</a></p>
140 <div class=
"method-source-code" id=
"M000122-source">
142 <span class=
"ruby-comment cmt"># File lib/git/path.rb, line
6</span>
143 <span class=
"ruby-keyword kw">def
</span> <span class=
"ruby-identifier">initialize
</span>(
<span class=
"ruby-identifier">path
</span>,
<span class=
"ruby-identifier">check_path
</span> =
<span class=
"ruby-keyword kw">true
</span>)
144 <span class=
"ruby-keyword kw">if
</span> <span class=
"ruby-operator">!
</span><span class=
"ruby-identifier">check_path
</span> <span class=
"ruby-operator">||
</span> <span class=
"ruby-constant">File
</span>.
<span class=
"ruby-identifier">exists?
</span>(
<span class=
"ruby-identifier">path
</span>)
145 <span class=
"ruby-ivar">@path
</span> =
<span class=
"ruby-constant">File
</span>.
<span class=
"ruby-identifier">expand_path
</span>(
<span class=
"ruby-identifier">path
</span>)
146 <span class=
"ruby-keyword kw">else
</span>
147 <span class=
"ruby-identifier">raise
</span> <span class=
"ruby-constant">ArgumentError
</span>,
<span class=
"ruby-value str">"path does not exist
"</span>,
<span class=
"ruby-constant">File
</span>.
<span class=
"ruby-identifier">expand_path
</span>(
<span class=
"ruby-identifier">path
</span>)
148 <span class=
"ruby-keyword kw">end
</span>
149 <span class=
"ruby-keyword kw">end
</span>
155 <h3 class=
"section-bar">Public Instance methods
</h3>
157 <div id=
"method-M000123" class=
"method-detail">
158 <a name=
"M000123"></a>
160 <div class=
"method-heading">
161 <a href=
"#M000123" class=
"method-signature">
162 <span class=
"method-name">readable?
</span><span class=
"method-args">()
</span>
166 <div class=
"method-description">
167 <p><a class=
"source-toggle" href=
"#"
168 onclick=
"toggleCode('M000123-source');return false;">[Source]
</a></p>
169 <div class=
"method-source-code" id=
"M000123-source">
171 <span class=
"ruby-comment cmt"># File lib/git/path.rb, line
14</span>
172 <span class=
"ruby-keyword kw">def
</span> <span class=
"ruby-identifier">readable?
</span>
173 <span class=
"ruby-constant">File
</span>.
<span class=
"ruby-identifier">readable?
</span>(
<span class=
"ruby-ivar">@path
</span>)
174 <span class=
"ruby-keyword kw">end
</span>
180 <div id=
"method-M000124" class=
"method-detail">
181 <a name=
"M000124"></a>
183 <div class=
"method-heading">
184 <a href=
"#M000124" class=
"method-signature">
185 <span class=
"method-name">writable?
</span><span class=
"method-args">()
</span>
189 <div class=
"method-description">
190 <p><a class=
"source-toggle" href=
"#"
191 onclick=
"toggleCode('M000124-source');return false;">[Source]
</a></p>
192 <div class=
"method-source-code" id=
"M000124-source">
194 <span class=
"ruby-comment cmt"># File lib/git/path.rb, line
18</span>
195 <span class=
"ruby-keyword kw">def
</span> <span class=
"ruby-identifier">writable?
</span>
196 <span class=
"ruby-constant">File
</span>.
<span class=
"ruby-identifier">writable?
</span>(
<span class=
"ruby-ivar">@path
</span>)
197 <span class=
"ruby-keyword kw">end
</span>
210 <div id=
"validator-badges">
211 <p><small><a href=
"http://validator.w3.org/check/referer">[Validate]
</a></small></p>