rio 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +140 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/doc/ANNOUNCE +87 -0
- data/doc/RELEASE_NOTES +7 -0
- data/doc/rdoc/classes/Kernel.html +9 -9
- data/doc/rdoc/classes/Kernel.src/{M000183.html → M000182.html} +0 -0
- data/doc/rdoc/classes/RIO.html +35 -0
- data/doc/rdoc/classes/RIO.src/M000001.html +4 -4
- data/doc/rdoc/classes/RIO.src/M000002.html +4 -4
- data/doc/rdoc/classes/RIO.src/M000003.html +4 -4
- data/doc/rdoc/classes/RIO/Doc/HOWTO.html +11 -7
- data/doc/rdoc/classes/RIO/Doc/INTRO.html +255 -36
- data/doc/rdoc/classes/RIO/Doc/SYNOPSIS.html +47 -17
- data/doc/rdoc/classes/RIO/Rio.html +1032 -1007
- data/doc/rdoc/classes/RIO/Rio.src/M000011.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000012.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000013.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000014.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000015.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000016.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000017.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000018.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000019.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000020.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000021.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000022.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000023.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000024.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000025.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000026.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000027.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000028.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000029.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000030.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000031.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000032.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000033.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000034.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000035.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000036.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000037.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000038.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000039.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000040.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000041.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000042.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000043.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000044.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000045.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000046.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000047.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000048.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000049.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000050.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000051.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000052.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000053.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000054.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000055.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000056.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000057.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000058.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000059.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000060.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000061.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000062.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000063.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000064.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000065.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000066.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000067.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000068.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000069.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000070.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000071.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000072.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000073.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000074.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000075.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000076.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000077.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000078.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000079.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000080.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000081.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000082.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000083.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000084.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000085.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000086.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000087.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000088.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000089.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000090.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000091.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000092.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000093.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000094.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000095.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000096.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000097.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000098.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000099.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000100.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000101.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000102.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000103.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000104.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000105.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000106.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000107.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000108.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000109.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000110.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000111.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000112.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000113.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000114.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000115.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000116.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000117.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000118.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000119.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000120.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000121.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000122.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000123.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000124.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000125.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000126.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000127.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000128.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000129.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000130.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000131.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000132.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000133.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000134.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000135.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000136.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000137.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000138.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000139.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000140.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000141.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000142.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000143.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000144.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000145.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000146.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000147.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000148.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000149.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000150.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000151.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000152.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000153.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000154.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000155.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000156.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000157.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000158.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000159.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000160.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000161.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000162.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000163.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000164.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000165.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000166.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000167.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000168.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000169.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000170.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000171.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000172.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000173.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000174.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000175.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000176.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000177.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000178.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000179.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000180.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000181.html +3 -3
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/lib/rio/constructor_rb.html +1 -1
- data/doc/rdoc/files/lib/rio/doc/HOWTO_rb.html +1 -1
- data/doc/rdoc/files/lib/rio/doc/INTRO_rb.html +1 -1
- data/doc/rdoc/files/lib/rio/doc/SYNOPSIS_rb.html +1 -1
- data/doc/rdoc/files/lib/rio/if/basic_rb.html +1 -1
- data/doc/rdoc/files/lib/rio/if/path_rb.html +1 -1
- data/doc/rdoc/files/lib/rio_rb.html +1 -1
- data/doc/rdoc/fr_method_index.html +154 -155
- data/ex/findinruby +7 -3
- data/ex/findruby +6 -2
- data/lib/rio.rb +1 -1
- data/lib/rio/argv.rb +4 -0
- data/lib/rio/constructor.rb +17 -0
- data/lib/rio/context.rb +1 -1
- data/lib/rio/context/dir.rb +1 -0
- data/lib/rio/context/methods.rb +3 -3
- data/lib/rio/dir.rb +2 -2
- data/lib/rio/doc/HOWTO.rb +11 -6
- data/lib/rio/doc/INTRO.rb +149 -12
- data/lib/rio/doc/SYNOPSIS.rb +26 -13
- data/lib/rio/factory.rb +13 -2
- data/lib/rio/grande.rb +25 -0
- data/lib/rio/if/basic.rb +1 -1
- data/lib/rio/if/path.rb +61 -35
- data/lib/rio/matchrecord.rb +20 -1
- data/lib/rio/ops/dir.rb +2 -3
- data/lib/rio/ops/path.rb +25 -11
- data/lib/rio/ops/stream/input.rb +6 -3
- data/lib/rio/rl/base.rb +3 -2
- data/lib/rio/rl/ioi.rb +2 -1
- data/lib/rio/rl/path.rb +18 -3
- data/lib/rio/rl/uri.rb +8 -4
- data/lib/rio/scheme/cmdio.rb +1 -1
- data/lib/rio/scheme/path.rb +1 -0
- data/lib/rio/scheme/stdio.rb +1 -1
- data/lib/rio/scheme/strio.rb +1 -1
- data/lib/rio/scheme/sysio.rb +1 -1
- data/lib/rio/scheme/tcp.rb +1 -0
- data/lib/rio/scheme/temp.rb +184 -0
- data/lib/rio/state.rb +17 -6
- data/lib/rio/stream.rb +1 -1
- data/lib/rio/stream/open.rb +1 -1
- data/lib/rio/tempdir.rb +132 -0
- data/lib/rio/version.rb +1 -1
- data/test/tc/all.rb +4 -0
- data/test/tc/copylines.rb +38 -32
- data/test/tc/riorl.rb +104 -0
- data/test/tc/temp.rb +155 -0
- data/test/tc/tempdir.rb +63 -0
- data/test/tc/tempfile.rb +38 -0
- metadata +10 -5
- data/doc/rdoc/classes/RIO/Rio.src/M000182.html +0 -16
- data/lib/rio/scheme/tempfile.rb +0 -104
@@ -134,183 +134,182 @@ href="Doc/HOWTO.html">RIO::Doc::HOWTO</a>.
|
|
134
134
|
<div class="name-list">
|
135
135
|
<a href="#M000103">+</a>
|
136
136
|
<a href="#M000102">/</a>
|
137
|
-
<a href="#
|
138
|
-
<a href="#
|
139
|
-
<a href="#
|
140
|
-
<a href="#
|
141
|
-
<a href="#
|
142
|
-
<a href="#
|
143
|
-
<a href="#
|
144
|
-
<a href="#
|
145
|
-
<a href="#
|
146
|
-
<a href="#
|
147
|
-
<a href="#
|
148
|
-
<a href="#
|
149
|
-
<a href="#
|
150
|
-
<a href="#
|
151
|
-
<a href="#
|
152
|
-
<a href="#
|
153
|
-
<a href="#
|
137
|
+
<a href="#M000051"><</a>
|
138
|
+
<a href="#M000050"><<</a>
|
139
|
+
<a href="#M000012">==</a>
|
140
|
+
<a href="#M000013">===</a>
|
141
|
+
<a href="#M000016">=~</a>
|
142
|
+
<a href="#M000048">></a>
|
143
|
+
<a href="#M000049">>></a>
|
144
|
+
<a href="#M000044">[]</a>
|
145
|
+
<a href="#M000062">a</a>
|
146
|
+
<a href="#M000063">a!</a>
|
147
|
+
<a href="#M000086">abs</a>
|
148
|
+
<a href="#M000180">abs?</a>
|
149
|
+
<a href="#M000181">absolute?</a>
|
150
|
+
<a href="#M000024">all</a>
|
151
|
+
<a href="#M000023">all?</a>
|
152
|
+
<a href="#M000163">atime</a>
|
153
|
+
<a href="#M000088">base</a>
|
154
154
|
<a href="#M000092">basename</a>
|
155
155
|
<a href="#M000097">basename=</a>
|
156
|
-
<a href="#
|
157
|
-
<a href="#
|
158
|
-
<a href="#
|
159
|
-
<a href="#
|
160
|
-
<a href="#
|
161
|
-
<a href="#
|
162
|
-
<a href="#
|
163
|
-
<a href="#
|
164
|
-
<a href="#
|
165
|
-
<a href="#
|
166
|
-
<a href="#
|
167
|
-
<a href="#
|
168
|
-
<a href="#
|
169
|
-
<a href="#
|
170
|
-
<a href="#
|
171
|
-
<a href="#
|
172
|
-
<a href="#
|
173
|
-
<a href="#
|
174
|
-
<a href="#
|
156
|
+
<a href="#M000120">binmode</a>
|
157
|
+
<a href="#M000148">blockdev?</a>
|
158
|
+
<a href="#M000056">bytes</a>
|
159
|
+
<a href="#M000149">chardev?</a>
|
160
|
+
<a href="#M000017">chdir</a>
|
161
|
+
<a href="#M000075">chomp</a>
|
162
|
+
<a href="#M000074">chomp?</a>
|
163
|
+
<a href="#M000141">close</a>
|
164
|
+
<a href="#M000157">closed?</a>
|
165
|
+
<a href="#M000071">closeoncopy</a>
|
166
|
+
<a href="#M000073">closeoncopy?</a>
|
167
|
+
<a href="#M000068">closeoneof</a>
|
168
|
+
<a href="#M000070">closeoneof?</a>
|
169
|
+
<a href="#M000116">contents</a>
|
170
|
+
<a href="#M000164">ctime</a>
|
171
|
+
<a href="#M000046">delete</a>
|
172
|
+
<a href="#M000047">delete!</a>
|
173
|
+
<a href="#M000151">dir?</a>
|
174
|
+
<a href="#M000150">directory?</a>
|
175
175
|
<a href="#M000093">dirname</a>
|
176
176
|
<a href="#M000098">dirname=</a>
|
177
|
-
<a href="#
|
177
|
+
<a href="#M000018">dirs</a>
|
178
178
|
<a href="#M000009">dup</a>
|
179
|
-
<a href="#
|
180
|
-
<a href="#
|
181
|
-
<a href="#
|
182
|
-
<a href="#
|
183
|
-
<a href="#
|
184
|
-
<a href="#
|
185
|
-
<a href="#
|
186
|
-
<a href="#
|
187
|
-
<a href="#
|
188
|
-
<a href="#
|
179
|
+
<a href="#M000045">each</a>
|
180
|
+
<a href="#M000122">each_byte</a>
|
181
|
+
<a href="#M000123">each_line</a>
|
182
|
+
<a href="#M000020">entries</a>
|
183
|
+
<a href="#M000136">eof?</a>
|
184
|
+
<a href="#M000015">eql?</a>
|
185
|
+
<a href="#M000166">executable?</a>
|
186
|
+
<a href="#M000167">executable_real?</a>
|
187
|
+
<a href="#M000152">exist?</a>
|
188
|
+
<a href="#M000085">expand_path</a>
|
189
189
|
<a href="#M000089">ext</a>
|
190
190
|
<a href="#M000091">ext?</a>
|
191
191
|
<a href="#M000094">extname</a>
|
192
192
|
<a href="#M000096">extname=</a>
|
193
|
-
<a href="#
|
194
|
-
<a href="#
|
193
|
+
<a href="#M000142">fcntl</a>
|
194
|
+
<a href="#M000153">file?</a>
|
195
195
|
<a href="#M000095">filename</a>
|
196
196
|
<a href="#M000099">filename=</a>
|
197
|
-
<a href="#
|
198
|
-
<a href="#
|
199
|
-
<a href="#
|
200
|
-
<a href="#
|
201
|
-
<a href="#
|
202
|
-
<a href="#
|
203
|
-
<a href="#
|
204
|
-
<a href="#
|
205
|
-
<a href="#
|
206
|
-
<a href="#
|
207
|
-
<a href="#
|
208
|
-
<a href="#
|
197
|
+
<a href="#M000144">fileno</a>
|
198
|
+
<a href="#M000021">files</a>
|
199
|
+
<a href="#M000027">find</a>
|
200
|
+
<a href="#M000121">flush</a>
|
201
|
+
<a href="#M000158">fnmatch?</a>
|
202
|
+
<a href="#M000084">fspath</a>
|
203
|
+
<a href="#M000145">fsync</a>
|
204
|
+
<a href="#M000159">ftype</a>
|
205
|
+
<a href="#M000052">getrec</a>
|
206
|
+
<a href="#M000114">gets</a>
|
207
|
+
<a href="#M000028">glob</a>
|
208
|
+
<a href="#M000174">grpowned?</a>
|
209
209
|
<a href="#M000105">gsub</a>
|
210
|
-
<a href="#
|
211
|
-
<a href="#
|
212
|
-
<a href="#
|
213
|
-
<a href="#
|
210
|
+
<a href="#M000076">gzip</a>
|
211
|
+
<a href="#M000077">gzip?</a>
|
212
|
+
<a href="#M000014">hash</a>
|
213
|
+
<a href="#M000109">host</a>
|
214
214
|
<a href="#M000005">initialize_copy</a>
|
215
215
|
<a href="#M000010">inspect</a>
|
216
|
-
<a href="#
|
217
|
-
<a href="#
|
218
|
-
<a href="#
|
216
|
+
<a href="#M000143">ioctl</a>
|
217
|
+
<a href="#M000137">ioh</a>
|
218
|
+
<a href="#M000138">ios</a>
|
219
219
|
<a href="#M000100">join</a>
|
220
220
|
<a href="#M000106">join!</a>
|
221
|
-
<a href="#
|
222
|
-
<a href="#
|
223
|
-
<a href="#
|
224
|
-
<a href="#
|
225
|
-
<a href="#
|
226
|
-
<a href="#
|
227
|
-
<a href="#
|
228
|
-
<a href="#
|
229
|
-
<a href="#
|
230
|
-
<a href="#
|
231
|
-
<a href="#
|
221
|
+
<a href="#M000011">length</a>
|
222
|
+
<a href="#M000117">lineno</a>
|
223
|
+
<a href="#M000118">lineno=</a>
|
224
|
+
<a href="#M000055">lines</a>
|
225
|
+
<a href="#M000161">lstat</a>
|
226
|
+
<a href="#M000111">merge</a>
|
227
|
+
<a href="#M000032">mkdir</a>
|
228
|
+
<a href="#M000031">mkpath</a>
|
229
|
+
<a href="#M000139">mode</a>
|
230
|
+
<a href="#M000140">mode?</a>
|
231
|
+
<a href="#M000165">mtime</a>
|
232
232
|
<a href="#M000004">new</a>
|
233
|
-
<a href="#
|
234
|
-
<a href="#
|
235
|
-
<a href="#
|
233
|
+
<a href="#M000072">nocloseoncopy</a>
|
234
|
+
<a href="#M000069">nocloseoneof</a>
|
235
|
+
<a href="#M000019">nodirs</a>
|
236
236
|
<a href="#M000090">noext</a>
|
237
|
-
<a href="#
|
238
|
-
<a href="#
|
239
|
-
<a href="#
|
240
|
-
<a href="#
|
241
|
-
<a href="#
|
242
|
-
<a href="#
|
243
|
-
<a href="#
|
237
|
+
<a href="#M000022">nofiles</a>
|
238
|
+
<a href="#M000059">nolines</a>
|
239
|
+
<a href="#M000058">norecords</a>
|
240
|
+
<a href="#M000026">norecurse</a>
|
241
|
+
<a href="#M000061">norows</a>
|
242
|
+
<a href="#M000079">nosync</a>
|
243
|
+
<a href="#M000110">opaque</a>
|
244
244
|
<a href="#M000007">open</a>
|
245
|
-
<a href="#
|
246
|
-
<a href="#
|
247
|
-
<a href="#
|
248
|
-
<a href="#
|
249
|
-
<a href="#
|
250
|
-
<a href="#
|
251
|
-
<a href="#
|
252
|
-
<a href="#
|
253
|
-
<a href="#
|
254
|
-
<a href="#
|
255
|
-
<a href="#
|
256
|
-
<a href="#
|
257
|
-
<a href="#
|
258
|
-
<a href="#
|
259
|
-
<a href="#
|
260
|
-
<a href="#
|
261
|
-
<a href="#
|
262
|
-
<a href="#
|
263
|
-
<a href="#
|
264
|
-
<a href="#
|
265
|
-
<a href="#
|
266
|
-
<a href="#
|
267
|
-
<a href="#
|
268
|
-
<a href="#
|
269
|
-
<a href="#
|
270
|
-
<a href="#
|
271
|
-
<a href="#
|
272
|
-
<a href="#
|
273
|
-
<a href="#
|
245
|
+
<a href="#M000156">open?</a>
|
246
|
+
<a href="#M000173">owned?</a>
|
247
|
+
<a href="#M000081">path</a>
|
248
|
+
<a href="#M000162">pipe?</a>
|
249
|
+
<a href="#M000041">pos</a>
|
250
|
+
<a href="#M000043">pos=</a>
|
251
|
+
<a href="#M000126">print</a>
|
252
|
+
<a href="#M000127">print!</a>
|
253
|
+
<a href="#M000129">printf</a>
|
254
|
+
<a href="#M000128">printf!</a>
|
255
|
+
<a href="#M000131">putc</a>
|
256
|
+
<a href="#M000130">putc!</a>
|
257
|
+
<a href="#M000132">puts</a>
|
258
|
+
<a href="#M000133">puts!</a>
|
259
|
+
<a href="#M000064">r</a>
|
260
|
+
<a href="#M000065">r!</a>
|
261
|
+
<a href="#M000038">read</a>
|
262
|
+
<a href="#M000168">readable?</a>
|
263
|
+
<a href="#M000169">readable_real?</a>
|
264
|
+
<a href="#M000125">readline</a>
|
265
|
+
<a href="#M000124">readlines</a>
|
266
|
+
<a href="#M000036">readlink</a>
|
267
|
+
<a href="#M000119">recno</a>
|
268
|
+
<a href="#M000057">records</a>
|
269
|
+
<a href="#M000025">recurse</a>
|
270
|
+
<a href="#M000087">rel</a>
|
271
|
+
<a href="#M000037">rename</a>
|
272
|
+
<a href="#M000053">reset</a>
|
273
|
+
<a href="#M000039">rewind</a>
|
274
274
|
<a href="#M000006">rio</a>
|
275
|
-
<a href="#
|
276
|
-
<a href="#
|
277
|
-
<a href="#
|
278
|
-
<a href="#
|
275
|
+
<a href="#M000054">rl</a>
|
276
|
+
<a href="#M000033">rm</a>
|
277
|
+
<a href="#M000029">rmdir</a>
|
278
|
+
<a href="#M000030">rmtree</a>
|
279
279
|
<a href="#M000107">rootpath</a>
|
280
|
-
<a href="#
|
281
|
-
<a href="#
|
282
|
-
<a href="#
|
283
|
-
<a href="#
|
284
|
-
<a href="#
|
285
|
-
<a href="#
|
286
|
-
<a href="#
|
287
|
-
<a href="#
|
288
|
-
<a href="#
|
289
|
-
<a href="#
|
290
|
-
<a href="#
|
280
|
+
<a href="#M000112">route_from</a>
|
281
|
+
<a href="#M000113">route_to</a>
|
282
|
+
<a href="#M000060">rows</a>
|
283
|
+
<a href="#M000108">scheme</a>
|
284
|
+
<a href="#M000040">seek</a>
|
285
|
+
<a href="#M000175">setgid?</a>
|
286
|
+
<a href="#M000176">setuid?</a>
|
287
|
+
<a href="#M000177">size</a>
|
288
|
+
<a href="#M000178">size?</a>
|
289
|
+
<a href="#M000115">slurp</a>
|
290
|
+
<a href="#M000154">socket?</a>
|
291
291
|
<a href="#M000101">split</a>
|
292
|
-
<a href="#
|
293
|
-
<a href="#
|
292
|
+
<a href="#M000160">stat</a>
|
293
|
+
<a href="#M000172">sticky?</a>
|
294
294
|
<a href="#M000104">sub</a>
|
295
|
-
<a href="#
|
296
|
-
<a href="#
|
297
|
-
<a href="#
|
298
|
-
<a href="#
|
299
|
-
<a href="#
|
300
|
-
<a href="#M000011">to_rl</a>
|
295
|
+
<a href="#M000035">symlink</a>
|
296
|
+
<a href="#M000155">symlink?</a>
|
297
|
+
<a href="#M000078">sync</a>
|
298
|
+
<a href="#M000080">sync?</a>
|
299
|
+
<a href="#M000042">tell</a>
|
301
300
|
<a href="#M000008">to_s</a>
|
302
|
-
<a href="#
|
303
|
-
<a href="#
|
304
|
-
<a href="#
|
305
|
-
<a href="#
|
306
|
-
<a href="#
|
307
|
-
<a href="#
|
308
|
-
<a href="#
|
309
|
-
<a href="#
|
310
|
-
<a href="#
|
311
|
-
<a href="#
|
312
|
-
<a href="#
|
313
|
-
<a href="#
|
301
|
+
<a href="#M000083">to_uri</a>
|
302
|
+
<a href="#M000082">to_url</a>
|
303
|
+
<a href="#M000034">touch</a>
|
304
|
+
<a href="#M000146">tty?</a>
|
305
|
+
<a href="#M000147">ungetc</a>
|
306
|
+
<a href="#M000066">w</a>
|
307
|
+
<a href="#M000067">w!</a>
|
308
|
+
<a href="#M000170">writable?</a>
|
309
|
+
<a href="#M000171">writable_real?</a>
|
310
|
+
<a href="#M000135">write</a>
|
311
|
+
<a href="#M000134">write!</a>
|
312
|
+
<a href="#M000179">zero?</a>
|
314
313
|
</div>
|
315
314
|
</div>
|
316
315
|
|
@@ -404,6 +403,9 @@ See <a href="../RIO.html#M000001">RIO.rio</a>
|
|
404
403
|
Create a <a href="Rio.html">Rio</a> referencing <a
|
405
404
|
href="Rio.html#M000008">Rio#to_s</a> + arg.to_s
|
406
405
|
</p>
|
406
|
+
<pre>
|
407
|
+
rio('afile') + '-0.1' #=> rio('afile-0.1')
|
408
|
+
</pre>
|
407
409
|
</div>
|
408
410
|
</div>
|
409
411
|
|
@@ -439,12 +441,12 @@ Effectively the same as <a href="Rio.html#M000100">Rio#join</a>(arg)
|
|
439
441
|
</div>
|
440
442
|
</div>
|
441
443
|
|
442
|
-
<div id="method-
|
443
|
-
<a name="
|
444
|
+
<div id="method-M000051" class="method-detail">
|
445
|
+
<a name="M000051"></a>
|
444
446
|
|
445
447
|
<div class="method-heading">
|
446
|
-
<a href="Rio.src/
|
447
|
-
onclick="popupCode('Rio.src/
|
448
|
+
<a href="Rio.src/M000051.html" target="Code" class="method-signature"
|
449
|
+
onclick="popupCode('Rio.src/M000051.html');return false;">
|
448
450
|
<span class="method-name"><</span><span class="method-args">(source)</span>
|
449
451
|
</a>
|
450
452
|
</div>
|
@@ -583,17 +585,17 @@ to copy files.
|
|
583
585
|
</pre>
|
584
586
|
<p>
|
585
587
|
See also <a href="Rio.html">Rio</a>#> (copy-to), <a
|
586
|
-
href="Rio.html#
|
588
|
+
href="Rio.html#M000045">Rio#each</a>, <a href="Rio.html">Rio</a>#[]
|
587
589
|
</p>
|
588
590
|
</div>
|
589
591
|
</div>
|
590
592
|
|
591
|
-
<div id="method-
|
592
|
-
<a name="
|
593
|
+
<div id="method-M000050" class="method-detail">
|
594
|
+
<a name="M000050"></a>
|
593
595
|
|
594
596
|
<div class="method-heading">
|
595
|
-
<a href="Rio.src/
|
596
|
-
onclick="popupCode('Rio.src/
|
597
|
+
<a href="Rio.src/M000050.html" target="Code" class="method-signature"
|
598
|
+
onclick="popupCode('Rio.src/M000050.html');return false;">
|
597
599
|
<span class="method-name"><<</span><span class="method-args">(source)</span>
|
598
600
|
</a>
|
599
601
|
</div>
|
@@ -621,7 +623,7 @@ href="Rio.html">Rio</a>.
|
|
621
623
|
|
622
624
|
</td></tr>
|
623
625
|
<tr><td valign="top">String:</td><td>The string is appended to the <a href="Rio.html">Rio</a> using <a
|
624
|
-
href="Rio.html#
|
626
|
+
href="Rio.html#M000126">Rio#print</a>
|
625
627
|
|
626
628
|
</td></tr>
|
627
629
|
<tr><td valign="top"><a href="Rio.html">Rio</a>:</td><td>The source <a href="Rio.html">Rio</a> is appended using its <a
|
@@ -635,12 +637,12 @@ See <a href="Rio.html">Rio</a>#< (copy-from)
|
|
635
637
|
</div>
|
636
638
|
</div>
|
637
639
|
|
638
|
-
<div id="method-
|
639
|
-
<a name="
|
640
|
+
<div id="method-M000012" class="method-detail">
|
641
|
+
<a name="M000012"></a>
|
640
642
|
|
641
643
|
<div class="method-heading">
|
642
|
-
<a href="Rio.src/
|
643
|
-
onclick="popupCode('Rio.src/
|
644
|
+
<a href="Rio.src/M000012.html" target="Code" class="method-signature"
|
645
|
+
onclick="popupCode('Rio.src/M000012.html');return false;">
|
644
646
|
<span class="method-name">==</span><span class="method-args">(other)</span>
|
645
647
|
</a>
|
646
648
|
</div>
|
@@ -654,12 +656,12 @@ href="Rio.html#M000008">Rio#to_s</a>
|
|
654
656
|
</div>
|
655
657
|
</div>
|
656
658
|
|
657
|
-
<div id="method-
|
658
|
-
<a name="
|
659
|
+
<div id="method-M000013" class="method-detail">
|
660
|
+
<a name="M000013"></a>
|
659
661
|
|
660
662
|
<div class="method-heading">
|
661
|
-
<a href="Rio.src/
|
662
|
-
onclick="popupCode('Rio.src/
|
663
|
+
<a href="Rio.src/M000013.html" target="Code" class="method-signature"
|
664
|
+
onclick="popupCode('Rio.src/M000013.html');return false;">
|
663
665
|
<span class="method-name">===</span><span class="method-args">(other)</span>
|
664
666
|
</a>
|
665
667
|
</div>
|
@@ -671,12 +673,12 @@ Equality (for case statements) same as <a href="Rio.html">Rio</a>#==
|
|
671
673
|
</div>
|
672
674
|
</div>
|
673
675
|
|
674
|
-
<div id="method-
|
675
|
-
<a name="
|
676
|
+
<div id="method-M000016" class="method-detail">
|
677
|
+
<a name="M000016"></a>
|
676
678
|
|
677
679
|
<div class="method-heading">
|
678
|
-
<a href="Rio.src/
|
679
|
-
onclick="popupCode('Rio.src/
|
680
|
+
<a href="Rio.src/M000016.html" target="Code" class="method-signature"
|
681
|
+
onclick="popupCode('Rio.src/M000016.html');return false;">
|
680
682
|
<span class="method-name">=~</span><span class="method-args">(other)</span>
|
681
683
|
</a>
|
682
684
|
</div>
|
@@ -689,12 +691,12 @@ href="Rio.html#M000008">Rio#to_s</a>
|
|
689
691
|
</div>
|
690
692
|
</div>
|
691
693
|
|
692
|
-
<div id="method-
|
693
|
-
<a name="
|
694
|
+
<div id="method-M000048" class="method-detail">
|
695
|
+
<a name="M000048"></a>
|
694
696
|
|
695
697
|
<div class="method-heading">
|
696
|
-
<a href="Rio.src/
|
697
|
-
onclick="popupCode('Rio.src/
|
698
|
+
<a href="Rio.src/M000048.html" target="Code" class="method-signature"
|
699
|
+
onclick="popupCode('Rio.src/M000048.html');return false;">
|
698
700
|
<span class="method-name">></span><span class="method-args">(destination)</span>
|
699
701
|
</a>
|
700
702
|
</div>
|
@@ -812,12 +814,12 @@ semi-colons as separators
|
|
812
814
|
</div>
|
813
815
|
</div>
|
814
816
|
|
815
|
-
<div id="method-
|
816
|
-
<a name="
|
817
|
+
<div id="method-M000049" class="method-detail">
|
818
|
+
<a name="M000049"></a>
|
817
819
|
|
818
820
|
<div class="method-heading">
|
819
|
-
<a href="Rio.src/
|
820
|
-
onclick="popupCode('Rio.src/
|
821
|
+
<a href="Rio.src/M000049.html" target="Code" class="method-signature"
|
822
|
+
onclick="popupCode('Rio.src/M000049.html');return false;">
|
821
823
|
<span class="method-name">>></span><span class="method-args">(destination)</span>
|
822
824
|
</a>
|
823
825
|
</div>
|
@@ -864,12 +866,12 @@ See <a href="Rio.html">Rio</a>#> (copy-to)
|
|
864
866
|
</div>
|
865
867
|
</div>
|
866
868
|
|
867
|
-
<div id="method-
|
868
|
-
<a name="
|
869
|
+
<div id="method-M000044" class="method-detail">
|
870
|
+
<a name="M000044"></a>
|
869
871
|
|
870
872
|
<div class="method-heading">
|
871
|
-
<a href="Rio.src/
|
872
|
-
onclick="popupCode('Rio.src/
|
873
|
+
<a href="Rio.src/M000044.html" target="Code" class="method-signature"
|
874
|
+
onclick="popupCode('Rio.src/M000044.html');return false;">
|
873
875
|
<span class="method-name">[]</span><span class="method-args">(*selectors)</span>
|
874
876
|
</a>
|
875
877
|
</div>
|
@@ -887,7 +889,7 @@ For directories this returns all or some of the entries in a directory
|
|
887
889
|
<h3>Files</h3>
|
888
890
|
<p>
|
889
891
|
This combines the record selection offered by <a
|
890
|
-
href="Rio.html#
|
892
|
+
href="Rio.html#M000057">Rio#records</a> with the conversion to an array
|
891
893
|
provided by Rio#to_a. The following two are equivelant:
|
892
894
|
</p>
|
893
895
|
<ul>
|
@@ -900,9 +902,9 @@ provided by Rio#to_a. The following two are equivelant:
|
|
900
902
|
</ul>
|
901
903
|
<p>
|
902
904
|
What constitutes an array element is determined by <a
|
903
|
-
href="Rio.html#
|
904
|
-
href="Rio.html#
|
905
|
-
<a href="Rio.html#
|
905
|
+
href="Rio.html#M000055">Rio#lines</a>, <a
|
906
|
+
href="Rio.html#M000056">Rio#bytes</a>, or by an extension such as Rio#csv.
|
907
|
+
<a href="Rio.html#M000055">Rio#lines</a> is the default.
|
906
908
|
</p>
|
907
909
|
<p>
|
908
910
|
Arguments may consist of zero or more integers, ranges, regular
|
@@ -936,7 +938,7 @@ array. (acts like an <em>or</em>)
|
|
936
938
|
</p>
|
937
939
|
<p>
|
938
940
|
Because this is implemented in terms of the <a
|
939
|
-
href="Rio.html#
|
941
|
+
href="Rio.html#M000045">Rio#each</a>, When only record ranges are used to
|
940
942
|
select records, iteration will stop when the recno exceeds the maximum of
|
941
943
|
any range. That is to say
|
942
944
|
</p>
|
@@ -955,7 +957,7 @@ While this reads <b>all</b> records from a file and returns the first one
|
|
955
957
|
<h3>Directories</h3>
|
956
958
|
<p>
|
957
959
|
This combines the entry selection offered by <a
|
958
|
-
href="Rio.html#
|
960
|
+
href="Rio.html#M000020">Rio#entries</a> with the conversion to an array
|
959
961
|
provided by Rio#to_a. The following two are equivelant:
|
960
962
|
</p>
|
961
963
|
<ul>
|
@@ -971,7 +973,7 @@ Arguments may consist of strings (treated as globs) or regular expressions.
|
|
971
973
|
An empty argument list selects all entries See ::Dir#glob and
|
972
974
|
::File::fnmatch? for more in information on <em>globs</em>. Be warned that
|
973
975
|
using the ’**’ glob recurses into directories independently of
|
974
|
-
<a href="Rio.html#
|
976
|
+
<a href="Rio.html#M000024">Rio#all</a> and using both is unsupported.
|
975
977
|
</p>
|
976
978
|
<pre>
|
977
979
|
ario = rio('adir')
|
@@ -980,30 +982,30 @@ using the ’**’ glob recurses into directories independently of
|
|
980
982
|
ario['zippy*'] # same thing
|
981
983
|
</pre>
|
982
984
|
<p>
|
983
|
-
As with <a href="Rio.html#
|
985
|
+
As with <a href="Rio.html#M000045">Rio#each</a>:
|
984
986
|
</p>
|
985
987
|
<ul>
|
986
988
|
<li>Files and directories are returned as Rios
|
987
989
|
|
988
990
|
</li>
|
989
991
|
<li>The types of entries is also affected by <a
|
990
|
-
href="Rio.html#
|
991
|
-
href="Rio.html#
|
992
|
+
href="Rio.html#M000021">Rio#files</a> and <a
|
993
|
+
href="Rio.html#M000018">Rio#dirs</a>.
|
992
994
|
|
993
995
|
<pre>
|
994
996
|
rio('adir').files['*.txt'] # array of all _.txt_ files
|
995
997
|
rio('adir').dirs(/^\./) # array of all dot directories
|
996
998
|
</pre>
|
997
999
|
</li>
|
998
|
-
<li>Recursion is enabled using <a href="Rio.html#
|
1000
|
+
<li>Recursion is enabled using <a href="Rio.html#M000024">Rio#all</a>
|
999
1001
|
|
1000
1002
|
<pre>
|
1001
1003
|
rio('adir').all.files['*.[ch]'] # array of c source files in _adir_ and its subdirecories
|
1002
1004
|
rio('adir').all.dirs[/^\.svn/] # array of subversion directories in _adir_ and subdirectories
|
1003
1005
|
</pre>
|
1004
1006
|
</li>
|
1005
|
-
<li><a href="Rio.html#
|
1006
|
-
href="Rio.html#
|
1007
|
+
<li><a href="Rio.html#M000021">Rio#files</a> and <a
|
1008
|
+
href="Rio.html#M000018">Rio#dirs</a> act independetly of each other.
|
1007
1009
|
Specifying both will cause both to be returned. The argument list to <a
|
1008
1010
|
href="Rio.html">Rio</a>#[] will be applied to the closest.
|
1009
1011
|
|
@@ -1016,15 +1018,15 @@ href="Rio.html">Rio</a>#[] will be applied to the closest.
|
|
1016
1018
|
</ul>
|
1017
1019
|
<h3>Lines</h3>
|
1018
1020
|
<p>
|
1019
|
-
This section applies similarly to <a href="Rio.html#
|
1020
|
-
<a href="Rio.html#
|
1021
|
-
href="Rio.html#
|
1022
|
-
href="Rio.html#
|
1021
|
+
This section applies similarly to <a href="Rio.html#M000055">Rio#lines</a>,
|
1022
|
+
<a href="Rio.html#M000056">Rio#bytes</a>, <a
|
1023
|
+
href="Rio.html#M000057">Rio#records</a>, and <a
|
1024
|
+
href="Rio.html#M000060">Rio#rows</a>
|
1023
1025
|
</p>
|
1024
1026
|
<p>
|
1025
|
-
Using <a href="Rio.html#
|
1027
|
+
Using <a href="Rio.html#M000055">Rio#lines</a> and related methods with a
|
1026
1028
|
<a href="Rio.html">Rio</a> referencing a directory imples <a
|
1027
|
-
href="Rio.html#
|
1029
|
+
href="Rio.html#M000021">Rio#files</a> and will cause an array of the lines
|
1028
1030
|
or bytes in the files to be returned. As above, the arguments to the
|
1029
1031
|
subscript operator will be applied to the closest.
|
1030
1032
|
</p>
|
@@ -1092,12 +1094,12 @@ Examples:
|
|
1092
1094
|
</div>
|
1093
1095
|
</div>
|
1094
1096
|
|
1095
|
-
<div id="method-
|
1096
|
-
<a name="
|
1097
|
+
<div id="method-M000062" class="method-detail">
|
1098
|
+
<a name="M000062"></a>
|
1097
1099
|
|
1098
1100
|
<div class="method-heading">
|
1099
|
-
<a href="Rio.src/
|
1100
|
-
onclick="popupCode('Rio.src/
|
1101
|
+
<a href="Rio.src/M000062.html" target="Code" class="method-signature"
|
1102
|
+
onclick="popupCode('Rio.src/M000062.html');return false;">
|
1101
1103
|
<span class="method-name">a</span><span class="method-args">()</span>
|
1102
1104
|
</a>
|
1103
1105
|
</div>
|
@@ -1117,19 +1119,19 @@ file system object and on the action specified. For instance when a <a
|
|
1117
1119
|
href="Rio.html">Rio</a> encounters a <tt>read</tt> on a file it opens the
|
1118
1120
|
file for reading using File#open and calls IO#read; when it encounters a
|
1119
1121
|
<tt>read</tt> on a directory it knows to use Dir#open and call Dir#read.
|
1120
|
-
When it encounters a <a href="Rio.html#
|
1122
|
+
When it encounters a <a href="Rio.html#M000132">Rio#puts</a>, it knows to
|
1121
1123
|
perform a File#open, and call IO#puts on the returned handle. By default
|
1122
1124
|
when a method requires a file be opened for writing the file is opened with
|
1123
|
-
a mode of ‘w’. <a href="Rio.html#
|
1125
|
+
a mode of ‘w’. <a href="Rio.html#M000062">Rio#a</a> changes
|
1124
1126
|
this implicit output mode to ‘a’.
|
1125
1127
|
</p>
|
1126
1128
|
<p>
|
1127
1129
|
Note that this is not the same as setting the output mode
|
1128
1130
|
<b>explicitly</b>, as in rio(‘afile’).mode(‘a’).
|
1129
1131
|
When the mode is set explicitly using <a
|
1130
|
-
href="Rio.html#
|
1132
|
+
href="Rio.html#M000139">Rio#mode</a>, the mode specified will be used
|
1131
1133
|
regardless of the operation being performed. The <a
|
1132
|
-
href="Rio.html#
|
1134
|
+
href="Rio.html#M000062">Rio#a</a> method only affects how <a
|
1133
1135
|
href="Rio.html">Rio</a> opens a file when it sees an operator that requires
|
1134
1136
|
writing, and must determine for itself how to open it.
|
1135
1137
|
</p>
|
@@ -1138,15 +1140,15 @@ writing, and must determine for itself how to open it.
|
|
1138
1140
|
rio('afile').a.puts!('Hello World') # call IO#puts on a file handle opened in 'a' mode
|
1139
1141
|
</pre>
|
1140
1142
|
<p>
|
1141
|
-
See also <a href="Rio.html#
|
1142
|
-
href="Rio.html#
|
1143
|
+
See also <a href="Rio.html#M000062">Rio#a</a>!, <a
|
1144
|
+
href="Rio.html#M000066">Rio#w</a>! for setting the implicit output mode
|
1143
1145
|
‘a+’ and ‘w+’ respectively
|
1144
1146
|
</p>
|
1145
1147
|
<p>
|
1146
|
-
The methods <a href="Rio.html#
|
1147
|
-
href="Rio.html#
|
1148
|
-
<a href="Rio.html#
|
1149
|
-
href="Rio.html#
|
1148
|
+
The methods <a href="Rio.html#M000062">Rio#a</a>, <a
|
1149
|
+
href="Rio.html#M000062">Rio#a</a>!, <a href="Rio.html#M000066">Rio#w</a>,
|
1150
|
+
<a href="Rio.html#M000066">Rio#w</a>!, <a
|
1151
|
+
href="Rio.html#M000064">Rio#r</a>, <a href="Rio.html#M000064">Rio#r</a>!
|
1150
1152
|
set the <tt>implicit</tt> open mode to
|
1151
1153
|
‘a’,’a+’,’w’,’w+’,’r’
|
1152
1154
|
and ‘r+’ respectively.
|
@@ -1154,12 +1156,12 @@ and ‘r+’ respectively.
|
|
1154
1156
|
</div>
|
1155
1157
|
</div>
|
1156
1158
|
|
1157
|
-
<div id="method-
|
1158
|
-
<a name="
|
1159
|
+
<div id="method-M000063" class="method-detail">
|
1160
|
+
<a name="M000063"></a>
|
1159
1161
|
|
1160
1162
|
<div class="method-heading">
|
1161
|
-
<a href="Rio.src/
|
1162
|
-
onclick="popupCode('Rio.src/
|
1163
|
+
<a href="Rio.src/M000063.html" target="Code" class="method-signature"
|
1164
|
+
onclick="popupCode('Rio.src/M000063.html');return false;">
|
1163
1165
|
<span class="method-name">a!</span><span class="method-args">()</span>
|
1164
1166
|
</a>
|
1165
1167
|
</div>
|
@@ -1176,17 +1178,17 @@ for output when no mode is specified.
|
|
1176
1178
|
Returns the <a href="Rio.html">Rio</a>
|
1177
1179
|
</p>
|
1178
1180
|
<p>
|
1179
|
-
See the discussion for <a href="Rio.html#
|
1181
|
+
See the discussion for <a href="Rio.html#M000062">Rio#a</a>.
|
1180
1182
|
</p>
|
1181
1183
|
</div>
|
1182
1184
|
</div>
|
1183
1185
|
|
1184
|
-
<div id="method-
|
1185
|
-
<a name="
|
1186
|
+
<div id="method-M000086" class="method-detail">
|
1187
|
+
<a name="M000086"></a>
|
1186
1188
|
|
1187
1189
|
<div class="method-heading">
|
1188
|
-
<a href="Rio.src/
|
1189
|
-
onclick="popupCode('Rio.src/
|
1190
|
+
<a href="Rio.src/M000086.html" target="Code" class="method-signature"
|
1191
|
+
onclick="popupCode('Rio.src/M000086.html');return false;">
|
1190
1192
|
<span class="method-name">abs</span><span class="method-args">(*args)</span>
|
1191
1193
|
</a>
|
1192
1194
|
</div>
|
@@ -1202,12 +1204,12 @@ Returns a new rio with a path equal to the absolute path of this rio
|
|
1202
1204
|
</div>
|
1203
1205
|
</div>
|
1204
1206
|
|
1205
|
-
<div id="method-
|
1206
|
-
<a name="
|
1207
|
+
<div id="method-M000180" class="method-detail">
|
1208
|
+
<a name="M000180"></a>
|
1207
1209
|
|
1208
1210
|
<div class="method-heading">
|
1209
|
-
<a href="Rio.src/
|
1210
|
-
onclick="popupCode('Rio.src/
|
1211
|
+
<a href="Rio.src/M000180.html" target="Code" class="method-signature"
|
1212
|
+
onclick="popupCode('Rio.src/M000180.html');return false;">
|
1211
1213
|
<span class="method-name">abs?</span><span class="method-args">()</span>
|
1212
1214
|
</a>
|
1213
1215
|
</div>
|
@@ -1226,12 +1228,12 @@ Rio#absolute?
|
|
1226
1228
|
</div>
|
1227
1229
|
</div>
|
1228
1230
|
|
1229
|
-
<div id="method-
|
1230
|
-
<a name="
|
1231
|
+
<div id="method-M000181" class="method-detail">
|
1232
|
+
<a name="M000181"></a>
|
1231
1233
|
|
1232
1234
|
<div class="method-heading">
|
1233
|
-
<a href="Rio.src/
|
1234
|
-
onclick="popupCode('Rio.src/
|
1235
|
+
<a href="Rio.src/M000181.html" target="Code" class="method-signature"
|
1236
|
+
onclick="popupCode('Rio.src/M000181.html');return false;">
|
1235
1237
|
<span class="method-name">absolute?</span><span class="method-args">()</span>
|
1236
1238
|
</a>
|
1237
1239
|
</div>
|
@@ -1250,12 +1252,12 @@ or URI. Calls URI#absolute?
|
|
1250
1252
|
</div>
|
1251
1253
|
</div>
|
1252
1254
|
|
1253
|
-
<div id="method-
|
1254
|
-
<a name="
|
1255
|
+
<div id="method-M000024" class="method-detail">
|
1256
|
+
<a name="M000024"></a>
|
1255
1257
|
|
1256
1258
|
<div class="method-heading">
|
1257
|
-
<a href="Rio.src/
|
1258
|
-
onclick="popupCode('Rio.src/
|
1259
|
+
<a href="Rio.src/M000024.html" target="Code" class="method-signature"
|
1260
|
+
onclick="popupCode('Rio.src/M000024.html');return false;">
|
1259
1261
|
<span class="method-name">all</span><span class="method-args">(arg=true,&block)</span>
|
1260
1262
|
</a>
|
1261
1263
|
</div>
|
@@ -1285,12 +1287,12 @@ be applied recursively to subdirectories
|
|
1285
1287
|
</div>
|
1286
1288
|
</div>
|
1287
1289
|
|
1288
|
-
<div id="method-
|
1289
|
-
<a name="
|
1290
|
+
<div id="method-M000023" class="method-detail">
|
1291
|
+
<a name="M000023"></a>
|
1290
1292
|
|
1291
1293
|
<div class="method-heading">
|
1292
|
-
<a href="Rio.src/
|
1293
|
-
onclick="popupCode('Rio.src/
|
1294
|
+
<a href="Rio.src/M000023.html" target="Code" class="method-signature"
|
1295
|
+
onclick="popupCode('Rio.src/M000023.html');return false;">
|
1294
1296
|
<span class="method-name">all?</span><span class="method-args">()</span>
|
1295
1297
|
</a>
|
1296
1298
|
</div>
|
@@ -1298,7 +1300,7 @@ be applied recursively to subdirectories
|
|
1298
1300
|
<div class="method-description">
|
1299
1301
|
<p>
|
1300
1302
|
Returns <tt>true</tt> if the rio is in <tt>all</tt> (recursive) mode. See
|
1301
|
-
<a href="Rio.html#
|
1303
|
+
<a href="Rio.html#M000024">Rio#all</a>
|
1302
1304
|
</p>
|
1303
1305
|
<pre>
|
1304
1306
|
adir = rio('adir').all.dirs
|
@@ -1312,12 +1314,12 @@ Returns <tt>true</tt> if the rio is in <tt>all</tt> (recursive) mode. See
|
|
1312
1314
|
</div>
|
1313
1315
|
</div>
|
1314
1316
|
|
1315
|
-
<div id="method-
|
1316
|
-
<a name="
|
1317
|
+
<div id="method-M000163" class="method-detail">
|
1318
|
+
<a name="M000163"></a>
|
1317
1319
|
|
1318
1320
|
<div class="method-heading">
|
1319
|
-
<a href="Rio.src/
|
1320
|
-
onclick="popupCode('Rio.src/
|
1321
|
+
<a href="Rio.src/M000163.html" target="Code" class="method-signature"
|
1322
|
+
onclick="popupCode('Rio.src/M000163.html');return false;">
|
1321
1323
|
<span class="method-name">atime</span><span class="method-args">(*args)</span>
|
1322
1324
|
</a>
|
1323
1325
|
</div>
|
@@ -1333,19 +1335,28 @@ referenced
|
|
1333
1335
|
</div>
|
1334
1336
|
</div>
|
1335
1337
|
|
1336
|
-
<div id="method-
|
1337
|
-
<a name="
|
1338
|
+
<div id="method-M000088" class="method-detail">
|
1339
|
+
<a name="M000088"></a>
|
1338
1340
|
|
1339
1341
|
<div class="method-heading">
|
1340
|
-
<a href="Rio.src/
|
1341
|
-
onclick="popupCode('Rio.src/
|
1342
|
+
<a href="Rio.src/M000088.html" target="Code" class="method-signature"
|
1343
|
+
onclick="popupCode('Rio.src/M000088.html');return false;">
|
1342
1344
|
<span class="method-name">base</span><span class="method-args">()</span>
|
1343
1345
|
</a>
|
1344
1346
|
</div>
|
1345
1347
|
|
1346
1348
|
<div class="method-description">
|
1347
1349
|
<p>
|
1348
|
-
<a href="Rio.html
|
1350
|
+
Returns a new <a href="Rio.html">Rio</a> whose path is the base path that
|
1351
|
+
is used by <a href="Rio.html#M000086">Rio#abs</a> to create an absolute <a
|
1352
|
+
href="Rio.html">Rio</a> from a relative one.
|
1353
|
+
</p>
|
1354
|
+
<pre>
|
1355
|
+
rio('/tmp').chdir
|
1356
|
+
rio('afile').base # => rio('/tmp/')
|
1357
|
+
</pre>
|
1358
|
+
<p>
|
1359
|
+
See <a href="Rio.html#M000086">Rio#abs</a>.
|
1349
1360
|
</p>
|
1350
1361
|
</div>
|
1351
1362
|
</div>
|
@@ -1417,17 +1428,17 @@ Returns the new value of <tt>basename</tt>
|
|
1417
1428
|
</pre>
|
1418
1429
|
<p>
|
1419
1430
|
See <a href="Rio.html#M000092">Rio#basename</a>, <a
|
1420
|
-
href="Rio.html#
|
1431
|
+
href="Rio.html#M000037">Rio#rename</a>
|
1421
1432
|
</p>
|
1422
1433
|
</div>
|
1423
1434
|
</div>
|
1424
1435
|
|
1425
|
-
<div id="method-
|
1426
|
-
<a name="
|
1436
|
+
<div id="method-M000120" class="method-detail">
|
1437
|
+
<a name="M000120"></a>
|
1427
1438
|
|
1428
1439
|
<div class="method-heading">
|
1429
|
-
<a href="Rio.src/
|
1430
|
-
onclick="popupCode('Rio.src/
|
1440
|
+
<a href="Rio.src/M000120.html" target="Code" class="method-signature"
|
1441
|
+
onclick="popupCode('Rio.src/M000120.html');return false;">
|
1431
1442
|
<span class="method-name">binmode</span><span class="method-args">()</span>
|
1432
1443
|
</a>
|
1433
1444
|
</div>
|
@@ -1450,12 +1461,12 @@ Returns the <a href="Rio.html">Rio</a>.
|
|
1450
1461
|
</div>
|
1451
1462
|
</div>
|
1452
1463
|
|
1453
|
-
<div id="method-
|
1454
|
-
<a name="
|
1464
|
+
<div id="method-M000148" class="method-detail">
|
1465
|
+
<a name="M000148"></a>
|
1455
1466
|
|
1456
1467
|
<div class="method-heading">
|
1457
|
-
<a href="Rio.src/
|
1458
|
-
onclick="popupCode('Rio.src/
|
1468
|
+
<a href="Rio.src/M000148.html" target="Code" class="method-signature"
|
1469
|
+
onclick="popupCode('Rio.src/M000148.html');return false;">
|
1459
1470
|
<span class="method-name">blockdev?</span><span class="method-args">()</span>
|
1460
1471
|
</a>
|
1461
1472
|
</div>
|
@@ -1473,12 +1484,12 @@ Returns <tt>true</tt> if the named file is a block device.
|
|
1473
1484
|
</div>
|
1474
1485
|
</div>
|
1475
1486
|
|
1476
|
-
<div id="method-
|
1477
|
-
<a name="
|
1487
|
+
<div id="method-M000056" class="method-detail">
|
1488
|
+
<a name="M000056"></a>
|
1478
1489
|
|
1479
1490
|
<div class="method-heading">
|
1480
|
-
<a href="Rio.src/
|
1481
|
-
onclick="popupCode('Rio.src/
|
1491
|
+
<a href="Rio.src/M000056.html" target="Code" class="method-signature"
|
1492
|
+
onclick="popupCode('Rio.src/M000056.html');return false;">
|
1482
1493
|
<span class="method-name">bytes</span><span class="method-args">(n=1,*args,&block)</span>
|
1483
1494
|
</a>
|
1484
1495
|
</div>
|
@@ -1489,12 +1500,12 @@ Sets the rio to read bytes and returns the rio
|
|
1489
1500
|
</p>
|
1490
1501
|
<p>
|
1491
1502
|
<em>n</em> specifies the number of bytes to be returned on each iteration
|
1492
|
-
of <a href="Rio.html#
|
1493
|
-
href="Rio.html#
|
1503
|
+
of <a href="Rio.html#M000045">Rio#each</a> or by <a
|
1504
|
+
href="Rio.html#M000052">Rio#getrec</a>. If <em>args</em> are provided, they
|
1494
1505
|
are treated as record selectors as if <tt>ario.bytes(n).records(*args)</tt>
|
1495
|
-
had been called. See also <a href="Rio.html#
|
1496
|
-
href="Rio.html#
|
1497
|
-
href="Rio.html#
|
1506
|
+
had been called. See also <a href="Rio.html#M000057">Rio#records</a>, <a
|
1507
|
+
href="Rio.html#M000055">Rio#lines</a>, <a
|
1508
|
+
href="Rio.html#M000045">Rio#each</a>, <a href="Rio.html">Rio</a>#[]
|
1498
1509
|
</p>
|
1499
1510
|
<p>
|
1500
1511
|
If called with a block behaves as if
|
@@ -1519,12 +1530,12 @@ If called with a block behaves as if
|
|
1519
1530
|
</div>
|
1520
1531
|
</div>
|
1521
1532
|
|
1522
|
-
<div id="method-
|
1523
|
-
<a name="
|
1533
|
+
<div id="method-M000149" class="method-detail">
|
1534
|
+
<a name="M000149"></a>
|
1524
1535
|
|
1525
1536
|
<div class="method-heading">
|
1526
|
-
<a href="Rio.src/
|
1527
|
-
onclick="popupCode('Rio.src/
|
1537
|
+
<a href="Rio.src/M000149.html" target="Code" class="method-signature"
|
1538
|
+
onclick="popupCode('Rio.src/M000149.html');return false;">
|
1528
1539
|
<span class="method-name">chardev?</span><span class="method-args">()</span>
|
1529
1540
|
</a>
|
1530
1541
|
</div>
|
@@ -1542,12 +1553,12 @@ Returns <tt>true</tt> if the named file is a character device.
|
|
1542
1553
|
</div>
|
1543
1554
|
</div>
|
1544
1555
|
|
1545
|
-
<div id="method-
|
1546
|
-
<a name="
|
1556
|
+
<div id="method-M000017" class="method-detail">
|
1557
|
+
<a name="M000017"></a>
|
1547
1558
|
|
1548
1559
|
<div class="method-heading">
|
1549
|
-
<a href="Rio.src/
|
1550
|
-
onclick="popupCode('Rio.src/
|
1560
|
+
<a href="Rio.src/M000017.html" target="Code" class="method-signature"
|
1561
|
+
onclick="popupCode('Rio.src/M000017.html');return false;">
|
1551
1562
|
<span class="method-name">chdir</span><span class="method-args">(&block)</span>
|
1552
1563
|
</a>
|
1553
1564
|
</div>
|
@@ -1580,12 +1591,12 @@ Returns the <a href="Rio.html">Rio</a>
|
|
1580
1591
|
</div>
|
1581
1592
|
</div>
|
1582
1593
|
|
1583
|
-
<div id="method-
|
1584
|
-
<a name="
|
1594
|
+
<div id="method-M000075" class="method-detail">
|
1595
|
+
<a name="M000075"></a>
|
1585
1596
|
|
1586
1597
|
<div class="method-heading">
|
1587
|
-
<a href="Rio.src/
|
1588
|
-
onclick="popupCode('Rio.src/
|
1598
|
+
<a href="Rio.src/M000075.html" target="Code" class="method-signature"
|
1599
|
+
onclick="popupCode('Rio.src/M000075.html');return false;">
|
1589
1600
|
<span class="method-name">chomp</span><span class="method-args">(arg=true,&block)</span>
|
1590
1601
|
</a>
|
1591
1602
|
</div>
|
@@ -1601,7 +1612,7 @@ called
|
|
1601
1612
|
</p>
|
1602
1613
|
<p>
|
1603
1614
|
chomp causes lines returned by each, to_a, readlines, readline, gets, <a
|
1604
|
-
href="Rio.html#
|
1615
|
+
href="Rio.html#M000123">each_line</a> etc. to be chomped before iterated
|
1605
1616
|
over or assigned
|
1606
1617
|
</p>
|
1607
1618
|
<pre>
|
@@ -1633,12 +1644,12 @@ over or assigned
|
|
1633
1644
|
</div>
|
1634
1645
|
</div>
|
1635
1646
|
|
1636
|
-
<div id="method-
|
1637
|
-
<a name="
|
1647
|
+
<div id="method-M000074" class="method-detail">
|
1648
|
+
<a name="M000074"></a>
|
1638
1649
|
|
1639
1650
|
<div class="method-heading">
|
1640
|
-
<a href="Rio.src/
|
1641
|
-
onclick="popupCode('Rio.src/
|
1651
|
+
<a href="Rio.src/M000074.html" target="Code" class="method-signature"
|
1652
|
+
onclick="popupCode('Rio.src/M000074.html');return false;">
|
1642
1653
|
<span class="method-name">chomp?</span><span class="method-args">()</span>
|
1643
1654
|
</a>
|
1644
1655
|
</div>
|
@@ -1646,17 +1657,17 @@ over or assigned
|
|
1646
1657
|
<div class="method-description">
|
1647
1658
|
<p>
|
1648
1659
|
Queries the <a href="Rio.html">Rio</a>’s chomp-mode. See <a
|
1649
|
-
href="Rio.html#
|
1660
|
+
href="Rio.html#M000075">Rio#chomp</a>.
|
1650
1661
|
</p>
|
1651
1662
|
</div>
|
1652
1663
|
</div>
|
1653
1664
|
|
1654
|
-
<div id="method-
|
1655
|
-
<a name="
|
1665
|
+
<div id="method-M000141" class="method-detail">
|
1666
|
+
<a name="M000141"></a>
|
1656
1667
|
|
1657
1668
|
<div class="method-heading">
|
1658
|
-
<a href="Rio.src/
|
1659
|
-
onclick="popupCode('Rio.src/
|
1669
|
+
<a href="Rio.src/M000141.html" target="Code" class="method-signature"
|
1670
|
+
onclick="popupCode('Rio.src/M000141.html');return false;">
|
1660
1671
|
<span class="method-name">close</span><span class="method-args">()</span>
|
1661
1672
|
</a>
|
1662
1673
|
</div>
|
@@ -1677,12 +1688,12 @@ automatically closed when they are claimed by the garbage collector.
|
|
1677
1688
|
</div>
|
1678
1689
|
</div>
|
1679
1690
|
|
1680
|
-
<div id="method-
|
1681
|
-
<a name="
|
1691
|
+
<div id="method-M000157" class="method-detail">
|
1692
|
+
<a name="M000157"></a>
|
1682
1693
|
|
1683
1694
|
<div class="method-heading">
|
1684
|
-
<a href="Rio.src/
|
1685
|
-
onclick="popupCode('Rio.src/
|
1695
|
+
<a href="Rio.src/M000157.html" target="Code" class="method-signature"
|
1696
|
+
onclick="popupCode('Rio.src/M000157.html');return false;">
|
1686
1697
|
<span class="method-name">closed?</span><span class="method-args">()</span>
|
1687
1698
|
</a>
|
1688
1699
|
</div>
|
@@ -1701,12 +1712,12 @@ streams, both reader and writer), <tt>false</tt> otherwise.
|
|
1701
1712
|
</div>
|
1702
1713
|
</div>
|
1703
1714
|
|
1704
|
-
<div id="method-
|
1705
|
-
<a name="
|
1715
|
+
<div id="method-M000071" class="method-detail">
|
1716
|
+
<a name="M000071"></a>
|
1706
1717
|
|
1707
1718
|
<div class="method-heading">
|
1708
|
-
<a href="Rio.src/
|
1709
|
-
onclick="popupCode('Rio.src/
|
1719
|
+
<a href="Rio.src/M000071.html" target="Code" class="method-signature"
|
1720
|
+
onclick="popupCode('Rio.src/M000071.html');return false;">
|
1710
1721
|
<span class="method-name">closeoncopy</span><span class="method-args">(arg=true,&block)</span>
|
1711
1722
|
</a>
|
1712
1723
|
</div>
|
@@ -1719,12 +1730,12 @@ Set a <a href="Rio.html">Rio</a>’s closeoncopy mode
|
|
1719
1730
|
ario.closeoncopy(&block) => ario
|
1720
1731
|
</pre>
|
1721
1732
|
<p>
|
1722
|
-
<a href="Rio.html#
|
1733
|
+
<a href="Rio.html#M000071">Rio#closeoncopy</a> causes the <a
|
1723
1734
|
href="Rio.html">Rio</a> being written to to be closed when using a grande
|
1724
|
-
copy operator. While <a href="Rio.html#
|
1735
|
+
copy operator. While <a href="Rio.html#M000068">Rio#closeoneof</a> causes
|
1725
1736
|
all <a href="Rio.html">Rio</a>’s to be closed when reading to the end
|
1726
1737
|
of file, it does not affect Rios being written to. <a
|
1727
|
-
href="Rio.html#
|
1738
|
+
href="Rio.html#M000071">Rio#closeoncopy</a> only affects the <a
|
1728
1739
|
href="Rio.html">Rio</a> being written to and only when a grande copy
|
1729
1740
|
operator is used. <tt>closeoncopy</tt> is on by default, with one
|
1730
1741
|
exception.
|
@@ -1815,12 +1826,12 @@ contact the author.
|
|
1815
1826
|
</div>
|
1816
1827
|
</div>
|
1817
1828
|
|
1818
|
-
<div id="method-
|
1819
|
-
<a name="
|
1829
|
+
<div id="method-M000073" class="method-detail">
|
1830
|
+
<a name="M000073"></a>
|
1820
1831
|
|
1821
1832
|
<div class="method-heading">
|
1822
|
-
<a href="Rio.src/
|
1823
|
-
onclick="popupCode('Rio.src/
|
1833
|
+
<a href="Rio.src/M000073.html" target="Code" class="method-signature"
|
1834
|
+
onclick="popupCode('Rio.src/M000073.html');return false;">
|
1824
1835
|
<span class="method-name">closeoncopy?</span><span class="method-args">()</span>
|
1825
1836
|
</a>
|
1826
1837
|
</div>
|
@@ -1833,17 +1844,17 @@ Query a <a href="Rio.html">Rio</a>’s closeoncopy mode
|
|
1833
1844
|
ario.closeoncopy? => true or false
|
1834
1845
|
</pre>
|
1835
1846
|
<p>
|
1836
|
-
See <a href="Rio.html#
|
1847
|
+
See <a href="Rio.html#M000071">Rio#closeoncopy</a>
|
1837
1848
|
</p>
|
1838
1849
|
</div>
|
1839
1850
|
</div>
|
1840
1851
|
|
1841
|
-
<div id="method-
|
1842
|
-
<a name="
|
1852
|
+
<div id="method-M000068" class="method-detail">
|
1853
|
+
<a name="M000068"></a>
|
1843
1854
|
|
1844
1855
|
<div class="method-heading">
|
1845
|
-
<a href="Rio.src/
|
1846
|
-
onclick="popupCode('Rio.src/
|
1856
|
+
<a href="Rio.src/M000068.html" target="Code" class="method-signature"
|
1857
|
+
onclick="popupCode('Rio.src/M000068.html');return false;">
|
1847
1858
|
<span class="method-name">closeoneof</span><span class="method-args">(arg=true,&block)</span>
|
1848
1859
|
</a>
|
1849
1860
|
</div>
|
@@ -1859,12 +1870,12 @@ Set the <a href="Rio.html">Rio</a>’s closeoneof mode.
|
|
1859
1870
|
<tt>closeoneof</tt> causes a <a href="Rio.html">Rio</a> to be closed
|
1860
1871
|
automatically whenever the end of file is reached. This is handled at the
|
1861
1872
|
IO level, and thus affects all methods that read from a rio (<a
|
1862
|
-
href="Rio.html#
|
1863
|
-
href="Rio.html#
|
1864
|
-
href="Rio.html#
|
1873
|
+
href="Rio.html#M000124">Rio#readlines</a>, Rio#to_a, <a
|
1874
|
+
href="Rio.html#M000045">Rio#each</a> <a
|
1875
|
+
href="Rio.html#M000114">Rio#gets</a> etc.) Because <tt>closeoneof</tt> must
|
1865
1876
|
be on for many of <a href="Rio.html">Rio</a>’s most useful idioms, it
|
1866
1877
|
is on by default. <tt>closeoneof</tt> can be turned off using <a
|
1867
|
-
href="Rio.html#
|
1878
|
+
href="Rio.html#M000069">Rio#nocloseoneof</a>.
|
1868
1879
|
</p>
|
1869
1880
|
<p>
|
1870
1881
|
If a block is given behaves like <tt>ario.closeoneof.each(&block)</tt>
|
@@ -1910,12 +1921,12 @@ directory’s setting
|
|
1910
1921
|
</div>
|
1911
1922
|
</div>
|
1912
1923
|
|
1913
|
-
<div id="method-
|
1914
|
-
<a name="
|
1924
|
+
<div id="method-M000070" class="method-detail">
|
1925
|
+
<a name="M000070"></a>
|
1915
1926
|
|
1916
1927
|
<div class="method-heading">
|
1917
|
-
<a href="Rio.src/
|
1918
|
-
onclick="popupCode('Rio.src/
|
1928
|
+
<a href="Rio.src/M000070.html" target="Code" class="method-signature"
|
1929
|
+
onclick="popupCode('Rio.src/M000070.html');return false;">
|
1919
1930
|
<span class="method-name">closeoneof?</span><span class="method-args">()</span>
|
1920
1931
|
</a>
|
1921
1932
|
</div>
|
@@ -1928,8 +1939,8 @@ Query a <a href="Rio.html">Rio</a>’s closeoneof mode
|
|
1928
1939
|
ario.closeoneof? => true or false
|
1929
1940
|
</pre>
|
1930
1941
|
<p>
|
1931
|
-
See <a href="Rio.html#
|
1932
|
-
href="Rio.html#
|
1942
|
+
See <a href="Rio.html#M000068">Rio#closeoneof</a> and <a
|
1943
|
+
href="Rio.html#M000069">Rio#nocloseoneof</a>
|
1933
1944
|
</p>
|
1934
1945
|
<pre>
|
1935
1946
|
ario = rio('afile')
|
@@ -1946,12 +1957,12 @@ href="Rio.html#M000070">Rio#nocloseoneof</a>
|
|
1946
1957
|
</div>
|
1947
1958
|
</div>
|
1948
1959
|
|
1949
|
-
<div id="method-
|
1950
|
-
<a name="
|
1960
|
+
<div id="method-M000116" class="method-detail">
|
1961
|
+
<a name="M000116"></a>
|
1951
1962
|
|
1952
1963
|
<div class="method-heading">
|
1953
|
-
<a href="Rio.src/
|
1954
|
-
onclick="popupCode('Rio.src/
|
1964
|
+
<a href="Rio.src/M000116.html" target="Code" class="method-signature"
|
1965
|
+
onclick="popupCode('Rio.src/M000116.html');return false;">
|
1955
1966
|
<span class="method-name">contents</span><span class="method-args">()</span>
|
1956
1967
|
</a>
|
1957
1968
|
</div>
|
@@ -1959,15 +1970,15 @@ href="Rio.html#M000070">Rio#nocloseoneof</a>
|
|
1959
1970
|
<div class="method-description">
|
1960
1971
|
<p>
|
1961
1972
|
Returns the contents of the rio as a string. See also <a
|
1962
|
-
href="Rio.html#
|
1973
|
+
href="Rio.html#M000115">Rio#slurp</a>
|
1963
1974
|
</p>
|
1964
1975
|
<pre>
|
1965
1976
|
astring = rio('afile.txt').contents # copies the entire contents of afile.txt into astring
|
1966
1977
|
</pre>
|
1967
1978
|
<p>
|
1968
1979
|
Alpha Note: Considering removing <a
|
1969
|
-
href="Rio.html#
|
1970
|
-
href="Rio.html#
|
1980
|
+
href="Rio.html#M000116">Rio#contents</a> and <a
|
1981
|
+
href="Rio.html#M000115">Rio#slurp</a> in favor of <tt>to_string</tt>. Is
|
1971
1982
|
this the Ruby way? Is it too confusing with a <tt><a
|
1972
1983
|
href="Rio.html#M000008">to_s</a></tt> and <tt>to_str</tt> already? Is it a
|
1973
1984
|
good idea?
|
@@ -1975,12 +1986,12 @@ good idea?
|
|
1975
1986
|
</div>
|
1976
1987
|
</div>
|
1977
1988
|
|
1978
|
-
<div id="method-
|
1979
|
-
<a name="
|
1989
|
+
<div id="method-M000164" class="method-detail">
|
1990
|
+
<a name="M000164"></a>
|
1980
1991
|
|
1981
1992
|
<div class="method-heading">
|
1982
|
-
<a href="Rio.src/
|
1983
|
-
onclick="popupCode('Rio.src/
|
1993
|
+
<a href="Rio.src/M000164.html" target="Code" class="method-signature"
|
1994
|
+
onclick="popupCode('Rio.src/M000164.html');return false;">
|
1984
1995
|
<span class="method-name">ctime</span><span class="method-args">(*args)</span>
|
1985
1996
|
</a>
|
1986
1997
|
</div>
|
@@ -1997,12 +2008,12 @@ itself).
|
|
1997
2008
|
</div>
|
1998
2009
|
</div>
|
1999
2010
|
|
2000
|
-
<div id="method-
|
2001
|
-
<a name="
|
2011
|
+
<div id="method-M000046" class="method-detail">
|
2012
|
+
<a name="M000046"></a>
|
2002
2013
|
|
2003
2014
|
<div class="method-heading">
|
2004
|
-
<a href="Rio.src/
|
2005
|
-
onclick="popupCode('Rio.src/
|
2015
|
+
<a href="Rio.src/M000046.html" target="Code" class="method-signature"
|
2016
|
+
onclick="popupCode('Rio.src/M000046.html');return false;">
|
2006
2017
|
<span class="method-name">delete</span><span class="method-args">()</span>
|
2007
2018
|
</a>
|
2008
2019
|
</div>
|
@@ -2023,20 +2034,20 @@ href="Rio.html">Rio</a>.
|
|
2023
2034
|
</div>
|
2024
2035
|
</div>
|
2025
2036
|
|
2026
|
-
<div id="method-
|
2027
|
-
<a name="
|
2037
|
+
<div id="method-M000047" class="method-detail">
|
2038
|
+
<a name="M000047"></a>
|
2028
2039
|
|
2029
2040
|
<div class="method-heading">
|
2030
|
-
<a href="Rio.src/
|
2031
|
-
onclick="popupCode('Rio.src/
|
2041
|
+
<a href="Rio.src/M000047.html" target="Code" class="method-signature"
|
2042
|
+
onclick="popupCode('Rio.src/M000047.html');return false;">
|
2032
2043
|
<span class="method-name">delete!</span><span class="method-args">()</span>
|
2033
2044
|
</a>
|
2034
2045
|
</div>
|
2035
2046
|
|
2036
2047
|
<div class="method-description">
|
2037
2048
|
<p>
|
2038
|
-
For a file <a href="Rio.html#
|
2039
|
-
For a directory <a href="Rio.html#
|
2049
|
+
For a file <a href="Rio.html#M000046">Rio#delete</a>! calls FileUtils#rm.
|
2050
|
+
For a directory <a href="Rio.html#M000046">Rio#delete</a>! calls
|
2040
2051
|
FileUtils#rmtree Returns the <a href="Rio.html">Rio</a>. If the rio does
|
2041
2052
|
not exist, simply return itself.
|
2042
2053
|
</p>
|
@@ -2050,21 +2061,21 @@ not exist, simply return itself.
|
|
2050
2061
|
<h4>Deleting Summary</h4>
|
2051
2062
|
<ul>
|
2052
2063
|
<li>To delete something only if it is not a directory use <a
|
2053
|
-
href="Rio.html#
|
2064
|
+
href="Rio.html#M000033">Rio#rm</a>
|
2054
2065
|
|
2055
2066
|
</li>
|
2056
|
-
<li>To delete an empty directory use <a href="Rio.html#
|
2067
|
+
<li>To delete an empty directory use <a href="Rio.html#M000029">Rio#rmdir</a>
|
2057
2068
|
|
2058
2069
|
</li>
|
2059
2070
|
<li>To delete an entire directory tree use <a
|
2060
|
-
href="Rio.html#
|
2071
|
+
href="Rio.html#M000030">Rio#rmtree</a>
|
2061
2072
|
|
2062
2073
|
</li>
|
2063
2074
|
<li>To delete anything except a populated directory use <a
|
2064
|
-
href="Rio.html#
|
2075
|
+
href="Rio.html#M000046">Rio#delete</a>
|
2065
2076
|
|
2066
2077
|
</li>
|
2067
|
-
<li>To delete anything use <a href="Rio.html#
|
2078
|
+
<li>To delete anything use <a href="Rio.html#M000046">Rio#delete</a>!
|
2068
2079
|
|
2069
2080
|
</li>
|
2070
2081
|
</ul>
|
@@ -2075,12 +2086,12 @@ successful
|
|
2075
2086
|
</div>
|
2076
2087
|
</div>
|
2077
2088
|
|
2078
|
-
<div id="method-
|
2079
|
-
<a name="
|
2089
|
+
<div id="method-M000151" class="method-detail">
|
2090
|
+
<a name="M000151"></a>
|
2080
2091
|
|
2081
2092
|
<div class="method-heading">
|
2082
|
-
<a href="Rio.src/
|
2083
|
-
onclick="popupCode('Rio.src/
|
2093
|
+
<a href="Rio.src/M000151.html" target="Code" class="method-signature"
|
2094
|
+
onclick="popupCode('Rio.src/M000151.html');return false;">
|
2084
2095
|
<span class="method-name">dir?</span><span class="method-args">()</span>
|
2085
2096
|
</a>
|
2086
2097
|
</div>
|
@@ -2089,12 +2100,12 @@ successful
|
|
2089
2100
|
</div>
|
2090
2101
|
</div>
|
2091
2102
|
|
2092
|
-
<div id="method-
|
2093
|
-
<a name="
|
2103
|
+
<div id="method-M000150" class="method-detail">
|
2104
|
+
<a name="M000150"></a>
|
2094
2105
|
|
2095
2106
|
<div class="method-heading">
|
2096
|
-
<a href="Rio.src/
|
2097
|
-
onclick="popupCode('Rio.src/
|
2107
|
+
<a href="Rio.src/M000150.html" target="Code" class="method-signature"
|
2108
|
+
onclick="popupCode('Rio.src/M000150.html');return false;">
|
2098
2109
|
<span class="method-name">directory?</span><span class="method-args">()</span>
|
2099
2110
|
</a>
|
2100
2111
|
</div>
|
@@ -2170,17 +2181,17 @@ Returns the new value of <tt>dirname</tt>
|
|
2170
2181
|
</pre>
|
2171
2182
|
<p>
|
2172
2183
|
See <a href="Rio.html#M000093">Rio#dirname</a>, <a
|
2173
|
-
href="Rio.html#
|
2184
|
+
href="Rio.html#M000037">Rio#rename</a>
|
2174
2185
|
</p>
|
2175
2186
|
</div>
|
2176
2187
|
</div>
|
2177
2188
|
|
2178
|
-
<div id="method-
|
2179
|
-
<a name="
|
2189
|
+
<div id="method-M000018" class="method-detail">
|
2190
|
+
<a name="M000018"></a>
|
2180
2191
|
|
2181
2192
|
<div class="method-heading">
|
2182
|
-
<a href="Rio.src/
|
2183
|
-
onclick="popupCode('Rio.src/
|
2193
|
+
<a href="Rio.src/M000018.html" target="Code" class="method-signature"
|
2194
|
+
onclick="popupCode('Rio.src/M000018.html');return false;">
|
2184
2195
|
<span class="method-name">dirs</span><span class="method-args">(*args,&block)</span>
|
2185
2196
|
</a>
|
2186
2197
|
</div>
|
@@ -2222,9 +2233,9 @@ If a block is given, behaves like
|
|
2222
2233
|
<tt>ario.dirs(*args).each(&block)</tt>
|
2223
2234
|
</p>
|
2224
2235
|
<p>
|
2225
|
-
See also <a href="Rio.html#
|
2226
|
-
href="Rio.html#
|
2227
|
-
href="Rio.html#
|
2236
|
+
See also <a href="Rio.html#M000021">Rio#files</a>, <a
|
2237
|
+
href="Rio.html#M000020">Rio#entries</a>, <a
|
2238
|
+
href="Rio.html#M000019">Rio#nodirs</a>
|
2228
2239
|
</p>
|
2229
2240
|
<pre>
|
2230
2241
|
rio('adir').dirs { |frio| ... } # process all directories in 'adir'
|
@@ -2250,12 +2261,12 @@ href="Rio.html#M000020">Rio#nodirs</a>
|
|
2250
2261
|
</div>
|
2251
2262
|
</div>
|
2252
2263
|
|
2253
|
-
<div id="method-
|
2254
|
-
<a name="
|
2264
|
+
<div id="method-M000045" class="method-detail">
|
2265
|
+
<a name="M000045"></a>
|
2255
2266
|
|
2256
2267
|
<div class="method-heading">
|
2257
|
-
<a href="Rio.src/
|
2258
|
-
onclick="popupCode('Rio.src/
|
2268
|
+
<a href="Rio.src/M000045.html" target="Code" class="method-signature"
|
2269
|
+
onclick="popupCode('Rio.src/M000045.html');return false;">
|
2259
2270
|
<span class="method-name">each</span><span class="method-args">(*args,&block)</span>
|
2260
2271
|
</a>
|
2261
2272
|
</div>
|
@@ -2263,29 +2274,29 @@ href="Rio.html#M000020">Rio#nodirs</a>
|
|
2263
2274
|
<div class="method-description">
|
2264
2275
|
<p>
|
2265
2276
|
Iterate through a rio. Executes the block for each item selected for the <a
|
2266
|
-
href="Rio.html">Rio</a>. See <a href="Rio.html#
|
2267
|
-
href="Rio.html#
|
2268
|
-
href="Rio.html#
|
2269
|
-
href="Rio.html#
|
2270
|
-
href="Rio.html#
|
2277
|
+
href="Rio.html">Rio</a>. See <a href="Rio.html#M000055">Rio#lines</a>, <a
|
2278
|
+
href="Rio.html#M000057">Rio#records</a>, <a
|
2279
|
+
href="Rio.html#M000056">Rio#bytes</a>, <a
|
2280
|
+
href="Rio.html#M000021">Rio#files</a>, <a
|
2281
|
+
href="Rio.html#M000018">Rio#dirs</a>, <a href="Rio.html">Rio</a>#[] and
|
2271
2282
|
Rio#to_a for more information on how records are selected and what kind of
|
2272
2283
|
record is passed to the block.
|
2273
2284
|
</p>
|
2274
2285
|
<p>
|
2275
|
-
<a href="Rio.html#
|
2286
|
+
<a href="Rio.html#M000045">Rio#each</a> is the fundemental method for all
|
2276
2287
|
the <a href="Rio.html">Rio</a> grande operators. Rio#to_a and the <a
|
2277
2288
|
href="Rio.html">Rio</a> copy operators <a href="Rio.html">Rio</a>#< <a
|
2278
2289
|
href="Rio.html">Rio</a>#<< <a href="Rio.html">Rio</a>#>> <a
|
2279
2290
|
href="Rio.html">Rio</a>#> are all implemented in terms of <a
|
2280
|
-
href="Rio.html#
|
2291
|
+
href="Rio.html#M000045">Rio#each</a>.
|
2281
2292
|
</p>
|
2282
2293
|
<p>
|
2283
|
-
While <a href="Rio.html#
|
2294
|
+
While <a href="Rio.html#M000045">Rio#each</a> is fundamental to a <a
|
2284
2295
|
href="Rio.html">Rio</a>, it rarely needs actually be called because all the
|
2285
2296
|
grande configuration methods will also take a block and call <a
|
2286
|
-
href="Rio.html#
|
2297
|
+
href="Rio.html#M000045">Rio#each</a> if one is given. So the existance of a
|
2287
2298
|
block after many methods is taken as an implied <a
|
2288
|
-
href="Rio.html#
|
2299
|
+
href="Rio.html#M000045">Rio#each</a>
|
2289
2300
|
</p>
|
2290
2301
|
<p>
|
2291
2302
|
For Rios that refer to directories, the item passed to the block is a <a
|
@@ -2308,7 +2319,7 @@ certain attributes from the directory <a href="Rio.html">Rio</a>.
|
|
2308
2319
|
end
|
2309
2320
|
</pre>
|
2310
2321
|
<p>
|
2311
|
-
<a href="Rio.html#
|
2322
|
+
<a href="Rio.html#M000045">Rio#each</a> returns the <a
|
2312
2323
|
href="Rio.html">Rio</a> which called it.
|
2313
2324
|
</p>
|
2314
2325
|
<p>
|
@@ -2380,12 +2391,12 @@ href="Doc/INTRO.html">RIO::Doc::INTRO</a> for further explanation.
|
|
2380
2391
|
</div>
|
2381
2392
|
</div>
|
2382
2393
|
|
2383
|
-
<div id="method-
|
2384
|
-
<a name="
|
2394
|
+
<div id="method-M000122" class="method-detail">
|
2395
|
+
<a name="M000122"></a>
|
2385
2396
|
|
2386
2397
|
<div class="method-heading">
|
2387
|
-
<a href="Rio.src/
|
2388
|
-
onclick="popupCode('Rio.src/
|
2398
|
+
<a href="Rio.src/M000122.html" target="Code" class="method-signature"
|
2399
|
+
onclick="popupCode('Rio.src/M000122.html');return false;">
|
2389
2400
|
<span class="method-name">each_byte</span><span class="method-args">(*args,&block)</span>
|
2390
2401
|
</a>
|
2391
2402
|
</div>
|
@@ -2404,12 +2415,12 @@ the byte as an argument.
|
|
2404
2415
|
</div>
|
2405
2416
|
</div>
|
2406
2417
|
|
2407
|
-
<div id="method-
|
2408
|
-
<a name="
|
2418
|
+
<div id="method-M000123" class="method-detail">
|
2419
|
+
<a name="M000123"></a>
|
2409
2420
|
|
2410
2421
|
<div class="method-heading">
|
2411
|
-
<a href="Rio.src/
|
2412
|
-
onclick="popupCode('Rio.src/
|
2422
|
+
<a href="Rio.src/M000123.html" target="Code" class="method-signature"
|
2423
|
+
onclick="popupCode('Rio.src/M000123.html');return false;">
|
2413
2424
|
<span class="method-name">each_line</span><span class="method-args">(*args,&block)</span>
|
2414
2425
|
</a>
|
2415
2426
|
</div>
|
@@ -2428,12 +2439,12 @@ separated by <em>sep_string</em>.
|
|
2428
2439
|
</div>
|
2429
2440
|
</div>
|
2430
2441
|
|
2431
|
-
<div id="method-
|
2432
|
-
<a name="
|
2442
|
+
<div id="method-M000020" class="method-detail">
|
2443
|
+
<a name="M000020"></a>
|
2433
2444
|
|
2434
2445
|
<div class="method-heading">
|
2435
|
-
<a href="Rio.src/
|
2436
|
-
onclick="popupCode('Rio.src/
|
2446
|
+
<a href="Rio.src/M000020.html" target="Code" class="method-signature"
|
2447
|
+
onclick="popupCode('Rio.src/M000020.html');return false;">
|
2437
2448
|
<span class="method-name">entries</span><span class="method-args">(*args,&block)</span>
|
2438
2449
|
</a>
|
2439
2450
|
</div>
|
@@ -2467,8 +2478,8 @@ If a block is given, behaves like
|
|
2467
2478
|
<tt>ario.etries(*args).each(&block)</tt>
|
2468
2479
|
</p>
|
2469
2480
|
<p>
|
2470
|
-
See also <a href="Rio.html#
|
2471
|
-
href="Rio.html#
|
2481
|
+
See also <a href="Rio.html#M000021">Rio#files</a>, <a
|
2482
|
+
href="Rio.html#M000018">Rio#dirs</a>, Rio#noentries
|
2472
2483
|
</p>
|
2473
2484
|
<pre>
|
2474
2485
|
rio('adir').entries { |frio| ... } # process all entries in 'adir'
|
@@ -2480,12 +2491,12 @@ href="Rio.html#M000019">Rio#dirs</a>, Rio#noentries
|
|
2480
2491
|
</div>
|
2481
2492
|
</div>
|
2482
2493
|
|
2483
|
-
<div id="method-
|
2484
|
-
<a name="
|
2494
|
+
<div id="method-M000136" class="method-detail">
|
2495
|
+
<a name="M000136"></a>
|
2485
2496
|
|
2486
2497
|
<div class="method-heading">
|
2487
|
-
<a href="Rio.src/
|
2488
|
-
onclick="popupCode('Rio.src/
|
2498
|
+
<a href="Rio.src/M000136.html" target="Code" class="method-signature"
|
2499
|
+
onclick="popupCode('Rio.src/M000136.html');return false;">
|
2489
2500
|
<span class="method-name">eof?</span><span class="method-args">()</span>
|
2490
2501
|
</a>
|
2491
2502
|
</div>
|
@@ -2504,12 +2515,12 @@ for reading or an <tt>IOError</tt> will be raised.
|
|
2504
2515
|
</div>
|
2505
2516
|
</div>
|
2506
2517
|
|
2507
|
-
<div id="method-
|
2508
|
-
<a name="
|
2518
|
+
<div id="method-M000015" class="method-detail">
|
2519
|
+
<a name="M000015"></a>
|
2509
2520
|
|
2510
2521
|
<div class="method-heading">
|
2511
|
-
<a href="Rio.src/
|
2512
|
-
onclick="popupCode('Rio.src/
|
2522
|
+
<a href="Rio.src/M000015.html" target="Code" class="method-signature"
|
2523
|
+
onclick="popupCode('Rio.src/M000015.html');return false;">
|
2513
2524
|
<span class="method-name">eql?</span><span class="method-args">(other)</span>
|
2514
2525
|
</a>
|
2515
2526
|
</div>
|
@@ -2521,12 +2532,12 @@ Returns true if their String representations are eql?
|
|
2521
2532
|
</div>
|
2522
2533
|
</div>
|
2523
2534
|
|
2524
|
-
<div id="method-
|
2525
|
-
<a name="
|
2535
|
+
<div id="method-M000166" class="method-detail">
|
2536
|
+
<a name="M000166"></a>
|
2526
2537
|
|
2527
2538
|
<div class="method-heading">
|
2528
|
-
<a href="Rio.src/
|
2529
|
-
onclick="popupCode('Rio.src/
|
2539
|
+
<a href="Rio.src/M000166.html" target="Code" class="method-signature"
|
2540
|
+
onclick="popupCode('Rio.src/M000166.html');return false;">
|
2530
2541
|
<span class="method-name">executable?</span><span class="method-args">(*args)</span>
|
2531
2542
|
</a>
|
2532
2543
|
</div>
|
@@ -2542,12 +2553,12 @@ process.
|
|
2542
2553
|
</div>
|
2543
2554
|
</div>
|
2544
2555
|
|
2545
|
-
<div id="method-
|
2546
|
-
<a name="
|
2556
|
+
<div id="method-M000167" class="method-detail">
|
2557
|
+
<a name="M000167"></a>
|
2547
2558
|
|
2548
2559
|
<div class="method-heading">
|
2549
|
-
<a href="Rio.src/
|
2550
|
-
onclick="popupCode('Rio.src/
|
2560
|
+
<a href="Rio.src/M000167.html" target="Code" class="method-signature"
|
2561
|
+
onclick="popupCode('Rio.src/M000167.html');return false;">
|
2551
2562
|
<span class="method-name">executable_real?</span><span class="method-args">(*args)</span>
|
2552
2563
|
</a>
|
2553
2564
|
</div>
|
@@ -2562,12 +2573,12 @@ Returns true if the file is executable by the real user id of this process.
|
|
2562
2573
|
</div>
|
2563
2574
|
</div>
|
2564
2575
|
|
2565
|
-
<div id="method-
|
2566
|
-
<a name="
|
2576
|
+
<div id="method-M000152" class="method-detail">
|
2577
|
+
<a name="M000152"></a>
|
2567
2578
|
|
2568
2579
|
<div class="method-heading">
|
2569
|
-
<a href="Rio.src/
|
2570
|
-
onclick="popupCode('Rio.src/
|
2580
|
+
<a href="Rio.src/M000152.html" target="Code" class="method-signature"
|
2581
|
+
onclick="popupCode('Rio.src/M000152.html');return false;">
|
2571
2582
|
<span class="method-name">exist?</span><span class="method-args">()</span>
|
2572
2583
|
</a>
|
2573
2584
|
</div>
|
@@ -2585,12 +2596,12 @@ Returns <tt>true</tt> if the named file exists.
|
|
2585
2596
|
</div>
|
2586
2597
|
</div>
|
2587
2598
|
|
2588
|
-
<div id="method-
|
2589
|
-
<a name="
|
2599
|
+
<div id="method-M000085" class="method-detail">
|
2600
|
+
<a name="M000085"></a>
|
2590
2601
|
|
2591
2602
|
<div class="method-heading">
|
2592
|
-
<a href="Rio.src/
|
2593
|
-
onclick="popupCode('Rio.src/
|
2603
|
+
<a href="Rio.src/M000085.html" target="Code" class="method-signature"
|
2604
|
+
onclick="popupCode('Rio.src/M000085.html');return false;">
|
2594
2605
|
<span class="method-name">expand_path</span><span class="method-args">(*args)</span>
|
2595
2606
|
</a>
|
2596
2607
|
</div>
|
@@ -2735,17 +2746,17 @@ Returns the extension
|
|
2735
2746
|
</pre>
|
2736
2747
|
<p>
|
2737
2748
|
See <a href="Rio.html#M000094">Rio#extname</a>, <a
|
2738
|
-
href="Rio.html#
|
2749
|
+
href="Rio.html#M000037">Rio#rename</a>
|
2739
2750
|
</p>
|
2740
2751
|
</div>
|
2741
2752
|
</div>
|
2742
2753
|
|
2743
|
-
<div id="method-
|
2744
|
-
<a name="
|
2754
|
+
<div id="method-M000142" class="method-detail">
|
2755
|
+
<a name="M000142"></a>
|
2745
2756
|
|
2746
2757
|
<div class="method-heading">
|
2747
|
-
<a href="Rio.src/
|
2748
|
-
onclick="popupCode('Rio.src/
|
2758
|
+
<a href="Rio.src/M000142.html" target="Code" class="method-signature"
|
2759
|
+
onclick="popupCode('Rio.src/M000142.html');return false;">
|
2749
2760
|
<span class="method-name">fcntl</span><span class="method-args">(integer_cmd,arg)</span>
|
2750
2761
|
</a>
|
2751
2762
|
</div>
|
@@ -2768,12 +2779,12 @@ details. Not implemented on all platforms.
|
|
2768
2779
|
</div>
|
2769
2780
|
</div>
|
2770
2781
|
|
2771
|
-
<div id="method-
|
2772
|
-
<a name="
|
2782
|
+
<div id="method-M000153" class="method-detail">
|
2783
|
+
<a name="M000153"></a>
|
2773
2784
|
|
2774
2785
|
<div class="method-heading">
|
2775
|
-
<a href="Rio.src/
|
2776
|
-
onclick="popupCode('Rio.src/
|
2786
|
+
<a href="Rio.src/M000153.html" target="Code" class="method-signature"
|
2787
|
+
onclick="popupCode('Rio.src/M000153.html');return false;">
|
2777
2788
|
<span class="method-name">file?</span><span class="method-args">()</span>
|
2778
2789
|
</a>
|
2779
2790
|
</div>
|
@@ -2846,17 +2857,17 @@ Returns the new value of <tt>filename</tt>
|
|
2846
2857
|
</pre>
|
2847
2858
|
<p>
|
2848
2859
|
See <a href="Rio.html#M000095">Rio#filename</a>, <a
|
2849
|
-
href="Rio.html#
|
2860
|
+
href="Rio.html#M000037">Rio#rename</a>
|
2850
2861
|
</p>
|
2851
2862
|
</div>
|
2852
2863
|
</div>
|
2853
2864
|
|
2854
|
-
<div id="method-
|
2855
|
-
<a name="
|
2865
|
+
<div id="method-M000144" class="method-detail">
|
2866
|
+
<a name="M000144"></a>
|
2856
2867
|
|
2857
2868
|
<div class="method-heading">
|
2858
|
-
<a href="Rio.src/
|
2859
|
-
onclick="popupCode('Rio.src/
|
2869
|
+
<a href="Rio.src/M000144.html" target="Code" class="method-signature"
|
2870
|
+
onclick="popupCode('Rio.src/M000144.html');return false;">
|
2860
2871
|
<span class="method-name">fileno</span><span class="method-args">()</span>
|
2861
2872
|
</a>
|
2862
2873
|
</div>
|
@@ -2876,12 +2887,12 @@ Returns an integer representing the numeric file descriptor for
|
|
2876
2887
|
</div>
|
2877
2888
|
</div>
|
2878
2889
|
|
2879
|
-
<div id="method-
|
2880
|
-
<a name="
|
2890
|
+
<div id="method-M000021" class="method-detail">
|
2891
|
+
<a name="M000021"></a>
|
2881
2892
|
|
2882
2893
|
<div class="method-heading">
|
2883
|
-
<a href="Rio.src/
|
2884
|
-
onclick="popupCode('Rio.src/
|
2894
|
+
<a href="Rio.src/M000021.html" target="Code" class="method-signature"
|
2895
|
+
onclick="popupCode('Rio.src/M000021.html');return false;">
|
2885
2896
|
<span class="method-name">files</span><span class="method-args">(*args,&block)</span>
|
2886
2897
|
</a>
|
2887
2898
|
</div>
|
@@ -2923,9 +2934,9 @@ If <tt>args</tt> are:
|
|
2923
2934
|
If a block is given, behaves like <tt>ario.files(*args).each</tt>
|
2924
2935
|
</p>
|
2925
2936
|
<p>
|
2926
|
-
See also <a href="Rio.html#
|
2927
|
-
href="Rio.html#
|
2928
|
-
href="Rio.html#
|
2937
|
+
See also <a href="Rio.html#M000018">Rio#dirs</a>, <a
|
2938
|
+
href="Rio.html#M000020">Rio#entries</a>, <a
|
2939
|
+
href="Rio.html#M000022">Rio#nofiles</a>
|
2929
2940
|
</p>
|
2930
2941
|
<pre>
|
2931
2942
|
rio('adir').files { |frio| ... } # process all files in 'adir'
|
@@ -3002,12 +3013,12 @@ Return an array rather than iterating thru them
|
|
3002
3013
|
</div>
|
3003
3014
|
</div>
|
3004
3015
|
|
3005
|
-
<div id="method-
|
3006
|
-
<a name="
|
3016
|
+
<div id="method-M000027" class="method-detail">
|
3017
|
+
<a name="M000027"></a>
|
3007
3018
|
|
3008
3019
|
<div class="method-heading">
|
3009
|
-
<a href="Rio.src/
|
3010
|
-
onclick="popupCode('Rio.src/
|
3020
|
+
<a href="Rio.src/M000027.html" target="Code" class="method-signature"
|
3021
|
+
onclick="popupCode('Rio.src/M000027.html');return false;">
|
3011
3022
|
<span class="method-name">find</span><span class="method-args">(*args,&block)</span>
|
3012
3023
|
</a>
|
3013
3024
|
</div>
|
@@ -3020,8 +3031,8 @@ Calls Find#find
|
|
3020
3031
|
Uses Find#find to find all entries recursively for a <a
|
3021
3032
|
href="Rio.html">Rio</a> that specifies a directory. Note that there are
|
3022
3033
|
other ways to recurse through a directory structure using a <a
|
3023
|
-
href="Rio.html">Rio</a>. See <a href="Rio.html#
|
3024
|
-
href="Rio.html#
|
3034
|
+
href="Rio.html">Rio</a>. See <a href="Rio.html#M000045">Rio#each</a> and <a
|
3035
|
+
href="Rio.html#M000024">Rio#all</a>.
|
3025
3036
|
</p>
|
3026
3037
|
<p>
|
3027
3038
|
Calls the block passing a <a href="Rio.html">Rio</a> for each entry found.
|
@@ -3042,12 +3053,12 @@ Returns itself
|
|
3042
3053
|
</div>
|
3043
3054
|
</div>
|
3044
3055
|
|
3045
|
-
<div id="method-
|
3046
|
-
<a name="
|
3056
|
+
<div id="method-M000121" class="method-detail">
|
3057
|
+
<a name="M000121"></a>
|
3047
3058
|
|
3048
3059
|
<div class="method-heading">
|
3049
|
-
<a href="Rio.src/
|
3050
|
-
onclick="popupCode('Rio.src/
|
3060
|
+
<a href="Rio.src/M000121.html" target="Code" class="method-signature"
|
3061
|
+
onclick="popupCode('Rio.src/M000121.html');return false;">
|
3051
3062
|
<span class="method-name">flush</span><span class="method-args">()</span>
|
3052
3063
|
</a>
|
3053
3064
|
</div>
|
@@ -3067,12 +3078,12 @@ the data as well).
|
|
3067
3078
|
</div>
|
3068
3079
|
</div>
|
3069
3080
|
|
3070
|
-
<div id="method-
|
3071
|
-
<a name="
|
3081
|
+
<div id="method-M000158" class="method-detail">
|
3082
|
+
<a name="M000158"></a>
|
3072
3083
|
|
3073
3084
|
<div class="method-heading">
|
3074
|
-
<a href="Rio.src/
|
3075
|
-
onclick="popupCode('Rio.src/
|
3085
|
+
<a href="Rio.src/M000158.html" target="Code" class="method-signature"
|
3086
|
+
onclick="popupCode('Rio.src/M000158.html');return false;">
|
3076
3087
|
<span class="method-name">fnmatch?</span><span class="method-args">(*args)</span>
|
3077
3088
|
</a>
|
3078
3089
|
</div>
|
@@ -3087,12 +3098,12 @@ Returns true if path matches against pattern
|
|
3087
3098
|
</div>
|
3088
3099
|
</div>
|
3089
3100
|
|
3090
|
-
<div id="method-
|
3091
|
-
<a name="
|
3101
|
+
<div id="method-M000084" class="method-detail">
|
3102
|
+
<a name="M000084"></a>
|
3092
3103
|
|
3093
3104
|
<div class="method-heading">
|
3094
|
-
<a href="Rio.src/
|
3095
|
-
onclick="popupCode('Rio.src/
|
3105
|
+
<a href="Rio.src/M000084.html" target="Code" class="method-signature"
|
3106
|
+
onclick="popupCode('Rio.src/M000084.html');return false;">
|
3096
3107
|
<span class="method-name">fspath</span><span class="method-args">(*args)</span>
|
3097
3108
|
</a>
|
3098
3109
|
</div>
|
@@ -3106,12 +3117,12 @@ filesystem (i.e. stdin: or http: Rios)
|
|
3106
3117
|
</div>
|
3107
3118
|
</div>
|
3108
3119
|
|
3109
|
-
<div id="method-
|
3110
|
-
<a name="
|
3120
|
+
<div id="method-M000145" class="method-detail">
|
3121
|
+
<a name="M000145"></a>
|
3111
3122
|
|
3112
3123
|
<div class="method-heading">
|
3113
|
-
<a href="Rio.src/
|
3114
|
-
onclick="popupCode('Rio.src/
|
3124
|
+
<a href="Rio.src/M000145.html" target="Code" class="method-signature"
|
3125
|
+
onclick="popupCode('Rio.src/M000145.html');return false;">
|
3115
3126
|
<span class="method-name">fsync</span><span class="method-args">()</span>
|
3116
3127
|
</a>
|
3117
3128
|
</div>
|
@@ -3127,19 +3138,19 @@ Calls IO#fsync
|
|
3127
3138
|
Immediately writes all buffered data in <em>ario</em> to disk and return
|
3128
3139
|
<em>ario</em>. Does nothing if the underlying operating system does not
|
3129
3140
|
support _fsync(2)_. Note that <tt>fsync</tt> differs from using <a
|
3130
|
-
href="Rio.html#
|
3141
|
+
href="Rio.html#M000078">Rio#sync</a>. The latter ensures that data is
|
3131
3142
|
flushed from Ruby’s buffers, but doesn’t not guarantee that the
|
3132
3143
|
underlying operating system actually writes it to disk.
|
3133
3144
|
</p>
|
3134
3145
|
</div>
|
3135
3146
|
</div>
|
3136
3147
|
|
3137
|
-
<div id="method-
|
3138
|
-
<a name="
|
3148
|
+
<div id="method-M000159" class="method-detail">
|
3149
|
+
<a name="M000159"></a>
|
3139
3150
|
|
3140
3151
|
<div class="method-heading">
|
3141
|
-
<a href="Rio.src/
|
3142
|
-
onclick="popupCode('Rio.src/
|
3152
|
+
<a href="Rio.src/M000159.html" target="Code" class="method-signature"
|
3153
|
+
onclick="popupCode('Rio.src/M000159.html');return false;">
|
3143
3154
|
<span class="method-name">ftype</span><span class="method-args">(*args)</span>
|
3144
3155
|
</a>
|
3145
3156
|
</div>
|
@@ -3157,12 +3168,12 @@ Identifies the type of the named file; the return string is one of
|
|
3157
3168
|
</div>
|
3158
3169
|
</div>
|
3159
3170
|
|
3160
|
-
<div id="method-
|
3161
|
-
<a name="
|
3171
|
+
<div id="method-M000052" class="method-detail">
|
3172
|
+
<a name="M000052"></a>
|
3162
3173
|
|
3163
3174
|
<div class="method-heading">
|
3164
|
-
<a href="Rio.src/
|
3165
|
-
onclick="popupCode('Rio.src/
|
3175
|
+
<a href="Rio.src/M000052.html" target="Code" class="method-signature"
|
3176
|
+
onclick="popupCode('Rio.src/M000052.html');return false;">
|
3166
3177
|
<span class="method-name">getrec</span><span class="method-args">()</span>
|
3167
3178
|
</a>
|
3168
3179
|
</div>
|
@@ -3176,9 +3187,9 @@ honoring the grande selection methods.
|
|
3176
3187
|
Returns nil on end of file.
|
3177
3188
|
</p>
|
3178
3189
|
<p>
|
3179
|
-
See also <a href="Rio.html#
|
3180
|
-
href="Rio.html#
|
3181
|
-
href="Rio.html#
|
3190
|
+
See also <a href="Rio.html#M000057">Rio#records</a>, <a
|
3191
|
+
href="Rio.html#M000055">Rio#lines</a>, <a
|
3192
|
+
href="Rio.html#M000045">Rio#each</a>, <a href="Rio.html">Rio</a>#[]
|
3182
3193
|
</p>
|
3183
3194
|
<pre>
|
3184
3195
|
ario = rio('afile').lines(10..12)
|
@@ -3190,12 +3201,12 @@ href="Rio.html#M000046">Rio#each</a>, <a href="Rio.html">Rio</a>#[]
|
|
3190
3201
|
</div>
|
3191
3202
|
</div>
|
3192
3203
|
|
3193
|
-
<div id="method-
|
3194
|
-
<a name="
|
3204
|
+
<div id="method-M000114" class="method-detail">
|
3205
|
+
<a name="M000114"></a>
|
3195
3206
|
|
3196
3207
|
<div class="method-heading">
|
3197
|
-
<a href="Rio.src/
|
3198
|
-
onclick="popupCode('Rio.src/
|
3208
|
+
<a href="Rio.src/M000114.html" target="Code" class="method-signature"
|
3209
|
+
onclick="popupCode('Rio.src/M000114.html');return false;">
|
3199
3210
|
<span class="method-name">gets</span><span class="method-args">(sep_string=$/)</span>
|
3200
3211
|
</a>
|
3201
3212
|
</div>
|
@@ -3219,12 +3230,12 @@ Returns nil if called at end of file.
|
|
3219
3230
|
</div>
|
3220
3231
|
</div>
|
3221
3232
|
|
3222
|
-
<div id="method-
|
3223
|
-
<a name="
|
3233
|
+
<div id="method-M000028" class="method-detail">
|
3234
|
+
<a name="M000028"></a>
|
3224
3235
|
|
3225
3236
|
<div class="method-heading">
|
3226
|
-
<a href="Rio.src/
|
3227
|
-
onclick="popupCode('Rio.src/
|
3237
|
+
<a href="Rio.src/M000028.html" target="Code" class="method-signature"
|
3238
|
+
onclick="popupCode('Rio.src/M000028.html');return false;">
|
3228
3239
|
<span class="method-name">glob</span><span class="method-args">(string,*args,&block)</span>
|
3229
3240
|
</a>
|
3230
3241
|
</div>
|
@@ -3243,12 +3254,12 @@ for details of file name matching and the meaning of the flags parameter.
|
|
3243
3254
|
</div>
|
3244
3255
|
</div>
|
3245
3256
|
|
3246
|
-
<div id="method-
|
3247
|
-
<a name="
|
3257
|
+
<div id="method-M000174" class="method-detail">
|
3258
|
+
<a name="M000174"></a>
|
3248
3259
|
|
3249
3260
|
<div class="method-heading">
|
3250
|
-
<a href="Rio.src/
|
3251
|
-
onclick="popupCode('Rio.src/
|
3261
|
+
<a href="Rio.src/M000174.html" target="Code" class="method-signature"
|
3262
|
+
onclick="popupCode('Rio.src/M000174.html');return false;">
|
3252
3263
|
<span class="method-name">grpowned?</span><span class="method-args">(*args)</span>
|
3253
3264
|
</a>
|
3254
3265
|
</div>
|
@@ -3282,17 +3293,26 @@ Windows.
|
|
3282
3293
|
<p>
|
3283
3294
|
Create a new <a href="Rio.html">Rio</a> referencing the result of applying
|
3284
3295
|
String#gsub to the value returned by <a
|
3285
|
-
href="Rio.html#M000008">Rio#to_s</a
|
3296
|
+
href="Rio.html#M000008">Rio#to_s</a>. So:
|
3297
|
+
</p>
|
3298
|
+
<pre>
|
3299
|
+
ario.gsub(re,string)
|
3300
|
+
</pre>
|
3301
|
+
<p>
|
3302
|
+
is equivelent to
|
3286
3303
|
</p>
|
3304
|
+
<pre>
|
3305
|
+
rio(ario.to_s.gsub(re,string))
|
3306
|
+
</pre>
|
3287
3307
|
</div>
|
3288
3308
|
</div>
|
3289
3309
|
|
3290
|
-
<div id="method-
|
3291
|
-
<a name="
|
3310
|
+
<div id="method-M000076" class="method-detail">
|
3311
|
+
<a name="M000076"></a>
|
3292
3312
|
|
3293
3313
|
<div class="method-heading">
|
3294
|
-
<a href="Rio.src/
|
3295
|
-
onclick="popupCode('Rio.src/
|
3314
|
+
<a href="Rio.src/M000076.html" target="Code" class="method-signature"
|
3315
|
+
onclick="popupCode('Rio.src/M000076.html');return false;">
|
3296
3316
|
<span class="method-name">gzip</span><span class="method-args">(&block)</span>
|
3297
3317
|
</a>
|
3298
3318
|
</div>
|
@@ -3329,12 +3349,12 @@ If a block is given, acts like <tt>ario.gzip.each(&block)</tt>
|
|
3329
3349
|
</div>
|
3330
3350
|
</div>
|
3331
3351
|
|
3332
|
-
<div id="method-
|
3333
|
-
<a name="
|
3352
|
+
<div id="method-M000077" class="method-detail">
|
3353
|
+
<a name="M000077"></a>
|
3334
3354
|
|
3335
3355
|
<div class="method-heading">
|
3336
|
-
<a href="Rio.src/
|
3337
|
-
onclick="popupCode('Rio.src/
|
3356
|
+
<a href="Rio.src/M000077.html" target="Code" class="method-signature"
|
3357
|
+
onclick="popupCode('Rio.src/M000077.html');return false;">
|
3338
3358
|
<span class="method-name">gzip?</span><span class="method-args">()</span>
|
3339
3359
|
</a>
|
3340
3360
|
</div>
|
@@ -3347,17 +3367,17 @@ Queries the <a href="Rio.html">Rio</a>’s gzip-mode
|
|
3347
3367
|
ario.gzip? #=> true or false
|
3348
3368
|
</pre>
|
3349
3369
|
<p>
|
3350
|
-
See <a href="Rio.html#
|
3370
|
+
See <a href="Rio.html#M000076">Rio#gzip</a>
|
3351
3371
|
</p>
|
3352
3372
|
</div>
|
3353
3373
|
</div>
|
3354
3374
|
|
3355
|
-
<div id="method-
|
3356
|
-
<a name="
|
3375
|
+
<div id="method-M000014" class="method-detail">
|
3376
|
+
<a name="M000014"></a>
|
3357
3377
|
|
3358
3378
|
<div class="method-heading">
|
3359
|
-
<a href="Rio.src/
|
3360
|
-
onclick="popupCode('Rio.src/
|
3379
|
+
<a href="Rio.src/M000014.html" target="Code" class="method-signature"
|
3380
|
+
onclick="popupCode('Rio.src/M000014.html');return false;">
|
3361
3381
|
<span class="method-name">hash</span><span class="method-args">()</span>
|
3362
3382
|
</a>
|
3363
3383
|
</div>
|
@@ -3369,22 +3389,22 @@ Rios are hashed based on their String representation
|
|
3369
3389
|
</div>
|
3370
3390
|
</div>
|
3371
3391
|
|
3372
|
-
<div id="method-
|
3373
|
-
<a name="
|
3392
|
+
<div id="method-M000109" class="method-detail">
|
3393
|
+
<a name="M000109"></a>
|
3374
3394
|
|
3375
3395
|
<div class="method-heading">
|
3376
|
-
<a href="Rio.src/
|
3377
|
-
onclick="popupCode('Rio.src/
|
3396
|
+
<a href="Rio.src/M000109.html" target="Code" class="method-signature"
|
3397
|
+
onclick="popupCode('Rio.src/M000109.html');return false;">
|
3378
3398
|
<span class="method-name">host</span><span class="method-args">(*args)</span>
|
3379
3399
|
</a>
|
3380
3400
|
</div>
|
3381
3401
|
|
3382
3402
|
<div class="method-description">
|
3383
3403
|
<p>
|
3384
|
-
|
3404
|
+
Calls URI#host for Rios which have a URI. Otherwise raises NoMethodError.
|
3385
3405
|
</p>
|
3386
3406
|
<pre>
|
3387
|
-
rio('http://ruby-doc.org/') #=> 'ruby-doc'
|
3407
|
+
rio('http://ruby-doc.org/').host #=> 'ruby-doc'
|
3388
3408
|
</pre>
|
3389
3409
|
</div>
|
3390
3410
|
</div>
|
@@ -3417,12 +3437,12 @@ Proxy for URI#host
|
|
3417
3437
|
</div>
|
3418
3438
|
</div>
|
3419
3439
|
|
3420
|
-
<div id="method-
|
3421
|
-
<a name="
|
3440
|
+
<div id="method-M000143" class="method-detail">
|
3441
|
+
<a name="M000143"></a>
|
3422
3442
|
|
3423
3443
|
<div class="method-heading">
|
3424
|
-
<a href="Rio.src/
|
3425
|
-
onclick="popupCode('Rio.src/
|
3444
|
+
<a href="Rio.src/M000143.html" target="Code" class="method-signature"
|
3445
|
+
onclick="popupCode('Rio.src/M000143.html');return false;">
|
3426
3446
|
<span class="method-name">ioctl</span><span class="method-args">(integer_cmd,arg)</span>
|
3427
3447
|
</a>
|
3428
3448
|
</div>
|
@@ -3444,12 +3464,12 @@ details. Not implemented on all platforms.
|
|
3444
3464
|
</div>
|
3445
3465
|
</div>
|
3446
3466
|
|
3447
|
-
<div id="method-
|
3448
|
-
<a name="
|
3467
|
+
<div id="method-M000137" class="method-detail">
|
3468
|
+
<a name="M000137"></a>
|
3449
3469
|
|
3450
3470
|
<div class="method-heading">
|
3451
|
-
<a href="Rio.src/
|
3452
|
-
onclick="popupCode('Rio.src/
|
3471
|
+
<a href="Rio.src/M000137.html" target="Code" class="method-signature"
|
3472
|
+
onclick="popupCode('Rio.src/M000137.html');return false;">
|
3453
3473
|
<span class="method-name">ioh</span><span class="method-args">(*args)</span>
|
3454
3474
|
</a>
|
3455
3475
|
</div>
|
@@ -3458,22 +3478,22 @@ details. Not implemented on all platforms.
|
|
3458
3478
|
<p>
|
3459
3479
|
Provides direct access to the IO handle (as would be returned by ::IO#new)
|
3460
3480
|
<b>with</b> filtering. Reading from and writing to this handle will be
|
3461
|
-
affected by such things as <a href="Rio.html#
|
3462
|
-
href="Rio.html#
|
3481
|
+
affected by such things as <a href="Rio.html#M000076">Rio#gzip</a> and <a
|
3482
|
+
href="Rio.html#M000075">Rio#chomp</a> if they were specified for the <a
|
3463
3483
|
href="Rio.html">Rio</a>.
|
3464
3484
|
</p>
|
3465
3485
|
<p>
|
3466
|
-
Compare this with <a href="Rio.html#
|
3486
|
+
Compare this with <a href="Rio.html#M000138">Rio#ios</a>
|
3467
3487
|
</p>
|
3468
3488
|
</div>
|
3469
3489
|
</div>
|
3470
3490
|
|
3471
|
-
<div id="method-
|
3472
|
-
<a name="
|
3491
|
+
<div id="method-M000138" class="method-detail">
|
3492
|
+
<a name="M000138"></a>
|
3473
3493
|
|
3474
3494
|
<div class="method-heading">
|
3475
|
-
<a href="Rio.src/
|
3476
|
-
onclick="popupCode('Rio.src/
|
3495
|
+
<a href="Rio.src/M000138.html" target="Code" class="method-signature"
|
3496
|
+
onclick="popupCode('Rio.src/M000138.html');return false;">
|
3477
3497
|
<span class="method-name">ios</span><span class="method-args">(*args)</span>
|
3478
3498
|
</a>
|
3479
3499
|
</div>
|
@@ -3482,11 +3502,11 @@ Compare this with <a href="Rio.html#M000139">Rio#ios</a>
|
|
3482
3502
|
<p>
|
3483
3503
|
Provides direct access to the IO handle (as would be returned by ::IO#new)
|
3484
3504
|
Reading from and writing to this handle is <b>not</b> affected by such
|
3485
|
-
things as <a href="Rio.html#
|
3486
|
-
href="Rio.html#
|
3505
|
+
things as <a href="Rio.html#M000076">Rio#gzip</a> and <a
|
3506
|
+
href="Rio.html#M000075">Rio#chomp</a>.
|
3487
3507
|
</p>
|
3488
3508
|
<p>
|
3489
|
-
Compare this with <a href="Rio.html#
|
3509
|
+
Compare this with <a href="Rio.html#M000137">Rio#ioh</a>
|
3490
3510
|
</p>
|
3491
3511
|
</div>
|
3492
3512
|
</div>
|
@@ -3538,12 +3558,12 @@ directory components like <a href="Rio.html#M000100">Rio#join</a>,
|
|
3538
3558
|
</div>
|
3539
3559
|
</div>
|
3540
3560
|
|
3541
|
-
<div id="method-
|
3542
|
-
<a name="
|
3561
|
+
<div id="method-M000011" class="method-detail">
|
3562
|
+
<a name="M000011"></a>
|
3543
3563
|
|
3544
3564
|
<div class="method-heading">
|
3545
|
-
<a href="Rio.src/
|
3546
|
-
onclick="popupCode('Rio.src/
|
3565
|
+
<a href="Rio.src/M000011.html" target="Code" class="method-signature"
|
3566
|
+
onclick="popupCode('Rio.src/M000011.html');return false;">
|
3547
3567
|
<span class="method-name">length</span><span class="method-args">()</span>
|
3548
3568
|
</a>
|
3549
3569
|
</div>
|
@@ -3555,17 +3575,17 @@ representation
|
|
3555
3575
|
</p>
|
3556
3576
|
<p>
|
3557
3577
|
To get the size of the underlying file system object use <a
|
3558
|
-
href="Rio.html#
|
3578
|
+
href="Rio.html#M000177">Rio#size</a>
|
3559
3579
|
</p>
|
3560
3580
|
</div>
|
3561
3581
|
</div>
|
3562
3582
|
|
3563
|
-
<div id="method-
|
3564
|
-
<a name="
|
3583
|
+
<div id="method-M000117" class="method-detail">
|
3584
|
+
<a name="M000117"></a>
|
3565
3585
|
|
3566
3586
|
<div class="method-heading">
|
3567
|
-
<a href="Rio.src/
|
3568
|
-
onclick="popupCode('Rio.src/
|
3587
|
+
<a href="Rio.src/M000117.html" target="Code" class="method-signature"
|
3588
|
+
onclick="popupCode('Rio.src/M000117.html');return false;">
|
3569
3589
|
<span class="method-name">lineno</span><span class="method-args">()</span>
|
3570
3590
|
</a>
|
3571
3591
|
</div>
|
@@ -3582,12 +3602,12 @@ The <a href="Rio.html">Rio</a> will be opened for reading if not already.
|
|
3582
3602
|
lineno counts the number of times gets is called, rather than the number of
|
3583
3603
|
newlines encountered — so lineno will only be accurate if the file is
|
3584
3604
|
read exclusively with line-oriented methods (<a
|
3585
|
-
href="Rio.html#
|
3586
|
-
href="Rio.html#
|
3587
|
-
href="Rio.html#
|
3605
|
+
href="Rio.html#M000125">Rio#readline</a>, <a
|
3606
|
+
href="Rio.html#M000123">Rio#each_line</a>, <a
|
3607
|
+
href="Rio.html#M000114">Rio#gets</a> etc.)
|
3588
3608
|
</p>
|
3589
3609
|
<p>
|
3590
|
-
See also the $. variable and <a href="Rio.html#
|
3610
|
+
See also the $. variable and <a href="Rio.html#M000119">Rio#recno</a>
|
3591
3611
|
</p>
|
3592
3612
|
<pre>
|
3593
3613
|
f = rio("testfile")
|
@@ -3600,12 +3620,12 @@ See also the $. variable and <a href="Rio.html#M000120">Rio#recno</a>
|
|
3600
3620
|
</div>
|
3601
3621
|
</div>
|
3602
3622
|
|
3603
|
-
<div id="method-
|
3604
|
-
<a name="
|
3623
|
+
<div id="method-M000118" class="method-detail">
|
3624
|
+
<a name="M000118"></a>
|
3605
3625
|
|
3606
3626
|
<div class="method-heading">
|
3607
|
-
<a href="Rio.src/
|
3608
|
-
onclick="popupCode('Rio.src/
|
3627
|
+
<a href="Rio.src/M000118.html" target="Code" class="method-signature"
|
3628
|
+
onclick="popupCode('Rio.src/M000118.html');return false;">
|
3609
3629
|
<span class="method-name">lineno=</span><span class="method-args">(integer)</span>
|
3610
3630
|
</a>
|
3611
3631
|
</div>
|
@@ -3630,12 +3650,12 @@ read #=> 1001
|
|
3630
3650
|
</div>
|
3631
3651
|
</div>
|
3632
3652
|
|
3633
|
-
<div id="method-
|
3634
|
-
<a name="
|
3653
|
+
<div id="method-M000055" class="method-detail">
|
3654
|
+
<a name="M000055"></a>
|
3635
3655
|
|
3636
3656
|
<div class="method-heading">
|
3637
|
-
<a href="Rio.src/
|
3638
|
-
onclick="popupCode('Rio.src/
|
3657
|
+
<a href="Rio.src/M000055.html" target="Code" class="method-signature"
|
3658
|
+
onclick="popupCode('Rio.src/M000055.html');return false;">
|
3639
3659
|
<span class="method-name">lines</span><span class="method-args">(*args,&block)</span>
|
3640
3660
|
</a>
|
3641
3661
|
</div>
|
@@ -3682,12 +3702,12 @@ unless nil or false is returned
|
|
3682
3702
|
</div>
|
3683
3703
|
</div>
|
3684
3704
|
|
3685
|
-
<div id="method-
|
3686
|
-
<a name="
|
3705
|
+
<div id="method-M000161" class="method-detail">
|
3706
|
+
<a name="M000161"></a>
|
3687
3707
|
|
3688
3708
|
<div class="method-heading">
|
3689
|
-
<a href="Rio.src/
|
3690
|
-
onclick="popupCode('Rio.src/
|
3709
|
+
<a href="Rio.src/M000161.html" target="Code" class="method-signature"
|
3710
|
+
onclick="popupCode('Rio.src/M000161.html');return false;">
|
3691
3711
|
<span class="method-name">lstat</span><span class="method-args">(*args)</span>
|
3692
3712
|
</a>
|
3693
3713
|
</div>
|
@@ -3699,34 +3719,34 @@ Calls File#lstat
|
|
3699
3719
|
</div>
|
3700
3720
|
</div>
|
3701
3721
|
|
3702
|
-
<div id="method-
|
3703
|
-
<a name="
|
3722
|
+
<div id="method-M000111" class="method-detail">
|
3723
|
+
<a name="M000111"></a>
|
3704
3724
|
|
3705
3725
|
<div class="method-heading">
|
3706
|
-
<a href="Rio.src/
|
3707
|
-
onclick="popupCode('Rio.src/
|
3726
|
+
<a href="Rio.src/M000111.html" target="Code" class="method-signature"
|
3727
|
+
onclick="popupCode('Rio.src/M000111.html');return false;">
|
3708
3728
|
<span class="method-name">merge</span><span class="method-args">(other)</span>
|
3709
3729
|
</a>
|
3710
3730
|
</div>
|
3711
3731
|
|
3712
3732
|
<div class="method-description">
|
3713
3733
|
<p>
|
3714
|
-
|
3734
|
+
Calls URI#merge
|
3715
3735
|
</p>
|
3716
3736
|
<p>
|
3717
|
-
Merges
|
3737
|
+
Merges two Rios. URI#merge does not document exactly what merging to URIs
|
3718
3738
|
means. This appears to join the the paths with like <tt>other + path</tt>.
|
3719
3739
|
See URI#merge for less information.
|
3720
3740
|
</p>
|
3721
3741
|
</div>
|
3722
3742
|
</div>
|
3723
3743
|
|
3724
|
-
<div id="method-
|
3725
|
-
<a name="
|
3744
|
+
<div id="method-M000032" class="method-detail">
|
3745
|
+
<a name="M000032"></a>
|
3726
3746
|
|
3727
3747
|
<div class="method-heading">
|
3728
|
-
<a href="Rio.src/
|
3729
|
-
onclick="popupCode('Rio.src/
|
3748
|
+
<a href="Rio.src/M000032.html" target="Code" class="method-signature"
|
3749
|
+
onclick="popupCode('Rio.src/M000032.html');return false;">
|
3730
3750
|
<span class="method-name">mkdir</span><span class="method-args">(*args,&block)</span>
|
3731
3751
|
</a>
|
3732
3752
|
</div>
|
@@ -3750,12 +3770,12 @@ just returns the <a href="Rio.html">Rio</a>.
|
|
3750
3770
|
</div>
|
3751
3771
|
</div>
|
3752
3772
|
|
3753
|
-
<div id="method-
|
3754
|
-
<a name="
|
3773
|
+
<div id="method-M000031" class="method-detail">
|
3774
|
+
<a name="M000031"></a>
|
3755
3775
|
|
3756
3776
|
<div class="method-heading">
|
3757
|
-
<a href="Rio.src/
|
3758
|
-
onclick="popupCode('Rio.src/
|
3777
|
+
<a href="Rio.src/M000031.html" target="Code" class="method-signature"
|
3778
|
+
onclick="popupCode('Rio.src/M000031.html');return false;">
|
3759
3779
|
<span class="method-name">mkpath</span><span class="method-args">(&block)</span>
|
3760
3780
|
</a>
|
3761
3781
|
</div>
|
@@ -3778,12 +3798,12 @@ just returns the <a href="Rio.html">Rio</a>.
|
|
3778
3798
|
</div>
|
3779
3799
|
</div>
|
3780
3800
|
|
3781
|
-
<div id="method-
|
3782
|
-
<a name="
|
3801
|
+
<div id="method-M000139" class="method-detail">
|
3802
|
+
<a name="M000139"></a>
|
3783
3803
|
|
3784
3804
|
<div class="method-heading">
|
3785
|
-
<a href="Rio.src/
|
3786
|
-
onclick="popupCode('Rio.src/
|
3805
|
+
<a href="Rio.src/M000139.html" target="Code" class="method-signature"
|
3806
|
+
onclick="popupCode('Rio.src/M000139.html');return false;">
|
3787
3807
|
<span class="method-name">mode</span><span class="method-args">(m,*args)</span>
|
3788
3808
|
</a>
|
3789
3809
|
</div>
|
@@ -3800,19 +3820,19 @@ opened.
|
|
3800
3820
|
Normally one needs never open a <a href="Rio.html">Rio</a> or specify its
|
3801
3821
|
mode — the mode is determined by the operation the <a
|
3802
3822
|
href="Rio.html">Rio</a> is asked to perform. (i.e. <a
|
3803
|
-
href="Rio.html#
|
3804
|
-
href="Rio.html#
|
3823
|
+
href="Rio.html#M000126">Rio#print</a> requires write access, <a
|
3824
|
+
href="Rio.html#M000124">Rio#readlines</a> requires read access). However
|
3805
3825
|
there are times when one wishes to be specific about the mode with which a
|
3806
3826
|
<a href="Rio.html">Rio</a> will be opened. Note that explicitly setting the
|
3807
3827
|
mode overrides all of <a href="Rio.html">Rio</a>’s internal mode
|
3808
|
-
logic. If a mode is specified via <a href="Rio.html#
|
3828
|
+
logic. If a mode is specified via <a href="Rio.html#M000139">Rio#mode</a>
|
3809
3829
|
or <a href="Rio.html#M000007">Rio#open</a> that mode will be used. Period.
|
3810
3830
|
</p>
|
3811
3831
|
<p>
|
3812
3832
|
Returns the <a href="Rio.html">Rio</a>.
|
3813
3833
|
</p>
|
3814
3834
|
<p>
|
3815
|
-
See also <a href="Rio.html#
|
3835
|
+
See also <a href="Rio.html#M000139">Rio#mode</a>?
|
3816
3836
|
</p>
|
3817
3837
|
<p>
|
3818
3838
|
If the mode is given as a String, it must be one of the values listed in
|
@@ -3858,12 +3878,12 @@ TODO:
|
|
3858
3878
|
</div>
|
3859
3879
|
</div>
|
3860
3880
|
|
3861
|
-
<div id="method-
|
3862
|
-
<a name="
|
3881
|
+
<div id="method-M000140" class="method-detail">
|
3882
|
+
<a name="M000140"></a>
|
3863
3883
|
|
3864
3884
|
<div class="method-heading">
|
3865
|
-
<a href="Rio.src/
|
3866
|
-
onclick="popupCode('Rio.src/
|
3885
|
+
<a href="Rio.src/M000140.html" target="Code" class="method-signature"
|
3886
|
+
onclick="popupCode('Rio.src/M000140.html');return false;">
|
3867
3887
|
<span class="method-name">mode?</span><span class="method-args">()</span>
|
3868
3888
|
</a>
|
3869
3889
|
</div>
|
@@ -3876,7 +3896,7 @@ Query a <a href="Rio.html">Rio</a>’s mode
|
|
3876
3896
|
ario.mode? #=> a mode string
|
3877
3897
|
</pre>
|
3878
3898
|
<p>
|
3879
|
-
See <a href="Rio.html#
|
3899
|
+
See <a href="Rio.html#M000139">Rio#mode</a>
|
3880
3900
|
</p>
|
3881
3901
|
<pre>
|
3882
3902
|
ario = rio('afile')
|
@@ -3894,12 +3914,12 @@ See <a href="Rio.html#M000140">Rio#mode</a>
|
|
3894
3914
|
</div>
|
3895
3915
|
</div>
|
3896
3916
|
|
3897
|
-
<div id="method-
|
3898
|
-
<a name="
|
3917
|
+
<div id="method-M000165" class="method-detail">
|
3918
|
+
<a name="M000165"></a>
|
3899
3919
|
|
3900
3920
|
<div class="method-heading">
|
3901
|
-
<a href="Rio.src/
|
3902
|
-
onclick="popupCode('Rio.src/
|
3921
|
+
<a href="Rio.src/M000165.html" target="Code" class="method-signature"
|
3922
|
+
onclick="popupCode('Rio.src/M000165.html');return false;">
|
3903
3923
|
<span class="method-name">mtime</span><span class="method-args">(*args)</span>
|
3904
3924
|
</a>
|
3905
3925
|
</div>
|
@@ -3915,12 +3935,12 @@ file system objects
|
|
3915
3935
|
</div>
|
3916
3936
|
</div>
|
3917
3937
|
|
3918
|
-
<div id="method-
|
3919
|
-
<a name="
|
3938
|
+
<div id="method-M000072" class="method-detail">
|
3939
|
+
<a name="M000072"></a>
|
3920
3940
|
|
3921
3941
|
<div class="method-heading">
|
3922
|
-
<a href="Rio.src/
|
3923
|
-
onclick="popupCode('Rio.src/
|
3942
|
+
<a href="Rio.src/M000072.html" target="Code" class="method-signature"
|
3943
|
+
onclick="popupCode('Rio.src/M000072.html');return false;">
|
3924
3944
|
<span class="method-name">nocloseoncopy</span><span class="method-args">(arg=false,&block)</span>
|
3925
3945
|
</a>
|
3926
3946
|
</div>
|
@@ -3933,17 +3953,17 @@ Set a <a href="Rio.html">Rio</a>’s closeoncopy mode to false
|
|
3933
3953
|
ario.nocloseoncopy(&block) => ario
|
3934
3954
|
</pre>
|
3935
3955
|
<p>
|
3936
|
-
See <a href="Rio.html#
|
3956
|
+
See <a href="Rio.html#M000071">Rio#closeoncopy</a>
|
3937
3957
|
</p>
|
3938
3958
|
</div>
|
3939
3959
|
</div>
|
3940
3960
|
|
3941
|
-
<div id="method-
|
3942
|
-
<a name="
|
3961
|
+
<div id="method-M000069" class="method-detail">
|
3962
|
+
<a name="M000069"></a>
|
3943
3963
|
|
3944
3964
|
<div class="method-heading">
|
3945
|
-
<a href="Rio.src/
|
3946
|
-
onclick="popupCode('Rio.src/
|
3965
|
+
<a href="Rio.src/M000069.html" target="Code" class="method-signature"
|
3966
|
+
onclick="popupCode('Rio.src/M000069.html');return false;">
|
3947
3967
|
<span class="method-name">nocloseoneof</span><span class="method-args">(arg=false,&block)</span>
|
3948
3968
|
</a>
|
3949
3969
|
</div>
|
@@ -3956,7 +3976,7 @@ Set the <a href="Rio.html">Rio</a>’s closeoneof mode to false
|
|
3956
3976
|
ario.nocloseoneof(&block) => ario
|
3957
3977
|
</pre>
|
3958
3978
|
<p>
|
3959
|
-
See <a href="Rio.html#
|
3979
|
+
See <a href="Rio.html#M000068">Rio#closeoneof</a>
|
3960
3980
|
</p>
|
3961
3981
|
<p>
|
3962
3982
|
If a block is given behaves like
|
@@ -3980,12 +4000,12 @@ Returns the <a href="Rio.html">Rio</a>
|
|
3980
4000
|
</div>
|
3981
4001
|
</div>
|
3982
4002
|
|
3983
|
-
<div id="method-
|
3984
|
-
<a name="
|
4003
|
+
<div id="method-M000019" class="method-detail">
|
4004
|
+
<a name="M000019"></a>
|
3985
4005
|
|
3986
4006
|
<div class="method-heading">
|
3987
|
-
<a href="Rio.src/
|
3988
|
-
onclick="popupCode('Rio.src/
|
4007
|
+
<a href="Rio.src/M000019.html" target="Code" class="method-signature"
|
4008
|
+
onclick="popupCode('Rio.src/M000019.html');return false;">
|
3989
4009
|
<span class="method-name">nodirs</span><span class="method-args">(*args,&block)</span>
|
3990
4010
|
</a>
|
3991
4011
|
</div>
|
@@ -4004,7 +4024,7 @@ If no args are provided selects anything but directories.
|
|
4004
4024
|
</pre>
|
4005
4025
|
<p>
|
4006
4026
|
If args are provided, sets the rio to select directories as with <a
|
4007
|
-
href="Rio.html#
|
4027
|
+
href="Rio.html#M000018">Rio#dirs</a>, but the arguments are used to
|
4008
4028
|
determine which directories will <b>not</b> be processed
|
4009
4029
|
</p>
|
4010
4030
|
<p>
|
@@ -4014,7 +4034,7 @@ If a block is given behaves like
|
|
4014
4034
|
ario.nodirs(*args).each(&block)
|
4015
4035
|
</pre>
|
4016
4036
|
<p>
|
4017
|
-
See <a href="Rio.html#
|
4037
|
+
See <a href="Rio.html#M000018">Rio#dirs</a>
|
4018
4038
|
</p>
|
4019
4039
|
<pre>
|
4020
4040
|
rio('adir').nodirs { |ent| ... } # iterate through everything except directories
|
@@ -4045,12 +4065,12 @@ href="Rio.html#M000089">Rio#ext</a>
|
|
4045
4065
|
</div>
|
4046
4066
|
</div>
|
4047
4067
|
|
4048
|
-
<div id="method-
|
4049
|
-
<a name="
|
4068
|
+
<div id="method-M000022" class="method-detail">
|
4069
|
+
<a name="M000022"></a>
|
4050
4070
|
|
4051
4071
|
<div class="method-heading">
|
4052
|
-
<a href="Rio.src/
|
4053
|
-
onclick="popupCode('Rio.src/
|
4072
|
+
<a href="Rio.src/M000022.html" target="Code" class="method-signature"
|
4073
|
+
onclick="popupCode('Rio.src/M000022.html');return false;">
|
4054
4074
|
<span class="method-name">nofiles</span><span class="method-args">(*args,&block)</span>
|
4055
4075
|
</a>
|
4056
4076
|
</div>
|
@@ -4069,7 +4089,7 @@ If no args are provided selects anything but files.
|
|
4069
4089
|
</pre>
|
4070
4090
|
<p>
|
4071
4091
|
If args are provided, sets the rio to select files as with <a
|
4072
|
-
href="Rio.html#
|
4092
|
+
href="Rio.html#M000021">Rio#files</a>, but the arguments are used to
|
4073
4093
|
determine which files will <b>not</b> be processed
|
4074
4094
|
</p>
|
4075
4095
|
<p>
|
@@ -4077,7 +4097,7 @@ If a block is given behaves like
|
|
4077
4097
|
<tt>ario.nofiles(*args).each(&block)</tt>
|
4078
4098
|
</p>
|
4079
4099
|
<p>
|
4080
|
-
See <a href="Rio.html#
|
4100
|
+
See <a href="Rio.html#M000021">Rio#files</a>
|
4081
4101
|
</p>
|
4082
4102
|
<pre>
|
4083
4103
|
rio('adir').nofiles { |ent| ... } # iterate through everything except files
|
@@ -4086,12 +4106,12 @@ See <a href="Rio.html#M000022">Rio#files</a>
|
|
4086
4106
|
</div>
|
4087
4107
|
</div>
|
4088
4108
|
|
4089
|
-
<div id="method-
|
4090
|
-
<a name="
|
4109
|
+
<div id="method-M000059" class="method-detail">
|
4110
|
+
<a name="M000059"></a>
|
4091
4111
|
|
4092
4112
|
<div class="method-heading">
|
4093
|
-
<a href="Rio.src/
|
4094
|
-
onclick="popupCode('Rio.src/
|
4113
|
+
<a href="Rio.src/M000059.html" target="Code" class="method-signature"
|
4114
|
+
onclick="popupCode('Rio.src/M000059.html');return false;">
|
4095
4115
|
<span class="method-name">nolines</span><span class="method-args">(*args,&block)</span>
|
4096
4116
|
</a>
|
4097
4117
|
</div>
|
@@ -4100,8 +4120,8 @@ See <a href="Rio.html#M000022">Rio#files</a>
|
|
4100
4120
|
<p>
|
4101
4121
|
Sets the <a href="Rio.html">Rio</a> to read lines and specifies lines which
|
4102
4122
|
should <b>not</b> be iterated through by <a
|
4103
|
-
href="Rio.html#
|
4104
|
-
href="Rio.html#
|
4123
|
+
href="Rio.html#M000045">Rio#each</a> or returned by <a
|
4124
|
+
href="Rio.html#M000052">Rio#getrec</a>
|
4105
4125
|
</p>
|
4106
4126
|
<p>
|
4107
4127
|
If called with a block behaves as if
|
@@ -4111,8 +4131,8 @@ If called with a block behaves as if
|
|
4111
4131
|
Returns the <a href="Rio.html">Rio</a>
|
4112
4132
|
</p>
|
4113
4133
|
<p>
|
4114
|
-
See also <a href="Rio.html#
|
4115
|
-
href="Rio.html#
|
4134
|
+
See also <a href="Rio.html#M000055">Rio#lines</a>, <a
|
4135
|
+
href="Rio.html#M000057">Rio#records</a>
|
4116
4136
|
</p>
|
4117
4137
|
<p>
|
4118
4138
|
If no args are provided, no lines are rejected.
|
@@ -4148,12 +4168,12 @@ nil or false is returned
|
|
4148
4168
|
</div>
|
4149
4169
|
</div>
|
4150
4170
|
|
4151
|
-
<div id="method-
|
4152
|
-
<a name="
|
4171
|
+
<div id="method-M000058" class="method-detail">
|
4172
|
+
<a name="M000058"></a>
|
4153
4173
|
|
4154
4174
|
<div class="method-heading">
|
4155
|
-
<a href="Rio.src/
|
4156
|
-
onclick="popupCode('Rio.src/
|
4175
|
+
<a href="Rio.src/M000058.html" target="Code" class="method-signature"
|
4176
|
+
onclick="popupCode('Rio.src/M000058.html');return false;">
|
4157
4177
|
<span class="method-name">norecords</span><span class="method-args">(*args,&block)</span>
|
4158
4178
|
</a>
|
4159
4179
|
</div>
|
@@ -4161,8 +4181,8 @@ nil or false is returned
|
|
4161
4181
|
<div class="method-description">
|
4162
4182
|
<p>
|
4163
4183
|
Specifies records which should <b>not</b> be iterated through by <a
|
4164
|
-
href="Rio.html#
|
4165
|
-
href="Rio.html#
|
4184
|
+
href="Rio.html#M000045">Rio#each</a> or returned by <a
|
4185
|
+
href="Rio.html#M000052">Rio#getrec</a>
|
4166
4186
|
</p>
|
4167
4187
|
<p>
|
4168
4188
|
If called with a block behaves as if norecords(*args).each(&block) had
|
@@ -4172,14 +4192,14 @@ been called
|
|
4172
4192
|
Returns the <a href="Rio.html">Rio</a>
|
4173
4193
|
</p>
|
4174
4194
|
<p>
|
4175
|
-
See also <a href="Rio.html#
|
4176
|
-
href="Rio.html#
|
4177
|
-
href="Rio.html#
|
4195
|
+
See also <a href="Rio.html#M000057">Rio#records</a>, <a
|
4196
|
+
href="Rio.html#M000059">Rio#nolines</a>, <a
|
4197
|
+
href="Rio.html#M000055">Rio#lines</a>
|
4178
4198
|
</p>
|
4179
4199
|
<p>
|
4180
4200
|
If no args are provided, no records are rejected. What constitutes a record
|
4181
|
-
is affected by <a href="Rio.html#
|
4182
|
-
href="Rio.html#
|
4201
|
+
is affected by <a href="Rio.html#M000055">Rio#lines</a>,<a
|
4202
|
+
href="Rio.html#M000056">Rio#bytes</a>, and extensions such as Rio#csv.
|
4183
4203
|
</p>
|
4184
4204
|
<p>
|
4185
4205
|
If args are provided they may be one or more of the following:
|
@@ -4217,12 +4237,12 @@ record type <tt>ario.norecords(*args)</tt> is effectively the same as
|
|
4217
4237
|
</div>
|
4218
4238
|
</div>
|
4219
4239
|
|
4220
|
-
<div id="method-
|
4221
|
-
<a name="
|
4240
|
+
<div id="method-M000026" class="method-detail">
|
4241
|
+
<a name="M000026"></a>
|
4222
4242
|
|
4223
4243
|
<div class="method-heading">
|
4224
|
-
<a href="Rio.src/
|
4225
|
-
onclick="popupCode('Rio.src/
|
4244
|
+
<a href="Rio.src/M000026.html" target="Code" class="method-signature"
|
4245
|
+
onclick="popupCode('Rio.src/M000026.html');return false;">
|
4226
4246
|
<span class="method-name">norecurse</span><span class="method-args">(*args,&block)</span>
|
4227
4247
|
</a>
|
4228
4248
|
</div>
|
@@ -4233,9 +4253,9 @@ Grande Directory Recursion Exclude Method
|
|
4233
4253
|
</p>
|
4234
4254
|
<p>
|
4235
4255
|
Sets the <a href="Rio.html">Rio</a> to recurse into directories like <a
|
4236
|
-
href="Rio.html#
|
4256
|
+
href="Rio.html#M000024">Rio#all</a>. If no args are provided, no
|
4237
4257
|
directories will be recursed into. If args are provided, behaves like <a
|
4238
|
-
href="Rio.html#
|
4258
|
+
href="Rio.html#M000025">Rio#recurse</a>, except that mathcing will
|
4239
4259
|
<b>not</b> be recursed into
|
4240
4260
|
</p>
|
4241
4261
|
<pre>
|
@@ -4244,12 +4264,12 @@ href="Rio.html#M000026">Rio#recurse</a>, except that mathcing will
|
|
4244
4264
|
</div>
|
4245
4265
|
</div>
|
4246
4266
|
|
4247
|
-
<div id="method-
|
4248
|
-
<a name="
|
4267
|
+
<div id="method-M000061" class="method-detail">
|
4268
|
+
<a name="M000061"></a>
|
4249
4269
|
|
4250
4270
|
<div class="method-heading">
|
4251
|
-
<a href="Rio.src/
|
4252
|
-
onclick="popupCode('Rio.src/
|
4271
|
+
<a href="Rio.src/M000061.html" target="Code" class="method-signature"
|
4272
|
+
onclick="popupCode('Rio.src/M000061.html');return false;">
|
4253
4273
|
<span class="method-name">norows</span><span class="method-args">(*args,&block)</span>
|
4254
4274
|
</a>
|
4255
4275
|
</div>
|
@@ -4258,21 +4278,21 @@ href="Rio.html#M000026">Rio#recurse</a>, except that mathcing will
|
|
4258
4278
|
<p>
|
4259
4279
|
Sets the <a href="Rio.html">Rio</a> to read rows and specifies lines which
|
4260
4280
|
should <b>not</b> be iterated through by <a
|
4261
|
-
href="Rio.html#
|
4262
|
-
href="Rio.html#
|
4263
|
-
href="Rio.html#
|
4281
|
+
href="Rio.html#M000045">Rio#each</a> or returned by <a
|
4282
|
+
href="Rio.html#M000052">Rio#getrec</a> <a
|
4283
|
+
href="Rio.html#M000061">Rio#norows</a> is intended for use by extensions,
|
4264
4284
|
where the concept of a row is reasonable. In the absensence of an extension
|
4265
|
-
behaves like <a href="Rio.html#
|
4285
|
+
behaves like <a href="Rio.html#M000058">Rio#norecords</a>
|
4266
4286
|
</p>
|
4267
4287
|
</div>
|
4268
4288
|
</div>
|
4269
4289
|
|
4270
|
-
<div id="method-
|
4271
|
-
<a name="
|
4290
|
+
<div id="method-M000079" class="method-detail">
|
4291
|
+
<a name="M000079"></a>
|
4272
4292
|
|
4273
4293
|
<div class="method-heading">
|
4274
|
-
<a href="Rio.src/
|
4275
|
-
onclick="popupCode('Rio.src/
|
4294
|
+
<a href="Rio.src/M000079.html" target="Code" class="method-signature"
|
4295
|
+
onclick="popupCode('Rio.src/M000079.html');return false;">
|
4276
4296
|
<span class="method-name">nosync</span><span class="method-args">(arg=false,&block)</span>
|
4277
4297
|
</a>
|
4278
4298
|
</div>
|
@@ -4289,9 +4309,9 @@ Sets the <a href="Rio.html">Rio</a> so that its ‘sync mode’
|
|
4289
4309
|
will be set to <tt>false</tt> when opened, or set it immediatly if already
|
4290
4310
|
open. When sync mode is true, all output is immediately flushed to the
|
4291
4311
|
underlying operating system and is not buffered internally. Returns the
|
4292
|
-
rio. See also <a href="Rio.html#
|
4293
|
-
href="Rio.html#
|
4294
|
-
href="Rio.html#
|
4312
|
+
rio. See also <a href="Rio.html#M000145">Rio#fsync</a>, <a
|
4313
|
+
href="Rio.html#M000078">Rio#sync</a>, <a
|
4314
|
+
href="Rio.html#M000078">Rio#sync</a>?.
|
4295
4315
|
</p>
|
4296
4316
|
<p>
|
4297
4317
|
If a block is given behaves like <tt>ario.nosync.each(&block)</tt>
|
@@ -4305,19 +4325,28 @@ If a block is given behaves like <tt>ario.nosync.each(&block)</tt>
|
|
4305
4325
|
</div>
|
4306
4326
|
</div>
|
4307
4327
|
|
4308
|
-
<div id="method-
|
4309
|
-
<a name="
|
4328
|
+
<div id="method-M000110" class="method-detail">
|
4329
|
+
<a name="M000110"></a>
|
4310
4330
|
|
4311
4331
|
<div class="method-heading">
|
4312
|
-
<a href="Rio.src/
|
4313
|
-
onclick="popupCode('Rio.src/
|
4332
|
+
<a href="Rio.src/M000110.html" target="Code" class="method-signature"
|
4333
|
+
onclick="popupCode('Rio.src/M000110.html');return false;">
|
4314
4334
|
<span class="method-name">opaque</span><span class="method-args">(*args)</span>
|
4315
4335
|
</a>
|
4316
4336
|
</div>
|
4317
4337
|
|
4318
4338
|
<div class="method-description">
|
4319
4339
|
<p>
|
4320
|
-
|
4340
|
+
Calls URI#opaque for Rios which have URI representations. The opaque
|
4341
|
+
portion of a URI is the portion after the colon and before the
|
4342
|
+
question-mark beginning the query.
|
4343
|
+
</p>
|
4344
|
+
<pre>
|
4345
|
+
rio('http://example.org/do.cgi?n=1').opaque #=> '//example.org/do.cgi'
|
4346
|
+
</pre>
|
4347
|
+
<p>
|
4348
|
+
For Rios that do not have URL representations, returns the same part of <a
|
4349
|
+
href="Rio.html">Rio</a>’s internal psuedo-URL
|
4321
4350
|
</p>
|
4322
4351
|
</div>
|
4323
4352
|
</div>
|
@@ -4336,12 +4365,12 @@ Proxy for URI#opaque
|
|
4336
4365
|
</div>
|
4337
4366
|
</div>
|
4338
4367
|
|
4339
|
-
<div id="method-
|
4340
|
-
<a name="
|
4368
|
+
<div id="method-M000156" class="method-detail">
|
4369
|
+
<a name="M000156"></a>
|
4341
4370
|
|
4342
4371
|
<div class="method-heading">
|
4343
|
-
<a href="Rio.src/
|
4344
|
-
onclick="popupCode('Rio.src/
|
4372
|
+
<a href="Rio.src/M000156.html" target="Code" class="method-signature"
|
4373
|
+
onclick="popupCode('Rio.src/M000156.html');return false;">
|
4345
4374
|
<span class="method-name">open?</span><span class="method-args">()</span>
|
4346
4375
|
</a>
|
4347
4376
|
</div>
|
@@ -4353,12 +4382,12 @@ Returns <tt>true</tt> if a <a href="Rio.html">Rio</a> is not closed?
|
|
4353
4382
|
</div>
|
4354
4383
|
</div>
|
4355
4384
|
|
4356
|
-
<div id="method-
|
4357
|
-
<a name="
|
4385
|
+
<div id="method-M000173" class="method-detail">
|
4386
|
+
<a name="M000173"></a>
|
4358
4387
|
|
4359
4388
|
<div class="method-heading">
|
4360
|
-
<a href="Rio.src/
|
4361
|
-
onclick="popupCode('Rio.src/
|
4389
|
+
<a href="Rio.src/M000173.html" target="Code" class="method-signature"
|
4390
|
+
onclick="popupCode('Rio.src/M000173.html');return false;">
|
4362
4391
|
<span class="method-name">owned?</span><span class="method-args">(*args)</span>
|
4363
4392
|
</a>
|
4364
4393
|
</div>
|
@@ -4377,12 +4406,12 @@ the calling process is the owner of the file.
|
|
4377
4406
|
</div>
|
4378
4407
|
</div>
|
4379
4408
|
|
4380
|
-
<div id="method-
|
4381
|
-
<a name="
|
4409
|
+
<div id="method-M000081" class="method-detail">
|
4410
|
+
<a name="M000081"></a>
|
4382
4411
|
|
4383
4412
|
<div class="method-heading">
|
4384
|
-
<a href="Rio.src/
|
4385
|
-
onclick="popupCode('Rio.src/
|
4413
|
+
<a href="Rio.src/M000081.html" target="Code" class="method-signature"
|
4414
|
+
onclick="popupCode('Rio.src/M000081.html');return false;">
|
4386
4415
|
<span class="method-name">path</span><span class="method-args">(*args)</span>
|
4387
4416
|
</a>
|
4388
4417
|
</div>
|
@@ -4393,44 +4422,27 @@ Returns the path for the <a href="Rio.html">Rio</a>, which is defined
|
|
4393
4422
|
differently for different types of Rios.
|
4394
4423
|
</p>
|
4395
4424
|
<p>
|
4396
|
-
For Rios representing paths on the underlying file system this
|
4425
|
+
For Rios representing paths on the underlying file system this returns
|
4397
4426
|
URI::FILE#path or URI::Generic#path depending on whether the <a
|
4398
|
-
href="Rio.html">Rio</a> is absolute or not. Note that this is
|
4399
|
-
the same as <a href="Rio.html#
|
4400
|
-
path as defined in
|
4401
|
-
</p>
|
4402
|
-
<p>
|
4403
|
-
For HTTP Rios this proxies this proxies URI::HTTP#path
|
4427
|
+
href="Rio.html">Rio</a> is absolute or not. Note that this is not
|
4428
|
+
necessarily the same as <a href="Rio.html#M000084">Rio#fspath</a>, but
|
4429
|
+
rather a URL path as defined in RFC1738.
|
4404
4430
|
</p>
|
4405
4431
|
<p>
|
4406
|
-
For
|
4407
|
-
used to create the <a href="Rio.html">Rio</a>
|
4432
|
+
For Rios that have a URI representation this returns URI#path
|
4408
4433
|
</p>
|
4409
4434
|
<p>
|
4410
|
-
|
4411
|
-
</p>
|
4412
|
-
<pre>
|
4413
|
-
'-' => stdio:
|
4414
|
-
'=' => stderr:
|
4415
|
-
'?' => tempfile:
|
4416
|
-
'$' => stringio:
|
4417
|
-
'_' => sysio:
|
4418
|
-
</pre>
|
4419
|
-
<p>
|
4420
|
-
This list of possible paths may not be comprehensive as new types of Rios
|
4421
|
-
are added, however, A <a href="Rio.html">Rio</a> should always return a
|
4422
|
-
path when the underlying object has a concept of a path and something else
|
4423
|
-
that is reasonable for Rios that have no such concept
|
4435
|
+
Otherwise this returns nil.
|
4424
4436
|
</p>
|
4425
4437
|
</div>
|
4426
4438
|
</div>
|
4427
4439
|
|
4428
|
-
<div id="method-
|
4429
|
-
<a name="
|
4440
|
+
<div id="method-M000162" class="method-detail">
|
4441
|
+
<a name="M000162"></a>
|
4430
4442
|
|
4431
4443
|
<div class="method-heading">
|
4432
|
-
<a href="Rio.src/
|
4433
|
-
onclick="popupCode('Rio.src/
|
4444
|
+
<a href="Rio.src/M000162.html" target="Code" class="method-signature"
|
4445
|
+
onclick="popupCode('Rio.src/M000162.html');return false;">
|
4434
4446
|
<span class="method-name">pipe?</span><span class="method-args">()</span>
|
4435
4447
|
</a>
|
4436
4448
|
</div>
|
@@ -4448,12 +4460,12 @@ Returns <tt>true</tt> if the named file is a pipe.
|
|
4448
4460
|
</div>
|
4449
4461
|
</div>
|
4450
4462
|
|
4451
|
-
<div id="method-
|
4452
|
-
<a name="
|
4463
|
+
<div id="method-M000041" class="method-detail">
|
4464
|
+
<a name="M000041"></a>
|
4453
4465
|
|
4454
4466
|
<div class="method-heading">
|
4455
|
-
<a href="Rio.src/
|
4456
|
-
onclick="popupCode('Rio.src/
|
4467
|
+
<a href="Rio.src/M000041.html" target="Code" class="method-signature"
|
4468
|
+
onclick="popupCode('Rio.src/M000041.html');return false;">
|
4457
4469
|
<span class="method-name">pos</span><span class="method-args">()</span>
|
4458
4470
|
</a>
|
4459
4471
|
</div>
|
@@ -4487,7 +4499,7 @@ Proxy for Dir#pos
|
|
4487
4499
|
</pre>
|
4488
4500
|
<p>
|
4489
4501
|
Returns the current position in <em>dir</em>. See also +<a
|
4490
|
-
href="Rio.html#
|
4502
|
+
href="Rio.html#M000040">Rio#seek</a>+.
|
4491
4503
|
</p>
|
4492
4504
|
<pre>
|
4493
4505
|
d = rio("testdir")
|
@@ -4498,12 +4510,12 @@ href="Rio.html#M000041">Rio#seek</a>+.
|
|
4498
4510
|
</div>
|
4499
4511
|
</div>
|
4500
4512
|
|
4501
|
-
<div id="method-
|
4502
|
-
<a name="
|
4513
|
+
<div id="method-M000043" class="method-detail">
|
4514
|
+
<a name="M000043"></a>
|
4503
4515
|
|
4504
4516
|
<div class="method-heading">
|
4505
|
-
<a href="Rio.src/
|
4506
|
-
onclick="popupCode('Rio.src/
|
4517
|
+
<a href="Rio.src/M000043.html" target="Code" class="method-signature"
|
4518
|
+
onclick="popupCode('Rio.src/M000043.html');return false;">
|
4507
4519
|
<span class="method-name">pos=</span><span class="method-args">(integer)</span>
|
4508
4520
|
</a>
|
4509
4521
|
</div>
|
@@ -4535,12 +4547,12 @@ Proxy for Dir#pos=
|
|
4535
4547
|
</div>
|
4536
4548
|
</div>
|
4537
4549
|
|
4538
|
-
<div id="method-
|
4539
|
-
<a name="
|
4550
|
+
<div id="method-M000126" class="method-detail">
|
4551
|
+
<a name="M000126"></a>
|
4540
4552
|
|
4541
4553
|
<div class="method-heading">
|
4542
|
-
<a href="Rio.src/
|
4543
|
-
onclick="popupCode('Rio.src/
|
4554
|
+
<a href="Rio.src/M000126.html" target="Code" class="method-signature"
|
4555
|
+
onclick="popupCode('Rio.src/M000126.html');return false;">
|
4544
4556
|
<span class="method-name">print</span><span class="method-args">(*args,&block)</span>
|
4545
4557
|
</a>
|
4546
4558
|
</div>
|
@@ -4563,12 +4575,12 @@ Returns the <a href="Rio.html">Rio</a>.
|
|
4563
4575
|
</div>
|
4564
4576
|
</div>
|
4565
4577
|
|
4566
|
-
<div id="method-
|
4567
|
-
<a name="
|
4578
|
+
<div id="method-M000127" class="method-detail">
|
4579
|
+
<a name="M000127"></a>
|
4568
4580
|
|
4569
4581
|
<div class="method-heading">
|
4570
|
-
<a href="Rio.src/
|
4571
|
-
onclick="popupCode('Rio.src/
|
4582
|
+
<a href="Rio.src/M000127.html" target="Code" class="method-signature"
|
4583
|
+
onclick="popupCode('Rio.src/M000127.html');return false;">
|
4572
4584
|
<span class="method-name">print!</span><span class="method-args">(*args,&block)</span>
|
4573
4585
|
</a>
|
4574
4586
|
</div>
|
@@ -4576,7 +4588,7 @@ Returns the <a href="Rio.html">Rio</a>.
|
|
4576
4588
|
<div class="method-description">
|
4577
4589
|
<p>
|
4578
4590
|
Writes the given objects to the rio as with <a
|
4579
|
-
href="Rio.html#
|
4591
|
+
href="Rio.html#M000126">Rio#print</a> and then closes the <a
|
4580
4592
|
href="Rio.html">Rio</a>. Returns the <a href="Rio.html">Rio</a>.
|
4581
4593
|
</p>
|
4582
4594
|
<p>
|
@@ -4588,12 +4600,12 @@ Equivalent to rio.print(*args).close
|
|
4588
4600
|
</div>
|
4589
4601
|
</div>
|
4590
4602
|
|
4591
|
-
<div id="method-
|
4592
|
-
<a name="
|
4603
|
+
<div id="method-M000129" class="method-detail">
|
4604
|
+
<a name="M000129"></a>
|
4593
4605
|
|
4594
4606
|
<div class="method-heading">
|
4595
|
-
<a href="Rio.src/
|
4596
|
-
onclick="popupCode('Rio.src/
|
4607
|
+
<a href="Rio.src/M000129.html" target="Code" class="method-signature"
|
4608
|
+
onclick="popupCode('Rio.src/M000129.html');return false;">
|
4597
4609
|
<span class="method-name">printf</span><span class="method-args">(*argv)</span>
|
4598
4610
|
</a>
|
4599
4611
|
</div>
|
@@ -4612,12 +4624,12 @@ the format string. See +Kernel#sprintf+ for details.
|
|
4612
4624
|
</div>
|
4613
4625
|
</div>
|
4614
4626
|
|
4615
|
-
<div id="method-
|
4616
|
-
<a name="
|
4627
|
+
<div id="method-M000128" class="method-detail">
|
4628
|
+
<a name="M000128"></a>
|
4617
4629
|
|
4618
4630
|
<div class="method-heading">
|
4619
|
-
<a href="Rio.src/
|
4620
|
-
onclick="popupCode('Rio.src/
|
4631
|
+
<a href="Rio.src/M000128.html" target="Code" class="method-signature"
|
4632
|
+
onclick="popupCode('Rio.src/M000128.html');return false;">
|
4621
4633
|
<span class="method-name">printf!</span><span class="method-args">(*argv)</span>
|
4622
4634
|
</a>
|
4623
4635
|
</div>
|
@@ -4625,7 +4637,7 @@ the format string. See +Kernel#sprintf+ for details.
|
|
4625
4637
|
<div class="method-description">
|
4626
4638
|
<p>
|
4627
4639
|
Writes the given objects to the rio as with <a
|
4628
|
-
href="Rio.html#
|
4640
|
+
href="Rio.html#M000129">Rio#printf</a> and then closes the rio. Returns the
|
4629
4641
|
rio.
|
4630
4642
|
</p>
|
4631
4643
|
<p>
|
@@ -4634,12 +4646,12 @@ Equivalent to rio.printf(*args).close
|
|
4634
4646
|
</div>
|
4635
4647
|
</div>
|
4636
4648
|
|
4637
|
-
<div id="method-
|
4638
|
-
<a name="
|
4649
|
+
<div id="method-M000131" class="method-detail">
|
4650
|
+
<a name="M000131"></a>
|
4639
4651
|
|
4640
4652
|
<div class="method-heading">
|
4641
|
-
<a href="Rio.src/
|
4642
|
-
onclick="popupCode('Rio.src/
|
4653
|
+
<a href="Rio.src/M000131.html" target="Code" class="method-signature"
|
4654
|
+
onclick="popupCode('Rio.src/M000131.html');return false;">
|
4643
4655
|
<span class="method-name">putc</span><span class="method-args">(*argv)</span>
|
4644
4656
|
</a>
|
4645
4657
|
</div>
|
@@ -4670,12 +4682,12 @@ _produces:_
|
|
4670
4682
|
</div>
|
4671
4683
|
</div>
|
4672
4684
|
|
4673
|
-
<div id="method-
|
4674
|
-
<a name="
|
4685
|
+
<div id="method-M000130" class="method-detail">
|
4686
|
+
<a name="M000130"></a>
|
4675
4687
|
|
4676
4688
|
<div class="method-heading">
|
4677
|
-
<a href="Rio.src/
|
4678
|
-
onclick="popupCode('Rio.src/
|
4689
|
+
<a href="Rio.src/M000130.html" target="Code" class="method-signature"
|
4690
|
+
onclick="popupCode('Rio.src/M000130.html');return false;">
|
4679
4691
|
<span class="method-name">putc!</span><span class="method-args">(*argv)</span>
|
4680
4692
|
</a>
|
4681
4693
|
</div>
|
@@ -4683,7 +4695,7 @@ _produces:_
|
|
4683
4695
|
<div class="method-description">
|
4684
4696
|
<p>
|
4685
4697
|
Writes the given objects to the rio as with <a
|
4686
|
-
href="Rio.html#
|
4698
|
+
href="Rio.html#M000131">Rio#putc</a> and then closes the rio. Returns the
|
4687
4699
|
rio.
|
4688
4700
|
</p>
|
4689
4701
|
<p>
|
@@ -4692,12 +4704,12 @@ Equivalent to rio.putc(*args).close
|
|
4692
4704
|
</div>
|
4693
4705
|
</div>
|
4694
4706
|
|
4695
|
-
<div id="method-
|
4696
|
-
<a name="
|
4707
|
+
<div id="method-M000132" class="method-detail">
|
4708
|
+
<a name="M000132"></a>
|
4697
4709
|
|
4698
4710
|
<div class="method-heading">
|
4699
|
-
<a href="Rio.src/
|
4700
|
-
onclick="popupCode('Rio.src/
|
4711
|
+
<a href="Rio.src/M000132.html" target="Code" class="method-signature"
|
4712
|
+
onclick="popupCode('Rio.src/M000132.html');return false;">
|
4701
4713
|
<span class="method-name">puts</span><span class="method-args">(*args)</span>
|
4702
4714
|
</a>
|
4703
4715
|
</div>
|
@@ -4708,7 +4720,7 @@ Calls IO#puts
|
|
4708
4720
|
</p>
|
4709
4721
|
<p>
|
4710
4722
|
Writes the given objects to the rio as with <a
|
4711
|
-
href="Rio.html#
|
4723
|
+
href="Rio.html#M000126">Rio#print</a> . Writes a record separator
|
4712
4724
|
(typically a newline) after any that do not already end with a newline
|
4713
4725
|
sequence. If called with an array argument, writes each element on a new
|
4714
4726
|
line. If called without arguments, outputs a single record separator.
|
@@ -4717,12 +4729,12 @@ Returns the rio.
|
|
4717
4729
|
</div>
|
4718
4730
|
</div>
|
4719
4731
|
|
4720
|
-
<div id="method-
|
4721
|
-
<a name="
|
4732
|
+
<div id="method-M000133" class="method-detail">
|
4733
|
+
<a name="M000133"></a>
|
4722
4734
|
|
4723
4735
|
<div class="method-heading">
|
4724
|
-
<a href="Rio.src/
|
4725
|
-
onclick="popupCode('Rio.src/
|
4736
|
+
<a href="Rio.src/M000133.html" target="Code" class="method-signature"
|
4737
|
+
onclick="popupCode('Rio.src/M000133.html');return false;">
|
4726
4738
|
<span class="method-name">puts!</span><span class="method-args">(*args)</span>
|
4727
4739
|
</a>
|
4728
4740
|
</div>
|
@@ -4730,7 +4742,7 @@ Returns the rio.
|
|
4730
4742
|
<div class="method-description">
|
4731
4743
|
<p>
|
4732
4744
|
Writes the given objects to the rio as with <a
|
4733
|
-
href="Rio.html#
|
4745
|
+
href="Rio.html#M000132">Rio#puts</a> and then closes the rio. Returns the
|
4734
4746
|
rio.
|
4735
4747
|
</p>
|
4736
4748
|
<p>
|
@@ -4742,12 +4754,12 @@ Equivalent to rio.puts(*args).close
|
|
4742
4754
|
</div>
|
4743
4755
|
</div>
|
4744
4756
|
|
4745
|
-
<div id="method-
|
4746
|
-
<a name="
|
4757
|
+
<div id="method-M000064" class="method-detail">
|
4758
|
+
<a name="M000064"></a>
|
4747
4759
|
|
4748
4760
|
<div class="method-heading">
|
4749
|
-
<a href="Rio.src/
|
4750
|
-
onclick="popupCode('Rio.src/
|
4761
|
+
<a href="Rio.src/M000064.html" target="Code" class="method-signature"
|
4762
|
+
onclick="popupCode('Rio.src/M000064.html');return false;">
|
4751
4763
|
<span class="method-name">r</span><span class="method-args">()</span>
|
4752
4764
|
</a>
|
4753
4765
|
</div>
|
@@ -4764,7 +4776,7 @@ input when no mode is specified.
|
|
4764
4776
|
Returns the <a href="Rio.html">Rio</a>
|
4765
4777
|
</p>
|
4766
4778
|
<p>
|
4767
|
-
See the discussion for <a href="Rio.html#
|
4779
|
+
See the discussion for <a href="Rio.html#M000062">Rio#a</a>.
|
4768
4780
|
</p>
|
4769
4781
|
<p>
|
4770
4782
|
Since ‘r’ is the implicit input mode used by default, this
|
@@ -4773,12 +4785,12 @@ method is probably uneeded.
|
|
4773
4785
|
</div>
|
4774
4786
|
</div>
|
4775
4787
|
|
4776
|
-
<div id="method-
|
4777
|
-
<a name="
|
4788
|
+
<div id="method-M000065" class="method-detail">
|
4789
|
+
<a name="M000065"></a>
|
4778
4790
|
|
4779
4791
|
<div class="method-heading">
|
4780
|
-
<a href="Rio.src/
|
4781
|
-
onclick="popupCode('Rio.src/
|
4792
|
+
<a href="Rio.src/M000065.html" target="Code" class="method-signature"
|
4793
|
+
onclick="popupCode('Rio.src/M000065.html');return false;">
|
4782
4794
|
<span class="method-name">r!</span><span class="method-args">()</span>
|
4783
4795
|
</a>
|
4784
4796
|
</div>
|
@@ -4795,17 +4807,17 @@ input when no mode is specified.
|
|
4795
4807
|
Returns the <a href="Rio.html">Rio</a>
|
4796
4808
|
</p>
|
4797
4809
|
<p>
|
4798
|
-
See the discussion for <a href="Rio.html#
|
4810
|
+
See the discussion for <a href="Rio.html#M000062">Rio#a</a>.
|
4799
4811
|
</p>
|
4800
4812
|
</div>
|
4801
4813
|
</div>
|
4802
4814
|
|
4803
|
-
<div id="method-
|
4804
|
-
<a name="
|
4815
|
+
<div id="method-M000038" class="method-detail">
|
4816
|
+
<a name="M000038"></a>
|
4805
4817
|
|
4806
4818
|
<div class="method-heading">
|
4807
|
-
<a href="Rio.src/
|
4808
|
-
onclick="popupCode('Rio.src/
|
4819
|
+
<a href="Rio.src/M000038.html" target="Code" class="method-signature"
|
4820
|
+
onclick="popupCode('Rio.src/M000038.html');return false;">
|
4809
4821
|
<span class="method-name">read</span><span class="method-args">(*args)</span>
|
4810
4822
|
</a>
|
4811
4823
|
</div>
|
@@ -4841,12 +4853,12 @@ Proxy for Dir#read
|
|
4841
4853
|
</div>
|
4842
4854
|
</div>
|
4843
4855
|
|
4844
|
-
<div id="method-
|
4845
|
-
<a name="
|
4856
|
+
<div id="method-M000168" class="method-detail">
|
4857
|
+
<a name="M000168"></a>
|
4846
4858
|
|
4847
4859
|
<div class="method-heading">
|
4848
|
-
<a href="Rio.src/
|
4849
|
-
onclick="popupCode('Rio.src/
|
4860
|
+
<a href="Rio.src/M000168.html" target="Code" class="method-signature"
|
4861
|
+
onclick="popupCode('Rio.src/M000168.html');return false;">
|
4850
4862
|
<span class="method-name">readable?</span><span class="method-args">(*args)</span>
|
4851
4863
|
</a>
|
4852
4864
|
</div>
|
@@ -4867,12 +4879,12 @@ Returns <tt>true</tt> if the named file is readable by the effective user
|
|
4867
4879
|
</div>
|
4868
4880
|
</div>
|
4869
4881
|
|
4870
|
-
<div id="method-
|
4871
|
-
<a name="
|
4882
|
+
<div id="method-M000169" class="method-detail">
|
4883
|
+
<a name="M000169"></a>
|
4872
4884
|
|
4873
4885
|
<div class="method-heading">
|
4874
|
-
<a href="Rio.src/
|
4875
|
-
onclick="popupCode('Rio.src/
|
4886
|
+
<a href="Rio.src/M000169.html" target="Code" class="method-signature"
|
4887
|
+
onclick="popupCode('Rio.src/M000169.html');return false;">
|
4876
4888
|
<span class="method-name">readable_real?</span><span class="method-args">(*args)</span>
|
4877
4889
|
</a>
|
4878
4890
|
</div>
|
@@ -4891,12 +4903,12 @@ this process.
|
|
4891
4903
|
</div>
|
4892
4904
|
</div>
|
4893
4905
|
|
4894
|
-
<div id="method-
|
4895
|
-
<a name="
|
4906
|
+
<div id="method-M000125" class="method-detail">
|
4907
|
+
<a name="M000125"></a>
|
4896
4908
|
|
4897
4909
|
<div class="method-heading">
|
4898
|
-
<a href="Rio.src/
|
4899
|
-
onclick="popupCode('Rio.src/
|
4910
|
+
<a href="Rio.src/M000125.html" target="Code" class="method-signature"
|
4911
|
+
onclick="popupCode('Rio.src/M000125.html');return false;">
|
4900
4912
|
<span class="method-name">readline</span><span class="method-args">(*args)</span>
|
4901
4913
|
</a>
|
4902
4914
|
</div>
|
@@ -4915,12 +4927,12 @@ file.
|
|
4915
4927
|
</div>
|
4916
4928
|
</div>
|
4917
4929
|
|
4918
|
-
<div id="method-
|
4919
|
-
<a name="
|
4930
|
+
<div id="method-M000124" class="method-detail">
|
4931
|
+
<a name="M000124"></a>
|
4920
4932
|
|
4921
4933
|
<div class="method-heading">
|
4922
|
-
<a href="Rio.src/
|
4923
|
-
onclick="popupCode('Rio.src/
|
4934
|
+
<a href="Rio.src/M000124.html" target="Code" class="method-signature"
|
4935
|
+
onclick="popupCode('Rio.src/M000124.html');return false;">
|
4924
4936
|
<span class="method-name">readlines</span><span class="method-args">(*args,&block)</span>
|
4925
4937
|
</a>
|
4926
4938
|
</div>
|
@@ -4941,12 +4953,12 @@ opened for reading or an IOerror will be raised.
|
|
4941
4953
|
</div>
|
4942
4954
|
</div>
|
4943
4955
|
|
4944
|
-
<div id="method-
|
4945
|
-
<a name="
|
4956
|
+
<div id="method-M000036" class="method-detail">
|
4957
|
+
<a name="M000036"></a>
|
4946
4958
|
|
4947
4959
|
<div class="method-heading">
|
4948
|
-
<a href="Rio.src/
|
4949
|
-
onclick="popupCode('Rio.src/
|
4960
|
+
<a href="Rio.src/M000036.html" target="Code" class="method-signature"
|
4961
|
+
onclick="popupCode('Rio.src/M000036.html');return false;">
|
4950
4962
|
<span class="method-name">readlink</span><span class="method-args">(*args)</span>
|
4951
4963
|
</a>
|
4952
4964
|
</div>
|
@@ -4962,12 +4974,12 @@ given link. Not available on all platforms.
|
|
4962
4974
|
</div>
|
4963
4975
|
</div>
|
4964
4976
|
|
4965
|
-
<div id="method-
|
4966
|
-
<a name="
|
4977
|
+
<div id="method-M000119" class="method-detail">
|
4978
|
+
<a name="M000119"></a>
|
4967
4979
|
|
4968
4980
|
<div class="method-heading">
|
4969
|
-
<a href="Rio.src/
|
4970
|
-
onclick="popupCode('Rio.src/
|
4981
|
+
<a href="Rio.src/M000119.html" target="Code" class="method-signature"
|
4982
|
+
onclick="popupCode('Rio.src/M000119.html');return false;">
|
4971
4983
|
<span class="method-name">recno</span><span class="method-args">()</span>
|
4972
4984
|
</a>
|
4973
4985
|
</div>
|
@@ -4980,9 +4992,9 @@ represents the zero-based index of the last record read. Returns nil until
|
|
4980
4992
|
a record has been read.
|
4981
4993
|
</p>
|
4982
4994
|
<p>
|
4983
|
-
see <a href="Rio.html#
|
4984
|
-
href="Rio.html#
|
4985
|
-
href="Rio.html#
|
4995
|
+
see <a href="Rio.html#M000055">Rio#lines</a> <a
|
4996
|
+
href="Rio.html#M000056">Rio#bytes</a> and <a
|
4997
|
+
href="Rio.html#M000057">Rio#records</a>
|
4986
4998
|
</p>
|
4987
4999
|
<p>
|
4988
5000
|
To illustrate: Given a file containing three lines
|
@@ -5001,14 +5013,14 @@ of the following would fill ay with ["L0\n", "L1\n"]
|
|
5001
5013
|
</pre>
|
5002
5014
|
<p>
|
5003
5015
|
<tt>recno</tt> counts the number of times <a
|
5004
|
-
href="Rio.html#
|
5005
|
-
href="Rio.html#
|
5016
|
+
href="Rio.html#M000052">Rio#getrec</a> or <a
|
5017
|
+
href="Rio.html#M000045">Rio#each</a> is used to get a record. so
|
5006
5018
|
<tt>recno</tt> will only concern parts of the file read with grande methods
|
5007
|
-
<a href="Rio.html#
|
5008
|
-
href="Rio.html#
|
5019
|
+
<a href="Rio.html#M000045">Rio#each</a>, <a href="Rio.html">Rio</a>#[], <a
|
5020
|
+
href="Rio.html#M000052">Rio#getrec</a>
|
5009
5021
|
</p>
|
5010
5022
|
<p>
|
5011
|
-
See also <a href="Rio.html#
|
5023
|
+
See also <a href="Rio.html#M000117">Rio#lineno</a>
|
5012
5024
|
</p>
|
5013
5025
|
<pre>
|
5014
5026
|
f = rio("afile")
|
@@ -5027,12 +5039,12 @@ See also <a href="Rio.html#M000118">Rio#lineno</a>
|
|
5027
5039
|
</div>
|
5028
5040
|
</div>
|
5029
5041
|
|
5030
|
-
<div id="method-
|
5031
|
-
<a name="
|
5042
|
+
<div id="method-M000057" class="method-detail">
|
5043
|
+
<a name="M000057"></a>
|
5032
5044
|
|
5033
5045
|
<div class="method-heading">
|
5034
|
-
<a href="Rio.src/
|
5035
|
-
onclick="popupCode('Rio.src/
|
5046
|
+
<a href="Rio.src/M000057.html" target="Code" class="method-signature"
|
5047
|
+
onclick="popupCode('Rio.src/M000057.html');return false;">
|
5036
5048
|
<span class="method-name">records</span><span class="method-args">(*args,&block)</span>
|
5037
5049
|
</a>
|
5038
5050
|
</div>
|
@@ -5040,8 +5052,8 @@ See also <a href="Rio.html#M000118">Rio#lineno</a>
|
|
5040
5052
|
<div class="method-description">
|
5041
5053
|
<p>
|
5042
5054
|
Specifies which records will be iterated through by <a
|
5043
|
-
href="Rio.html#
|
5044
|
-
href="Rio.html#
|
5055
|
+
href="Rio.html#M000045">Rio#each</a> or returned by <a
|
5056
|
+
href="Rio.html#M000052">Rio#getrec</a>
|
5045
5057
|
</p>
|
5046
5058
|
<p>
|
5047
5059
|
If called with a block behaves as if
|
@@ -5052,21 +5064,21 @@ Returns the <a href="Rio.html">Rio</a>
|
|
5052
5064
|
</p>
|
5053
5065
|
<p>
|
5054
5066
|
If no args are provided, all records are selected. What constitutes a
|
5055
|
-
record is affected by <a href="Rio.html#
|
5056
|
-
href="Rio.html#
|
5067
|
+
record is affected by <a href="Rio.html#M000055">Rio#lines</a>,<a
|
5068
|
+
href="Rio.html#M000056">Rio#bytes</a>, and extensions such as Rio#csv.
|
5057
5069
|
</p>
|
5058
5070
|
<p>
|
5059
5071
|
If args are provided they may be one or more of the following:
|
5060
5072
|
</p>
|
5061
5073
|
<dl>
|
5062
5074
|
<dt>Regexp</dt><dd>any matching record will be iterated over by <a
|
5063
|
-
href="Rio.html#
|
5064
|
-
href="Rio.html#
|
5075
|
+
href="Rio.html#M000045">Rio#each</a> or returned by <a
|
5076
|
+
href="Rio.html#M000052">Rio#getrec</a>
|
5065
5077
|
|
5066
5078
|
</dd>
|
5067
5079
|
<dt>Integer</dt><dd>specifies a record-number (zero-based) to be iterated over by <a
|
5068
|
-
href="Rio.html#
|
5069
|
-
href="Rio.html#
|
5080
|
+
href="Rio.html#M000045">Rio#each</a> or returned by <a
|
5081
|
+
href="Rio.html#M000052">Rio#getrec</a>
|
5070
5082
|
|
5071
5083
|
</dd>
|
5072
5084
|
<dt>Range</dt><dd>specifies a range of records (zero-based) to included in the iteration
|
@@ -5100,12 +5112,12 @@ Note in the following examples that since <tt>lines</tt> is the default
|
|
5100
5112
|
</div>
|
5101
5113
|
</div>
|
5102
5114
|
|
5103
|
-
<div id="method-
|
5104
|
-
<a name="
|
5115
|
+
<div id="method-M000025" class="method-detail">
|
5116
|
+
<a name="M000025"></a>
|
5105
5117
|
|
5106
5118
|
<div class="method-heading">
|
5107
|
-
<a href="Rio.src/
|
5108
|
-
onclick="popupCode('Rio.src/
|
5119
|
+
<a href="Rio.src/M000025.html" target="Code" class="method-signature"
|
5120
|
+
onclick="popupCode('Rio.src/M000025.html');return false;">
|
5109
5121
|
<span class="method-name">recurse</span><span class="method-args">(*args,&block)</span>
|
5110
5122
|
</a>
|
5111
5123
|
</div>
|
@@ -5116,12 +5128,12 @@ Grande Directory Recursion Selection Method
|
|
5116
5128
|
</p>
|
5117
5129
|
<p>
|
5118
5130
|
Sets the <a href="Rio.html">Rio</a> to recurse into directories like <a
|
5119
|
-
href="Rio.html#
|
5120
|
-
<a href="Rio.html#
|
5121
|
-
processed like <a href="Rio.html#
|
5131
|
+
href="Rio.html#M000024">Rio#all</a>. If no args are provided behaves like
|
5132
|
+
<a href="Rio.html#M000024">Rio#all</a>. If args are provided, they are
|
5133
|
+
processed like <a href="Rio.html#M000018">Rio#dirs</a>, to select which
|
5122
5134
|
subdirectories should be recursed into. <a
|
5123
|
-
href="Rio.html#
|
5124
|
-
href="Rio.html#
|
5135
|
+
href="Rio.html#M000025">Rio#recurse</a> always implies <a
|
5136
|
+
href="Rio.html#M000024">Rio#all</a>.
|
5125
5137
|
</p>
|
5126
5138
|
<p>
|
5127
5139
|
<tt>args</tt> may be one or more of:
|
@@ -5147,9 +5159,9 @@ If a block is given, behaves like
|
|
5147
5159
|
<tt>ario.recurse(*args).each(&block)</tt>
|
5148
5160
|
</p>
|
5149
5161
|
<p>
|
5150
|
-
See also <a href="Rio.html#
|
5151
|
-
href="Rio.html#
|
5152
|
-
href="Rio.html#
|
5162
|
+
See also <a href="Rio.html#M000026">Rio#norecurse</a>, <a
|
5163
|
+
href="Rio.html#M000024">Rio#all</a>, <a
|
5164
|
+
href="Rio.html#M000018">Rio#dirs</a>
|
5153
5165
|
</p>
|
5154
5166
|
<pre>
|
5155
5167
|
rio('adir').all.recurse('test*') { |drio| ... } # process all entries and all entries in subdirectories
|
@@ -5158,12 +5170,12 @@ href="Rio.html#M000019">Rio#dirs</a>
|
|
5158
5170
|
</div>
|
5159
5171
|
</div>
|
5160
5172
|
|
5161
|
-
<div id="method-
|
5162
|
-
<a name="
|
5173
|
+
<div id="method-M000087" class="method-detail">
|
5174
|
+
<a name="M000087"></a>
|
5163
5175
|
|
5164
5176
|
<div class="method-heading">
|
5165
|
-
<a href="Rio.src/
|
5166
|
-
onclick="popupCode('Rio.src/
|
5177
|
+
<a href="Rio.src/M000087.html" target="Code" class="method-signature"
|
5178
|
+
onclick="popupCode('Rio.src/M000087.html');return false;">
|
5167
5179
|
<span class="method-name">rel</span><span class="method-args">(other)</span>
|
5168
5180
|
</a>
|
5169
5181
|
</div>
|
@@ -5180,12 +5192,12 @@ Returns a new rio with a path equal to the relative path from
|
|
5180
5192
|
</div>
|
5181
5193
|
</div>
|
5182
5194
|
|
5183
|
-
<div id="method-
|
5184
|
-
<a name="
|
5195
|
+
<div id="method-M000037" class="method-detail">
|
5196
|
+
<a name="M000037"></a>
|
5185
5197
|
|
5186
5198
|
<div class="method-heading">
|
5187
|
-
<a href="Rio.src/
|
5188
|
-
onclick="popupCode('Rio.src/
|
5199
|
+
<a href="Rio.src/M000037.html" target="Code" class="method-signature"
|
5200
|
+
onclick="popupCode('Rio.src/M000037.html');return false;">
|
5189
5201
|
<span class="method-name">rename</span><span class="method-args">(*args,&block)</span>
|
5190
5202
|
</a>
|
5191
5203
|
</div>
|
@@ -5235,12 +5247,12 @@ href="Rio.html#M000094">Rio#extname</a>=
|
|
5235
5247
|
</div>
|
5236
5248
|
</div>
|
5237
5249
|
|
5238
|
-
<div id="method-
|
5239
|
-
<a name="
|
5250
|
+
<div id="method-M000053" class="method-detail">
|
5251
|
+
<a name="M000053"></a>
|
5240
5252
|
|
5241
5253
|
<div class="method-heading">
|
5242
|
-
<a href="Rio.src/
|
5243
|
-
onclick="popupCode('Rio.src/
|
5254
|
+
<a href="Rio.src/M000053.html" target="Code" class="method-signature"
|
5255
|
+
onclick="popupCode('Rio.src/M000053.html');return false;">
|
5244
5256
|
<span class="method-name">reset</span><span class="method-args">()</span>
|
5245
5257
|
</a>
|
5246
5258
|
</div>
|
@@ -5254,12 +5266,12 @@ code. It closes a <a href="Rio.html">Rio</a> and returns it to its
|
|
5254
5266
|
</div>
|
5255
5267
|
</div>
|
5256
5268
|
|
5257
|
-
<div id="method-
|
5258
|
-
<a name="
|
5269
|
+
<div id="method-M000039" class="method-detail">
|
5270
|
+
<a name="M000039"></a>
|
5259
5271
|
|
5260
5272
|
<div class="method-heading">
|
5261
|
-
<a href="Rio.src/
|
5262
|
-
onclick="popupCode('Rio.src/
|
5273
|
+
<a href="Rio.src/M000039.html" target="Code" class="method-signature"
|
5274
|
+
onclick="popupCode('Rio.src/M000039.html');return false;">
|
5263
5275
|
<span class="method-name">rewind</span><span class="method-args">(&block)</span>
|
5264
5276
|
</a>
|
5265
5277
|
</div>
|
@@ -5299,12 +5311,12 @@ Proxy for Dir#rewind
|
|
5299
5311
|
</div>
|
5300
5312
|
</div>
|
5301
5313
|
|
5302
|
-
<div id="method-
|
5303
|
-
<a name="
|
5314
|
+
<div id="method-M000054" class="method-detail">
|
5315
|
+
<a name="M000054"></a>
|
5304
5316
|
|
5305
5317
|
<div class="method-heading">
|
5306
|
-
<a href="Rio.src/
|
5307
|
-
onclick="popupCode('Rio.src/
|
5318
|
+
<a href="Rio.src/M000054.html" target="Code" class="method-signature"
|
5319
|
+
onclick="popupCode('Rio.src/M000054.html');return false;">
|
5308
5320
|
<span class="method-name">rl</span><span class="method-args">()</span>
|
5309
5321
|
</a>
|
5310
5322
|
</div>
|
@@ -5318,12 +5330,12 @@ object.
|
|
5318
5330
|
</div>
|
5319
5331
|
</div>
|
5320
5332
|
|
5321
|
-
<div id="method-
|
5322
|
-
<a name="
|
5333
|
+
<div id="method-M000033" class="method-detail">
|
5334
|
+
<a name="M000033"></a>
|
5323
5335
|
|
5324
5336
|
<div class="method-heading">
|
5325
|
-
<a href="Rio.src/
|
5326
|
-
onclick="popupCode('Rio.src/
|
5337
|
+
<a href="Rio.src/M000033.html" target="Code" class="method-signature"
|
5338
|
+
onclick="popupCode('Rio.src/M000033.html');return false;">
|
5327
5339
|
<span class="method-name">rm</span><span class="method-args">()</span>
|
5328
5340
|
</a>
|
5329
5341
|
</div>
|
@@ -5337,19 +5349,19 @@ Deletes the referenced file, returning the <a href="Rio.html">Rio</a>.
|
|
5337
5349
|
Raises an exception on any error.
|
5338
5350
|
</p>
|
5339
5351
|
<p>
|
5340
|
-
See also <a href="Rio.html#
|
5341
|
-
href="Rio.html#
|
5342
|
-
href="Rio.html#
|
5352
|
+
See also <a href="Rio.html#M000046">Rio#delete</a>, <a
|
5353
|
+
href="Rio.html#M000046">Rio#delete</a>!, <a
|
5354
|
+
href="Rio.html#M000029">Rio#rmdir</a>.
|
5343
5355
|
</p>
|
5344
5356
|
</div>
|
5345
5357
|
</div>
|
5346
5358
|
|
5347
|
-
<div id="method-
|
5348
|
-
<a name="
|
5359
|
+
<div id="method-M000029" class="method-detail">
|
5360
|
+
<a name="M000029"></a>
|
5349
5361
|
|
5350
5362
|
<div class="method-heading">
|
5351
|
-
<a href="Rio.src/
|
5352
|
-
onclick="popupCode('Rio.src/
|
5363
|
+
<a href="Rio.src/M000029.html" target="Code" class="method-signature"
|
5364
|
+
onclick="popupCode('Rio.src/M000029.html');return false;">
|
5353
5365
|
<span class="method-name">rmdir</span><span class="method-args">()</span>
|
5354
5366
|
</a>
|
5355
5367
|
</div>
|
@@ -5365,9 +5377,9 @@ href="Rio.html">Rio</a>. If the directory does not exist, just returns the
|
|
5365
5377
|
<a href="Rio.html">Rio</a>.
|
5366
5378
|
</p>
|
5367
5379
|
<p>
|
5368
|
-
See also <a href="Rio.html#
|
5369
|
-
href="Rio.html#
|
5370
|
-
href="Rio.html#
|
5380
|
+
See also <a href="Rio.html#M000030">Rio#rmtree</a>, <a
|
5381
|
+
href="Rio.html#M000046">Rio#delete</a>, <a
|
5382
|
+
href="Rio.html#M000046">Rio#delete</a>!
|
5371
5383
|
</p>
|
5372
5384
|
<pre>
|
5373
5385
|
rio('adir').rmdir # remove the empty directory 'adir'
|
@@ -5375,12 +5387,12 @@ href="Rio.html#M000047">Rio#delete</a>!
|
|
5375
5387
|
</div>
|
5376
5388
|
</div>
|
5377
5389
|
|
5378
|
-
<div id="method-
|
5379
|
-
<a name="
|
5390
|
+
<div id="method-M000030" class="method-detail">
|
5391
|
+
<a name="M000030"></a>
|
5380
5392
|
|
5381
5393
|
<div class="method-heading">
|
5382
|
-
<a href="Rio.src/
|
5383
|
-
onclick="popupCode('Rio.src/
|
5394
|
+
<a href="Rio.src/M000030.html" target="Code" class="method-signature"
|
5395
|
+
onclick="popupCode('Rio.src/M000030.html');return false;">
|
5384
5396
|
<span class="method-name">rmtree</span><span class="method-args">()</span>
|
5385
5397
|
</a>
|
5386
5398
|
</div>
|
@@ -5399,7 +5411,7 @@ If called with a block, behaves as if rmtree.each(&block) had been
|
|
5399
5411
|
called
|
5400
5412
|
</p>
|
5401
5413
|
<p>
|
5402
|
-
See also <a href="Rio.html#
|
5414
|
+
See also <a href="Rio.html#M000046">Rio#delete</a>!
|
5403
5415
|
</p>
|
5404
5416
|
<pre>
|
5405
5417
|
rio('adir').rmtree # removes the directory 'adir' recursively
|
@@ -5429,58 +5441,58 @@ See also <a href="Rio.html#M000047">Rio#delete</a>!
|
|
5429
5441
|
</div>
|
5430
5442
|
</div>
|
5431
5443
|
|
5432
|
-
<div id="method-
|
5433
|
-
<a name="
|
5444
|
+
<div id="method-M000112" class="method-detail">
|
5445
|
+
<a name="M000112"></a>
|
5434
5446
|
|
5435
5447
|
<div class="method-heading">
|
5436
|
-
<a href="Rio.src/
|
5437
|
-
onclick="popupCode('Rio.src/
|
5448
|
+
<a href="Rio.src/M000112.html" target="Code" class="method-signature"
|
5449
|
+
onclick="popupCode('Rio.src/M000112.html');return false;">
|
5438
5450
|
<span class="method-name">route_from</span><span class="method-args">(other)</span>
|
5439
5451
|
</a>
|
5440
5452
|
</div>
|
5441
5453
|
|
5442
5454
|
<div class="method-description">
|
5443
5455
|
<p>
|
5444
|
-
|
5456
|
+
Calls URI#route_from
|
5445
5457
|
</p>
|
5446
5458
|
<p>
|
5447
5459
|
Returns a new rio representing the path to this <a href="Rio.html">Rio</a>
|
5448
5460
|
from the perspective of <em>other</em>. URI#route_from requires that
|
5449
|
-
absolute URIs be used. <a href="Rio.html#
|
5461
|
+
absolute URIs be used. <a href="Rio.html#M000112">Rio#route_from</a> does
|
5450
5462
|
not.
|
5451
5463
|
</p>
|
5452
5464
|
</div>
|
5453
5465
|
</div>
|
5454
5466
|
|
5455
|
-
<div id="method-
|
5456
|
-
<a name="
|
5467
|
+
<div id="method-M000113" class="method-detail">
|
5468
|
+
<a name="M000113"></a>
|
5457
5469
|
|
5458
5470
|
<div class="method-heading">
|
5459
|
-
<a href="Rio.src/
|
5460
|
-
onclick="popupCode('Rio.src/
|
5471
|
+
<a href="Rio.src/M000113.html" target="Code" class="method-signature"
|
5472
|
+
onclick="popupCode('Rio.src/M000113.html');return false;">
|
5461
5473
|
<span class="method-name">route_to</span><span class="method-args">(other)</span>
|
5462
5474
|
</a>
|
5463
5475
|
</div>
|
5464
5476
|
|
5465
5477
|
<div class="method-description">
|
5466
5478
|
<p>
|
5467
|
-
|
5479
|
+
Calls URI#route_to
|
5468
5480
|
</p>
|
5469
5481
|
<p>
|
5470
5482
|
Returns a new rio representing the path to <em>other</em> from the
|
5471
5483
|
perspective of this <a href="Rio.html">Rio</a>. URI#route_to requires that
|
5472
|
-
absolute URIs be used. <a href="Rio.html#
|
5484
|
+
absolute URIs be used. <a href="Rio.html#M000113">Rio#route_to</a> does
|
5473
5485
|
not.
|
5474
5486
|
</p>
|
5475
5487
|
</div>
|
5476
5488
|
</div>
|
5477
5489
|
|
5478
|
-
<div id="method-
|
5479
|
-
<a name="
|
5490
|
+
<div id="method-M000060" class="method-detail">
|
5491
|
+
<a name="M000060"></a>
|
5480
5492
|
|
5481
5493
|
<div class="method-heading">
|
5482
|
-
<a href="Rio.src/
|
5483
|
-
onclick="popupCode('Rio.src/
|
5494
|
+
<a href="Rio.src/M000060.html" target="Code" class="method-signature"
|
5495
|
+
onclick="popupCode('Rio.src/M000060.html');return false;">
|
5484
5496
|
<span class="method-name">rows</span><span class="method-args">(*args,&block)</span>
|
5485
5497
|
</a>
|
5486
5498
|
</div>
|
@@ -5488,44 +5500,44 @@ not.
|
|
5488
5500
|
<div class="method-description">
|
5489
5501
|
<p>
|
5490
5502
|
Sets the <a href="Rio.html">Rio</a> to read rows and specifies rows which
|
5491
|
-
should be iterated through by <a href="Rio.html#
|
5492
|
-
returned by <a href="Rio.html#
|
5493
|
-
href="Rio.html#
|
5503
|
+
should be iterated through by <a href="Rio.html#M000045">Rio#each</a> or
|
5504
|
+
returned by <a href="Rio.html#M000052">Rio#getrec</a> <a
|
5505
|
+
href="Rio.html#M000060">Rio#rows</a> is intended for use by extensions,
|
5494
5506
|
where the concept of a row is reasonable. In the absensence of an extension
|
5495
|
-
behaves like <a href="Rio.html#
|
5507
|
+
behaves like <a href="Rio.html#M000057">Rio#records</a>
|
5496
5508
|
</p>
|
5497
5509
|
</div>
|
5498
5510
|
</div>
|
5499
5511
|
|
5500
|
-
<div id="method-
|
5501
|
-
<a name="
|
5512
|
+
<div id="method-M000108" class="method-detail">
|
5513
|
+
<a name="M000108"></a>
|
5502
5514
|
|
5503
5515
|
<div class="method-heading">
|
5504
|
-
<a href="Rio.src/
|
5505
|
-
onclick="popupCode('Rio.src/
|
5516
|
+
<a href="Rio.src/M000108.html" target="Code" class="method-signature"
|
5517
|
+
onclick="popupCode('Rio.src/M000108.html');return false;">
|
5506
5518
|
<span class="method-name">scheme</span><span class="method-args">(*args)</span>
|
5507
5519
|
</a>
|
5508
5520
|
</div>
|
5509
5521
|
|
5510
5522
|
<div class="method-description">
|
5511
5523
|
<p>
|
5512
|
-
Returns the scheme for <a href="Rio.html">Rio</a>’s URI like
|
5524
|
+
Returns the scheme for the <a href="Rio.html">Rio</a>’s URI like
|
5513
5525
|
URI#scheme where the <a href="Rio.html">Rio</a> is represented by a
|
5514
5526
|
standard URI. For Rios that are not represented by standard URIs one of <a
|
5515
|
-
href="Rio.html">Rio</a>’s non-standard schemes
|
5527
|
+
href="Rio.html">Rio</a>’s non-standard schemes is returned.
|
5516
5528
|
</p>
|
5517
5529
|
<pre>
|
5518
|
-
rio('http://ruby-doc.org/') #=> 'http'
|
5530
|
+
rio('http://ruby-doc.org/').scheme #=> 'http'
|
5519
5531
|
</pre>
|
5520
5532
|
</div>
|
5521
5533
|
</div>
|
5522
5534
|
|
5523
|
-
<div id="method-
|
5524
|
-
<a name="
|
5535
|
+
<div id="method-M000040" class="method-detail">
|
5536
|
+
<a name="M000040"></a>
|
5525
5537
|
|
5526
5538
|
<div class="method-heading">
|
5527
|
-
<a href="Rio.src/
|
5528
|
-
onclick="popupCode('Rio.src/
|
5539
|
+
<a href="Rio.src/M000040.html" target="Code" class="method-signature"
|
5540
|
+
onclick="popupCode('Rio.src/M000040.html');return false;">
|
5529
5541
|
<span class="method-name">seek</span><span class="method-args">(*args)</span>
|
5530
5542
|
</a>
|
5531
5543
|
</div>
|
@@ -5567,7 +5579,7 @@ Proxy for Dir#seek
|
|
5567
5579
|
</pre>
|
5568
5580
|
<p>
|
5569
5581
|
Seeks to a particular location in <em>ario</em>. <em>integer</em> must be a
|
5570
|
-
value returned by +Dir#tell+ or <a href="Rio.html#
|
5582
|
+
value returned by +Dir#tell+ or <a href="Rio.html#M000042">Rio#tell</a>.
|
5571
5583
|
</p>
|
5572
5584
|
<pre>
|
5573
5585
|
d = rio("testdir") #=> #<RIO::Rio:0x401b3c40>
|
@@ -5580,12 +5592,12 @@ value returned by +Dir#tell+ or <a href="Rio.html#M000043">Rio#tell</a>.
|
|
5580
5592
|
</div>
|
5581
5593
|
</div>
|
5582
5594
|
|
5583
|
-
<div id="method-
|
5584
|
-
<a name="
|
5595
|
+
<div id="method-M000175" class="method-detail">
|
5596
|
+
<a name="M000175"></a>
|
5585
5597
|
|
5586
5598
|
<div class="method-heading">
|
5587
|
-
<a href="Rio.src/
|
5588
|
-
onclick="popupCode('Rio.src/
|
5599
|
+
<a href="Rio.src/M000175.html" target="Code" class="method-signature"
|
5600
|
+
onclick="popupCode('Rio.src/M000175.html');return false;">
|
5589
5601
|
<span class="method-name">setgid?</span><span class="method-args">(*args)</span>
|
5590
5602
|
</a>
|
5591
5603
|
</div>
|
@@ -5603,12 +5615,12 @@ Returns <tt>true</tt> if the named file is a has the setgid bit set.
|
|
5603
5615
|
</div>
|
5604
5616
|
</div>
|
5605
5617
|
|
5606
|
-
<div id="method-
|
5607
|
-
<a name="
|
5618
|
+
<div id="method-M000176" class="method-detail">
|
5619
|
+
<a name="M000176"></a>
|
5608
5620
|
|
5609
5621
|
<div class="method-heading">
|
5610
|
-
<a href="Rio.src/
|
5611
|
-
onclick="popupCode('Rio.src/
|
5622
|
+
<a href="Rio.src/M000176.html" target="Code" class="method-signature"
|
5623
|
+
onclick="popupCode('Rio.src/M000176.html');return false;">
|
5612
5624
|
<span class="method-name">setuid?</span><span class="method-args">(*args)</span>
|
5613
5625
|
</a>
|
5614
5626
|
</div>
|
@@ -5626,12 +5638,12 @@ Returns <tt>true</tt> if the named file is a has the setuid bit set.
|
|
5626
5638
|
</div>
|
5627
5639
|
</div>
|
5628
5640
|
|
5629
|
-
<div id="method-
|
5630
|
-
<a name="
|
5641
|
+
<div id="method-M000177" class="method-detail">
|
5642
|
+
<a name="M000177"></a>
|
5631
5643
|
|
5632
5644
|
<div class="method-heading">
|
5633
|
-
<a href="Rio.src/
|
5634
|
-
onclick="popupCode('Rio.src/
|
5645
|
+
<a href="Rio.src/M000177.html" target="Code" class="method-signature"
|
5646
|
+
onclick="popupCode('Rio.src/M000177.html');return false;">
|
5635
5647
|
<span class="method-name">size</span><span class="method-args">(*args)</span>
|
5636
5648
|
</a>
|
5637
5649
|
</div>
|
@@ -5646,17 +5658,17 @@ Calls FileTest#size
|
|
5646
5658
|
<p>
|
5647
5659
|
Returns the size of <em>afile</em>. To get the length of the <a
|
5648
5660
|
href="Rio.html">Rio</a>’s string representation use <a
|
5649
|
-
href="Rio.html#
|
5661
|
+
href="Rio.html#M000011">Rio#length</a>
|
5650
5662
|
</p>
|
5651
5663
|
</div>
|
5652
5664
|
</div>
|
5653
5665
|
|
5654
|
-
<div id="method-
|
5655
|
-
<a name="
|
5666
|
+
<div id="method-M000178" class="method-detail">
|
5667
|
+
<a name="M000178"></a>
|
5656
5668
|
|
5657
5669
|
<div class="method-heading">
|
5658
|
-
<a href="Rio.src/
|
5659
|
-
onclick="popupCode('Rio.src/
|
5670
|
+
<a href="Rio.src/M000178.html" target="Code" class="method-signature"
|
5671
|
+
onclick="popupCode('Rio.src/M000178.html');return false;">
|
5660
5672
|
<span class="method-name">size?</span><span class="method-args">(*args)</span>
|
5661
5673
|
</a>
|
5662
5674
|
</div>
|
@@ -5675,12 +5687,12 @@ size, the size of the file otherwise.
|
|
5675
5687
|
</div>
|
5676
5688
|
</div>
|
5677
5689
|
|
5678
|
-
<div id="method-
|
5679
|
-
<a name="
|
5690
|
+
<div id="method-M000115" class="method-detail">
|
5691
|
+
<a name="M000115"></a>
|
5680
5692
|
|
5681
5693
|
<div class="method-heading">
|
5682
|
-
<a href="Rio.src/
|
5683
|
-
onclick="popupCode('Rio.src/
|
5694
|
+
<a href="Rio.src/M000115.html" target="Code" class="method-signature"
|
5695
|
+
onclick="popupCode('Rio.src/M000115.html');return false;">
|
5684
5696
|
<span class="method-name">slurp</span><span class="method-args">()</span>
|
5685
5697
|
</a>
|
5686
5698
|
</div>
|
@@ -5688,15 +5700,15 @@ size, the size of the file otherwise.
|
|
5688
5700
|
<div class="method-description">
|
5689
5701
|
<p>
|
5690
5702
|
Slurps the contents of the rio into a string. See also <a
|
5691
|
-
href="Rio.html#
|
5703
|
+
href="Rio.html#M000116">Rio#contents</a>
|
5692
5704
|
</p>
|
5693
5705
|
<pre>
|
5694
5706
|
astring = rio('afile.txt').slurp # slurp the entire contents of afile.txt into astring
|
5695
5707
|
</pre>
|
5696
5708
|
<p>
|
5697
5709
|
Alpha Note: Considering removing <a
|
5698
|
-
href="Rio.html#
|
5699
|
-
href="Rio.html#
|
5710
|
+
href="Rio.html#M000116">Rio#contents</a> and <a
|
5711
|
+
href="Rio.html#M000115">Rio#slurp</a> in favor of <tt>to_string</tt>. Is
|
5700
5712
|
this the Ruby way? Is it too confusing with a <tt><a
|
5701
5713
|
href="Rio.html#M000008">to_s</a></tt> and <tt>to_str</tt> already? Is it a
|
5702
5714
|
good idea?
|
@@ -5704,12 +5716,12 @@ good idea?
|
|
5704
5716
|
</div>
|
5705
5717
|
</div>
|
5706
5718
|
|
5707
|
-
<div id="method-
|
5708
|
-
<a name="
|
5719
|
+
<div id="method-M000154" class="method-detail">
|
5720
|
+
<a name="M000154"></a>
|
5709
5721
|
|
5710
5722
|
<div class="method-heading">
|
5711
|
-
<a href="Rio.src/
|
5712
|
-
onclick="popupCode('Rio.src/
|
5723
|
+
<a href="Rio.src/M000154.html" target="Code" class="method-signature"
|
5724
|
+
onclick="popupCode('Rio.src/M000154.html');return false;">
|
5713
5725
|
<span class="method-name">socket?</span><span class="method-args">()</span>
|
5714
5726
|
</a>
|
5715
5727
|
</div>
|
@@ -5764,12 +5776,12 @@ href="Rio.html">Rio</a>#/
|
|
5764
5776
|
</div>
|
5765
5777
|
</div>
|
5766
5778
|
|
5767
|
-
<div id="method-
|
5768
|
-
<a name="
|
5779
|
+
<div id="method-M000160" class="method-detail">
|
5780
|
+
<a name="M000160"></a>
|
5769
5781
|
|
5770
5782
|
<div class="method-heading">
|
5771
|
-
<a href="Rio.src/
|
5772
|
-
onclick="popupCode('Rio.src/
|
5783
|
+
<a href="Rio.src/M000160.html" target="Code" class="method-signature"
|
5784
|
+
onclick="popupCode('Rio.src/M000160.html');return false;">
|
5773
5785
|
<span class="method-name">stat</span><span class="method-args">(*args)</span>
|
5774
5786
|
</a>
|
5775
5787
|
</div>
|
@@ -5781,12 +5793,12 @@ Calls File#stat
|
|
5781
5793
|
</div>
|
5782
5794
|
</div>
|
5783
5795
|
|
5784
|
-
<div id="method-
|
5785
|
-
<a name="
|
5796
|
+
<div id="method-M000172" class="method-detail">
|
5797
|
+
<a name="M000172"></a>
|
5786
5798
|
|
5787
5799
|
<div class="method-heading">
|
5788
|
-
<a href="Rio.src/
|
5789
|
-
onclick="popupCode('Rio.src/
|
5800
|
+
<a href="Rio.src/M000172.html" target="Code" class="method-signature"
|
5801
|
+
onclick="popupCode('Rio.src/M000172.html');return false;">
|
5790
5802
|
<span class="method-name">sticky?</span><span class="method-args">(*args)</span>
|
5791
5803
|
</a>
|
5792
5804
|
</div>
|
@@ -5817,17 +5829,27 @@ Returns <tt>true</tt> if the named file is a has the sticky bit set.
|
|
5817
5829
|
<div class="method-description">
|
5818
5830
|
<p>
|
5819
5831
|
Create a new <a href="Rio.html">Rio</a> referencing the result of applying
|
5820
|
-
String#sub to the value returned by <a
|
5832
|
+
String#sub to the value returned by <a
|
5833
|
+
href="Rio.html#M000008">Rio#to_s</a>. So:
|
5821
5834
|
</p>
|
5835
|
+
<pre>
|
5836
|
+
ario.sub(re,string)
|
5837
|
+
</pre>
|
5838
|
+
<p>
|
5839
|
+
is equivelent to
|
5840
|
+
</p>
|
5841
|
+
<pre>
|
5842
|
+
rio(ario.to_s.sub(re,string))
|
5843
|
+
</pre>
|
5822
5844
|
</div>
|
5823
5845
|
</div>
|
5824
5846
|
|
5825
|
-
<div id="method-
|
5826
|
-
<a name="
|
5847
|
+
<div id="method-M000035" class="method-detail">
|
5848
|
+
<a name="M000035"></a>
|
5827
5849
|
|
5828
5850
|
<div class="method-heading">
|
5829
|
-
<a href="Rio.src/
|
5830
|
-
onclick="popupCode('Rio.src/
|
5851
|
+
<a href="Rio.src/M000035.html" target="Code" class="method-signature"
|
5852
|
+
onclick="popupCode('Rio.src/M000035.html');return false;">
|
5831
5853
|
<span class="method-name">symlink</span><span class="method-args">(dest)</span>
|
5832
5854
|
</a>
|
5833
5855
|
</div>
|
@@ -5835,7 +5857,7 @@ String#sub to the value returned by <a href="Rio.html#M000008">Rio#to_s</a>
|
|
5835
5857
|
<div class="method-description">
|
5836
5858
|
<p>
|
5837
5859
|
Creates a symbolic link <em>dest</em> which points to the <a
|
5838
|
-
href="Rio.html">Rio</a>’s <a href="Rio.html#
|
5860
|
+
href="Rio.html">Rio</a>’s <a href="Rio.html#M000084">Rio#fspath</a>.
|
5839
5861
|
Raises a NotImplementedError exception on platforms that do not support
|
5840
5862
|
symbolic links. <em>dest</em> may be a <a href="Rio.html">Rio</a>, a
|
5841
5863
|
String, or anything that will create an appropriate <a
|
@@ -5850,9 +5872,9 @@ Errno::EEXIST.
|
|
5850
5872
|
Returns the <a href="Rio.html">Rio</a> (not the symlink)
|
5851
5873
|
</p>
|
5852
5874
|
<p>
|
5853
|
-
<a href="Rio.html#
|
5875
|
+
<a href="Rio.html#M000035">Rio#symlink</a> differs from File#symlink when
|
5854
5876
|
the <a href="Rio.html">Rio</a> or the <em>dest</em> path has directory
|
5855
|
-
information. In this case <a href="Rio.html#
|
5877
|
+
information. In this case <a href="Rio.html#M000035">Rio#symlink</a>
|
5856
5878
|
creates a symlink that actually refers to the <a
|
5857
5879
|
href="Rio.html">Rio</a>’s location from the perspective of the
|
5858
5880
|
link’s location.
|
@@ -5889,12 +5911,12 @@ Examples
|
|
5889
5911
|
</div>
|
5890
5912
|
</div>
|
5891
5913
|
|
5892
|
-
<div id="method-
|
5893
|
-
<a name="
|
5914
|
+
<div id="method-M000155" class="method-detail">
|
5915
|
+
<a name="M000155"></a>
|
5894
5916
|
|
5895
5917
|
<div class="method-heading">
|
5896
|
-
<a href="Rio.src/
|
5897
|
-
onclick="popupCode('Rio.src/
|
5918
|
+
<a href="Rio.src/M000155.html" target="Code" class="method-signature"
|
5919
|
+
onclick="popupCode('Rio.src/M000155.html');return false;">
|
5898
5920
|
<span class="method-name">symlink?</span><span class="method-args">()</span>
|
5899
5921
|
</a>
|
5900
5922
|
</div>
|
@@ -5912,12 +5934,12 @@ Returns <tt>true</tt> if the named file is a symbolic link.
|
|
5912
5934
|
</div>
|
5913
5935
|
</div>
|
5914
5936
|
|
5915
|
-
<div id="method-
|
5916
|
-
<a name="
|
5937
|
+
<div id="method-M000078" class="method-detail">
|
5938
|
+
<a name="M000078"></a>
|
5917
5939
|
|
5918
5940
|
<div class="method-heading">
|
5919
|
-
<a href="Rio.src/
|
5920
|
-
onclick="popupCode('Rio.src/
|
5941
|
+
<a href="Rio.src/M000078.html" target="Code" class="method-signature"
|
5942
|
+
onclick="popupCode('Rio.src/M000078.html');return false;">
|
5921
5943
|
<span class="method-name">sync</span><span class="method-args">(arg=true,&block)</span>
|
5922
5944
|
</a>
|
5923
5945
|
</div>
|
@@ -5935,9 +5957,9 @@ will be set to <tt>true</tt> or <tt>false</tt> when opened, or set it
|
|
5935
5957
|
immediatly if already open. When sync mode is true, all output is
|
5936
5958
|
immediately flushed to the underlying operating system and is not buffered
|
5937
5959
|
internally. Returns the rio. See also <a
|
5938
|
-
href="Rio.html#
|
5939
|
-
href="Rio.html#
|
5940
|
-
href="Rio.html#
|
5960
|
+
href="Rio.html#M000145">Rio#fsync</a>, <a
|
5961
|
+
href="Rio.html#M000079">Rio#nosync</a>, <a
|
5962
|
+
href="Rio.html#M000078">Rio#sync</a>?.
|
5941
5963
|
</p>
|
5942
5964
|
<p>
|
5943
5965
|
If a block is given behaves like <tt>ario.sync(arg).each(&block)</tt>
|
@@ -5949,12 +5971,12 @@ If a block is given behaves like <tt>ario.sync(arg).each(&block)</tt>
|
|
5949
5971
|
</div>
|
5950
5972
|
</div>
|
5951
5973
|
|
5952
|
-
<div id="method-
|
5953
|
-
<a name="
|
5974
|
+
<div id="method-M000080" class="method-detail">
|
5975
|
+
<a name="M000080"></a>
|
5954
5976
|
|
5955
5977
|
<div class="method-heading">
|
5956
|
-
<a href="Rio.src/
|
5957
|
-
onclick="popupCode('Rio.src/
|
5978
|
+
<a href="Rio.src/M000080.html" target="Code" class="method-signature"
|
5979
|
+
onclick="popupCode('Rio.src/M000080.html');return false;">
|
5958
5980
|
<span class="method-name">sync?</span><span class="method-args">()</span>
|
5959
5981
|
</a>
|
5960
5982
|
</div>
|
@@ -5970,9 +5992,9 @@ Query the current ‘sync mode’ with IO#sync
|
|
5970
5992
|
Returns the current ``sync mode’’ of <em>ario</em>. When sync
|
5971
5993
|
mode is true, all output is immediately flushed to the underlying operating
|
5972
5994
|
system and is not buffered by Ruby internally. See also +<a
|
5973
|
-
href="Rio.html#
|
5974
|
-
href="Rio.html#
|
5975
|
-
href="Rio.html#
|
5995
|
+
href="Rio.html#M000145">Rio#fsync</a>+, <a
|
5996
|
+
href="Rio.html#M000078">Rio#sync</a>, <a
|
5997
|
+
href="Rio.html#M000079">Rio#nosync</a>
|
5976
5998
|
</p>
|
5977
5999
|
<pre>
|
5978
6000
|
f = rio("testfile")
|
@@ -5981,37 +6003,23 @@ href="Rio.html#M000080">Rio#nosync</a>
|
|
5981
6003
|
</div>
|
5982
6004
|
</div>
|
5983
6005
|
|
5984
|
-
<div id="method-
|
5985
|
-
<a name="
|
6006
|
+
<div id="method-M000042" class="method-detail">
|
6007
|
+
<a name="M000042"></a>
|
5986
6008
|
|
5987
6009
|
<div class="method-heading">
|
5988
|
-
<a href="Rio.src/
|
5989
|
-
onclick="popupCode('Rio.src/
|
6010
|
+
<a href="Rio.src/M000042.html" target="Code" class="method-signature"
|
6011
|
+
onclick="popupCode('Rio.src/M000042.html');return false;">
|
5990
6012
|
<span class="method-name">tell</span><span class="method-args">()</span>
|
5991
6013
|
</a>
|
5992
6014
|
</div>
|
5993
6015
|
|
5994
6016
|
<div class="method-description">
|
5995
6017
|
<p>
|
5996
|
-
See <a href="Rio.html#
|
6018
|
+
See <a href="Rio.html#M000041">Rio#pos</a>
|
5997
6019
|
</p>
|
5998
6020
|
</div>
|
5999
6021
|
</div>
|
6000
6022
|
|
6001
|
-
<div id="method-M000011" class="method-detail">
|
6002
|
-
<a name="M000011"></a>
|
6003
|
-
|
6004
|
-
<div class="method-heading">
|
6005
|
-
<a href="Rio.src/M000011.html" target="Code" class="method-signature"
|
6006
|
-
onclick="popupCode('Rio.src/M000011.html');return false;">
|
6007
|
-
<span class="method-name">to_rl</span><span class="method-args">()</span>
|
6008
|
-
</a>
|
6009
|
-
</div>
|
6010
|
-
|
6011
|
-
<div class="method-description">
|
6012
|
-
</div>
|
6013
|
-
</div>
|
6014
|
-
|
6015
6023
|
<div id="method-M000008" class="method-detail">
|
6016
6024
|
<a name="M000008"></a>
|
6017
6025
|
|
@@ -6024,46 +6032,63 @@ See <a href="Rio.html#M000042">Rio#pos</a>
|
|
6024
6032
|
|
6025
6033
|
<div class="method-description">
|
6026
6034
|
<p>
|
6027
|
-
returns the <a href="Rio.html#
|
6035
|
+
returns the <a href="Rio.html#M000084">Rio#fspath</a>, which is the path
|
6028
6036
|
for the <a href="Rio.html">Rio</a> on the underlying filesystem
|
6029
6037
|
</p>
|
6030
6038
|
</div>
|
6031
6039
|
</div>
|
6032
6040
|
|
6033
|
-
<div id="method-
|
6034
|
-
<a name="
|
6041
|
+
<div id="method-M000083" class="method-detail">
|
6042
|
+
<a name="M000083"></a>
|
6035
6043
|
|
6036
6044
|
<div class="method-heading">
|
6037
|
-
<a href="Rio.src/
|
6038
|
-
onclick="popupCode('Rio.src/
|
6045
|
+
<a href="Rio.src/M000083.html" target="Code" class="method-signature"
|
6046
|
+
onclick="popupCode('Rio.src/M000083.html');return false;">
|
6039
6047
|
<span class="method-name">to_uri</span><span class="method-args">()</span>
|
6040
6048
|
</a>
|
6041
6049
|
</div>
|
6042
6050
|
|
6043
6051
|
<div class="method-description">
|
6052
|
+
<p>
|
6053
|
+
For resources that have a URL (RFC1738) representation, this returns a URI
|
6054
|
+
object referencing it. Otherwise this raises NoMethodError.
|
6055
|
+
</p>
|
6056
|
+
<pre>
|
6057
|
+
rio('http://rubyforge.org/').to_uri #=> <URI::HTTP:0x818bd84 URL:http://rubyforge.org/>
|
6058
|
+
rio('adir/afile').to_uri #=> <URI::Generic:0x817d288 URL:adir/afile>
|
6059
|
+
</pre>
|
6044
6060
|
</div>
|
6045
6061
|
</div>
|
6046
6062
|
|
6047
|
-
<div id="method-
|
6048
|
-
<a name="
|
6063
|
+
<div id="method-M000082" class="method-detail">
|
6064
|
+
<a name="M000082"></a>
|
6049
6065
|
|
6050
6066
|
<div class="method-heading">
|
6051
|
-
<a href="Rio.src/
|
6052
|
-
onclick="popupCode('Rio.src/
|
6067
|
+
<a href="Rio.src/M000082.html" target="Code" class="method-signature"
|
6068
|
+
onclick="popupCode('Rio.src/M000082.html');return false;">
|
6053
6069
|
<span class="method-name">to_url</span><span class="method-args">()</span>
|
6054
6070
|
</a>
|
6055
6071
|
</div>
|
6056
6072
|
|
6057
6073
|
<div class="method-description">
|
6074
|
+
<p>
|
6075
|
+
For resources that have a absolute URL (RFC1738) representation, this
|
6076
|
+
returns a string containing that representation. For objects that do not
|
6077
|
+
this returns a RIORL (a descriptive pseudo-URL).
|
6078
|
+
</p>
|
6079
|
+
<pre>
|
6080
|
+
rio('/var/www/') #=> "file:///var/www/"
|
6081
|
+
rio('http://rio.rubyforge.org/') #=> "http://rio.rubyforge.org"
|
6082
|
+
</pre>
|
6058
6083
|
</div>
|
6059
6084
|
</div>
|
6060
6085
|
|
6061
|
-
<div id="method-
|
6062
|
-
<a name="
|
6086
|
+
<div id="method-M000034" class="method-detail">
|
6087
|
+
<a name="M000034"></a>
|
6063
6088
|
|
6064
6089
|
<div class="method-heading">
|
6065
|
-
<a href="Rio.src/
|
6066
|
-
onclick="popupCode('Rio.src/
|
6090
|
+
<a href="Rio.src/M000034.html" target="Code" class="method-signature"
|
6091
|
+
onclick="popupCode('Rio.src/M000034.html');return false;">
|
6067
6092
|
<span class="method-name">touch</span><span class="method-args">()</span>
|
6068
6093
|
</a>
|
6069
6094
|
</div>
|
@@ -6079,12 +6104,12 @@ href="Rio.html">Rio</a>. A file is created if it doesn’t exist.
|
|
6079
6104
|
</div>
|
6080
6105
|
</div>
|
6081
6106
|
|
6082
|
-
<div id="method-
|
6083
|
-
<a name="
|
6107
|
+
<div id="method-M000146" class="method-detail">
|
6108
|
+
<a name="M000146"></a>
|
6084
6109
|
|
6085
6110
|
<div class="method-heading">
|
6086
|
-
<a href="Rio.src/
|
6087
|
-
onclick="popupCode('Rio.src/
|
6111
|
+
<a href="Rio.src/M000146.html" target="Code" class="method-signature"
|
6112
|
+
onclick="popupCode('Rio.src/M000146.html');return false;">
|
6088
6113
|
<span class="method-name">tty?</span><span class="method-args">()</span>
|
6089
6114
|
</a>
|
6090
6115
|
</div>
|
@@ -6107,12 +6132,12 @@ Returns <tt>true</tt> if <em>ario</em> is associated with a terminal device
|
|
6107
6132
|
</div>
|
6108
6133
|
</div>
|
6109
6134
|
|
6110
|
-
<div id="method-
|
6111
|
-
<a name="
|
6135
|
+
<div id="method-M000147" class="method-detail">
|
6136
|
+
<a name="M000147"></a>
|
6112
6137
|
|
6113
6138
|
<div class="method-heading">
|
6114
|
-
<a href="Rio.src/
|
6115
|
-
onclick="popupCode('Rio.src/
|
6139
|
+
<a href="Rio.src/M000147.html" target="Code" class="method-signature"
|
6140
|
+
onclick="popupCode('Rio.src/M000147.html');return false;">
|
6116
6141
|
<span class="method-name">ungetc</span><span class="method-args">(*args)</span>
|
6117
6142
|
</a>
|
6118
6143
|
</div>
|
@@ -6138,12 +6163,12 @@ to read only the last of several characters that have been pushed back).
|
|
6138
6163
|
</div>
|
6139
6164
|
</div>
|
6140
6165
|
|
6141
|
-
<div id="method-
|
6142
|
-
<a name="
|
6166
|
+
<div id="method-M000066" class="method-detail">
|
6167
|
+
<a name="M000066"></a>
|
6143
6168
|
|
6144
6169
|
<div class="method-heading">
|
6145
|
-
<a href="Rio.src/
|
6146
|
-
onclick="popupCode('Rio.src/
|
6170
|
+
<a href="Rio.src/M000066.html" target="Code" class="method-signature"
|
6171
|
+
onclick="popupCode('Rio.src/M000066.html');return false;">
|
6147
6172
|
<span class="method-name">w</span><span class="method-args">()</span>
|
6148
6173
|
</a>
|
6149
6174
|
</div>
|
@@ -6160,7 +6185,7 @@ for output when no mode is specified.
|
|
6160
6185
|
Returns the <a href="Rio.html">Rio</a>
|
6161
6186
|
</p>
|
6162
6187
|
<p>
|
6163
|
-
See the discussion for <a href="Rio.html#
|
6188
|
+
See the discussion for <a href="Rio.html#M000062">Rio#a</a>.
|
6164
6189
|
</p>
|
6165
6190
|
<p>
|
6166
6191
|
Since ‘w’ is the implicit output mode used by default, this
|
@@ -6170,12 +6195,12 @@ time.
|
|
6170
6195
|
</div>
|
6171
6196
|
</div>
|
6172
6197
|
|
6173
|
-
<div id="method-
|
6174
|
-
<a name="
|
6198
|
+
<div id="method-M000067" class="method-detail">
|
6199
|
+
<a name="M000067"></a>
|
6175
6200
|
|
6176
6201
|
<div class="method-heading">
|
6177
|
-
<a href="Rio.src/
|
6178
|
-
onclick="popupCode('Rio.src/
|
6202
|
+
<a href="Rio.src/M000067.html" target="Code" class="method-signature"
|
6203
|
+
onclick="popupCode('Rio.src/M000067.html');return false;">
|
6179
6204
|
<span class="method-name">w!</span><span class="method-args">()</span>
|
6180
6205
|
</a>
|
6181
6206
|
</div>
|
@@ -6192,17 +6217,17 @@ for output when no mode is specified.
|
|
6192
6217
|
Returns the <a href="Rio.html">Rio</a>
|
6193
6218
|
</p>
|
6194
6219
|
<p>
|
6195
|
-
See the discussion for <a href="Rio.html#
|
6220
|
+
See the discussion for <a href="Rio.html#M000062">Rio#a</a>.
|
6196
6221
|
</p>
|
6197
6222
|
</div>
|
6198
6223
|
</div>
|
6199
6224
|
|
6200
|
-
<div id="method-
|
6201
|
-
<a name="
|
6225
|
+
<div id="method-M000170" class="method-detail">
|
6226
|
+
<a name="M000170"></a>
|
6202
6227
|
|
6203
6228
|
<div class="method-heading">
|
6204
|
-
<a href="Rio.src/
|
6205
|
-
onclick="popupCode('Rio.src/
|
6229
|
+
<a href="Rio.src/M000170.html" target="Code" class="method-signature"
|
6230
|
+
onclick="popupCode('Rio.src/M000170.html');return false;">
|
6206
6231
|
<span class="method-name">writable?</span><span class="method-args">(*args)</span>
|
6207
6232
|
</a>
|
6208
6233
|
</div>
|
@@ -6221,12 +6246,12 @@ id of this process.
|
|
6221
6246
|
</div>
|
6222
6247
|
</div>
|
6223
6248
|
|
6224
|
-
<div id="method-
|
6225
|
-
<a name="
|
6249
|
+
<div id="method-M000171" class="method-detail">
|
6250
|
+
<a name="M000171"></a>
|
6226
6251
|
|
6227
6252
|
<div class="method-heading">
|
6228
|
-
<a href="Rio.src/
|
6229
|
-
onclick="popupCode('Rio.src/
|
6253
|
+
<a href="Rio.src/M000171.html" target="Code" class="method-signature"
|
6254
|
+
onclick="popupCode('Rio.src/M000171.html');return false;">
|
6230
6255
|
<span class="method-name">writable_real?</span><span class="method-args">(*args)</span>
|
6231
6256
|
</a>
|
6232
6257
|
</div>
|
@@ -6245,12 +6270,12 @@ this process.
|
|
6245
6270
|
</div>
|
6246
6271
|
</div>
|
6247
6272
|
|
6248
|
-
<div id="method-
|
6249
|
-
<a name="
|
6273
|
+
<div id="method-M000135" class="method-detail">
|
6274
|
+
<a name="M000135"></a>
|
6250
6275
|
|
6251
6276
|
<div class="method-heading">
|
6252
|
-
<a href="Rio.src/
|
6253
|
-
onclick="popupCode('Rio.src/
|
6277
|
+
<a href="Rio.src/M000135.html" target="Code" class="method-signature"
|
6278
|
+
onclick="popupCode('Rio.src/M000135.html');return false;">
|
6254
6279
|
<span class="method-name">write</span><span class="method-args">(*argv)</span>
|
6255
6280
|
</a>
|
6256
6281
|
</div>
|
@@ -6270,12 +6295,12 @@ href="Rio.html#M000008">to_s</a></tt>. Returns the number of bytes written.
|
|
6270
6295
|
</div>
|
6271
6296
|
</div>
|
6272
6297
|
|
6273
|
-
<div id="method-
|
6274
|
-
<a name="
|
6298
|
+
<div id="method-M000134" class="method-detail">
|
6299
|
+
<a name="M000134"></a>
|
6275
6300
|
|
6276
6301
|
<div class="method-heading">
|
6277
|
-
<a href="Rio.src/
|
6278
|
-
onclick="popupCode('Rio.src/
|
6302
|
+
<a href="Rio.src/M000134.html" target="Code" class="method-signature"
|
6303
|
+
onclick="popupCode('Rio.src/M000134.html');return false;">
|
6279
6304
|
<span class="method-name">write!</span><span class="method-args">(*argv)</span>
|
6280
6305
|
</a>
|
6281
6306
|
</div>
|
@@ -6283,7 +6308,7 @@ href="Rio.html#M000008">to_s</a></tt>. Returns the number of bytes written.
|
|
6283
6308
|
<div class="method-description">
|
6284
6309
|
<p>
|
6285
6310
|
Writes the given objects to the rio as with <a
|
6286
|
-
href="Rio.html#
|
6311
|
+
href="Rio.html#M000135">Rio#write</a> and then closes the rio.
|
6287
6312
|
</p>
|
6288
6313
|
<p>
|
6289
6314
|
Equivalent to
|
@@ -6295,12 +6320,12 @@ Equivalent to
|
|
6295
6320
|
</div>
|
6296
6321
|
</div>
|
6297
6322
|
|
6298
|
-
<div id="method-
|
6299
|
-
<a name="
|
6323
|
+
<div id="method-M000179" class="method-detail">
|
6324
|
+
<a name="M000179"></a>
|
6300
6325
|
|
6301
6326
|
<div class="method-heading">
|
6302
|
-
<a href="Rio.src/
|
6303
|
-
onclick="popupCode('Rio.src/
|
6327
|
+
<a href="Rio.src/M000179.html" target="Code" class="method-signature"
|
6328
|
+
onclick="popupCode('Rio.src/M000179.html');return false;">
|
6304
6329
|
<span class="method-name">zero?</span><span class="method-args">(*args)</span>
|
6305
6330
|
</a>
|
6306
6331
|
</div>
|