rio 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +171 -0
- data/README +3 -16
- data/RUNME.1st.rb +1 -3
- data/Rakefile +10 -7
- data/VERSION +1 -1
- data/doc/ANNOUNCE +1 -1
- data/doc/RELEASE_NOTES +3 -4
- data/ex/colx.rb +8 -0
- data/ex/findinruby +16 -0
- data/ex/findruby +15 -0
- data/ex/passwd_report.rb +8 -0
- data/ex/prompt.rb +25 -0
- data/ex/rgb.txt.gz +0 -0
- data/ex/riocat +35 -0
- data/ex/riogunzip +31 -0
- data/ex/riogzip +24 -0
- data/ex/rioprompt.rb +6 -0
- data/ex/targz2zip +17 -0
- data/ex/tolf +11 -0
- data/lib/rio.rb +0 -3
- data/lib/rio/construct.rb +14 -20
- data/lib/rio/dir.rb +2 -2
- data/lib/rio/doc/INTRO.rb +12 -16
- data/lib/rio/ext.rb +2 -1
- data/lib/rio/ext/csv.rb +5 -1
- data/lib/rio/ext/yaml.rb +11 -12
- data/lib/rio/filter.rb +1 -1
- data/lib/rio/ftp.rb +1 -1
- data/lib/rio/if/dir.rb +2 -2
- data/lib/rio/if/grande.rb +7 -1
- data/lib/rio/if/yaml.rb +1 -1
- data/lib/rio/ioh.rb +11 -1
- data/lib/rio/ops/construct.rb +11 -10
- data/lib/rio/ops/dir.rb +38 -19
- data/lib/rio/rl/ioi.rb +2 -2
- data/lib/rio/scheme/temp.rb +2 -2
- data/lib/rio/state.rb +1 -1
- data/lib/rio/stream/open.rb +9 -6
- data/lib/rio/util.rb +49 -0
- data/lib/rio/version.rb +1 -1
- data/test/tc/all.rb +3 -1
- data/test/tc/cd1.rb +0 -3
- data/test/tc/clearsel.rb +1 -2
- data/test/tc/copy-from.rb +0 -3
- data/test/tc/copy-to.rb +0 -3
- data/test/tc/copyarray.rb +1 -4
- data/test/tc/copydir.rb +0 -3
- data/test/tc/copydirlines.rb +0 -3
- data/test/tc/copynonex.rb +0 -3
- data/test/tc/csv.rb +0 -3
- data/test/tc/dir.rb +0 -3
- data/test/tc/dir_iter.rb +384 -0
- data/test/tc/dirautoclose.rb +4 -7
- data/test/tc/dirent.rb +3 -5
- data/test/tc/dirss.rb +2 -5
- data/test/tc/each.rb +3 -3
- data/test/tc/each_break.rb +17 -28
- data/test/tc/edf.rb +1 -2
- data/test/tc/entary.rb +1 -4
- data/test/tc/expand_path.rb +1 -2
- data/test/tc/ext.rb +0 -3
- data/test/tc/fileno.rb +1 -2
- data/test/tc/get.rb +151 -0
- data/test/tc/lineno.rb +1 -2
- data/test/tc/methods.rb +1 -1
- data/test/tc/misc.rb +1 -5
- data/test/tc/nolines.rb +3 -4
- data/test/tc/noqae.rb +1 -4
- data/test/tc/pa.rb +1 -2
- data/test/tc/pathop.rb +0 -3
- data/test/tc/paths.rb +1 -3
- data/test/tc/qae.rb +1 -2
- data/test/tc/qae_riovar.rb +1 -2
- data/test/tc/records.rb +1 -2
- data/test/tc/rename.rb +1 -3
- data/test/tc/rename_assign.rb +0 -3
- data/test/tc/riorl.rb +82 -52
- data/test/tc/selnosel.rb +0 -3
- data/test/tc/sub.rb +0 -3
- data/test/tc/symlink.rb +1 -2
- data/test/tc/symlink0.rb +1 -2
- data/test/tc/symlink1.rb +1 -2
- data/test/tc/temp.rb +0 -3
- data/test/tc/tempdir.rb +0 -3
- data/test/tc/tempfile.rb +0 -3
- data/test/tc/testcase.rb +9 -4
- data/test/tc/yaml.rb +11 -1
- metadata +141 -386
- data/doc/rdoc/classes/Kernel.html +0 -181
- data/doc/rdoc/classes/Kernel.src/M000214.html +0 -18
- data/doc/rdoc/classes/RIO.html +0 -621
- data/doc/rdoc/classes/RIO.src/M000001.html +0 -18
- data/doc/rdoc/classes/RIO.src/M000002.html +0 -18
- data/doc/rdoc/classes/RIO.src/M000003.html +0 -18
- data/doc/rdoc/classes/RIO/Doc.html +0 -138
- data/doc/rdoc/classes/RIO/Doc/HOWTO.html +0 -1040
- data/doc/rdoc/classes/RIO/Doc/INTRO.html +0 -1613
- data/doc/rdoc/classes/RIO/Doc/MISC.html +0 -443
- data/doc/rdoc/classes/RIO/Doc/SYNOPSIS.html +0 -338
- data/doc/rdoc/classes/RIO/IF.html +0 -114
- data/doc/rdoc/classes/RIO/IF/CSV.html +0 -202
- data/doc/rdoc/classes/RIO/IF/CSV.src/M000004.html +0 -19
- data/doc/rdoc/classes/RIO/IF/CSV.src/M000005.html +0 -16
- data/doc/rdoc/classes/RIO/IF/CSV.src/M000006.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.html +0 -499
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000007.html +0 -19
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000008.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000009.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000010.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000011.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000012.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000013.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000014.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000015.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000016.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000017.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.html +0 -7121
- data/doc/rdoc/classes/RIO/Rio.src/M000018.html +0 -18
- data/doc/rdoc/classes/RIO/Rio.src/M000019.html +0 -20
- data/doc/rdoc/classes/RIO/Rio.src/M000020.html +0 -27
- data/doc/rdoc/classes/RIO/Rio.src/M000021.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000023.html +0 -19
- data/doc/rdoc/classes/RIO/Rio.src/M000024.html +0 -20
- data/doc/rdoc/classes/RIO/Rio.src/M000025.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000026.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000027.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000028.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000029.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000030.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000031.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000032.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000033.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000034.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000035.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000036.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000037.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000038.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000039.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000040.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000041.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000042.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000043.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000044.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000045.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000046.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000047.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000048.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000049.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000050.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000051.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000052.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000053.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000054.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000055.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000056.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000057.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000058.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000059.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000060.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000061.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000062.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000063.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000064.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000065.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000066.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000067.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000068.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000069.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000070.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000071.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000072.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000073.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000074.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000075.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000076.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000077.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000078.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000079.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000080.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000081.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000082.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000083.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000084.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000085.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000086.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000087.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000088.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000089.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000090.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000091.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000092.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000093.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000094.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000095.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000096.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000097.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000098.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000099.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000100.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000101.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000102.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000103.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000104.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000105.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000106.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000107.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000108.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000109.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000110.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000111.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000112.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000113.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000114.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000115.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000116.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000117.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000118.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000119.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000120.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000121.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000122.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000123.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000124.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000125.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000126.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000127.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000128.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000129.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000130.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000131.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000132.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000133.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000134.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000135.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000136.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000137.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000138.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000139.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000140.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000141.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000142.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000143.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000144.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000145.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000146.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000147.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000148.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000149.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000150.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000151.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000152.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000153.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000154.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000155.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000156.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000157.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000158.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000159.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000160.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000161.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000162.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000163.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000164.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000165.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000166.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000167.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000168.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000169.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000170.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000171.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000172.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000173.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000174.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000175.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000176.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000177.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000178.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000179.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000180.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000181.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000182.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000183.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000184.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000185.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000186.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000187.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000188.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000189.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000190.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000191.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000192.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000193.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000194.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000195.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000196.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000197.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000198.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000199.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000200.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000201.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000202.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000203.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000204.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000205.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000206.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000207.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000208.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000209.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000210.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000211.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000212.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000213.html +0 -16
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/README.html +0 -243
- data/doc/rdoc/files/lib/rio/constructor_rb.html +0 -142
- data/doc/rdoc/files/lib/rio/doc/HOWTO_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/doc/INTRO_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/doc/MISC_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/doc/SYNOPSIS_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/basic_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/csv_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/dir_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/file_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/fileordir_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/grande_entry_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/grande_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/grande_stream_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/internal_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/path_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/stream_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/string_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/temp_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/test_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/yaml_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/kernel_rb.html +0 -142
- data/doc/rdoc/files/lib/rio_rb.html +0 -154
- data/doc/rdoc/fr_class_index.html +0 -37
- data/doc/rdoc/fr_file_index.html +0 -49
- data/doc/rdoc/fr_method_index.html +0 -241
- data/doc/rdoc/index.html +0 -24
- data/doc/rdoc/rdoc-style.css +0 -384
- data/test/methods/path.rb +0 -12
@@ -1,181 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Module: Kernel</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td class="class-mod"><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">Kernel</td>
|
54
|
-
<td rowspan="2" class="class-header-space-col"></td>
|
55
|
-
<td rowspan="2">
|
56
|
-
<a class="in-url" href="../files/lib/rio/kernel_rb.html">
|
57
|
-
lib/rio/kernel.rb
|
58
|
-
</a>
|
59
|
-
|
60
|
-
</td>
|
61
|
-
</tr>
|
62
|
-
|
63
|
-
</table>
|
64
|
-
</div>
|
65
|
-
<!-- banner header -->
|
66
|
-
|
67
|
-
<div id="bodyContent">
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
<div id="contextContent">
|
72
|
-
|
73
|
-
<div id="description">
|
74
|
-
<p>
|
75
|
-
To create the documentation for Rio run the command
|
76
|
-
</p>
|
77
|
-
<pre>
|
78
|
-
rake rdoc
|
79
|
-
</pre>
|
80
|
-
<p>
|
81
|
-
from the distribution directory. Then point your browser at the
|
82
|
-
‘doc/rdoc’ directory.
|
83
|
-
</p>
|
84
|
-
<p>
|
85
|
-
Suggested Reading
|
86
|
-
</p>
|
87
|
-
<ul>
|
88
|
-
<li><a href="RIO/Doc/SYNOPSIS.html">RIO::Doc::SYNOPSIS</a>
|
89
|
-
|
90
|
-
</li>
|
91
|
-
<li><a href="RIO/Doc/INTRO.html">RIO::Doc::INTRO</a>
|
92
|
-
|
93
|
-
</li>
|
94
|
-
<li><a href="RIO/Doc/HOWTO.html">RIO::Doc::HOWTO</a>
|
95
|
-
|
96
|
-
</li>
|
97
|
-
<li><a href="RIO/Rio.html">RIO::Rio</a>
|
98
|
-
|
99
|
-
</li>
|
100
|
-
</ul>
|
101
|
-
<p>
|
102
|
-
<b>Rio is pre-alpha software. The documented interface and behavior is
|
103
|
-
subject to change without notice.</b>
|
104
|
-
</p>
|
105
|
-
|
106
|
-
</div>
|
107
|
-
|
108
|
-
|
109
|
-
</div>
|
110
|
-
|
111
|
-
<div id="method-list">
|
112
|
-
<h3 class="section-bar">Methods</h3>
|
113
|
-
|
114
|
-
<div class="name-list">
|
115
|
-
<a href="#M000215">io</a>
|
116
|
-
<a href="#M000214">rio</a>
|
117
|
-
</div>
|
118
|
-
</div>
|
119
|
-
|
120
|
-
</div>
|
121
|
-
|
122
|
-
|
123
|
-
<!-- if includes -->
|
124
|
-
|
125
|
-
<div id="section">
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
<!-- if method_list -->
|
135
|
-
<div id="methods">
|
136
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
137
|
-
|
138
|
-
<div id="method-M000215" class="method-detail">
|
139
|
-
<a name="M000215"></a>
|
140
|
-
|
141
|
-
<div class="method-heading">
|
142
|
-
<span class="method-name">io</span><span class="method-args">(*args)</span>
|
143
|
-
</div>
|
144
|
-
|
145
|
-
<div class="method-description">
|
146
|
-
<p>
|
147
|
-
Alias for <a href="Kernel.html#M000214">rio</a>
|
148
|
-
</p>
|
149
|
-
</div>
|
150
|
-
</div>
|
151
|
-
|
152
|
-
<div id="method-M000214" class="method-detail">
|
153
|
-
<a name="M000214"></a>
|
154
|
-
|
155
|
-
<div class="method-heading">
|
156
|
-
<a href="Kernel.src/M000214.html" target="Code" class="method-signature"
|
157
|
-
onclick="popupCode('Kernel.src/M000214.html');return false;">
|
158
|
-
<span class="method-name">rio</span><span class="method-args">(*args) {|self| ...}</span>
|
159
|
-
</a>
|
160
|
-
</div>
|
161
|
-
|
162
|
-
<div class="method-description">
|
163
|
-
<p>
|
164
|
-
Shortcut for <a href="RIO.html#M000001">RIO.rio</a>
|
165
|
-
</p>
|
166
|
-
</div>
|
167
|
-
</div>
|
168
|
-
|
169
|
-
|
170
|
-
</div>
|
171
|
-
|
172
|
-
|
173
|
-
</div>
|
174
|
-
|
175
|
-
|
176
|
-
<div id="validator-badges">
|
177
|
-
<p><small>Copyright © 2005 Christopher Kleckner. <a href="http://www.gnu.org/licenses/gpl.html">All rights reserved</a>.</small></p>
|
178
|
-
</div>
|
179
|
-
|
180
|
-
</body>
|
181
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>rio (Kernel)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/rio/kernel.rb, line 42</span>
|
14
|
-
42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rio</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) <span class="ruby-comment cmt"># :yields: self</span>
|
15
|
-
43: <span class="ruby-constant">RIO</span><span class="ruby-operator">::</span><span class="ruby-constant">Rio</span>.<span class="ruby-identifier">rio</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
16
|
-
44: <span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
data/doc/rdoc/classes/RIO.html
DELETED
@@ -1,621 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Module: RIO</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td class="class-mod"><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">RIO</td>
|
54
|
-
<td rowspan="2" class="class-header-space-col"></td>
|
55
|
-
<td rowspan="2">
|
56
|
-
<a class="in-url" href="../files/lib/rio_rb.html">
|
57
|
-
lib/rio.rb
|
58
|
-
</a>
|
59
|
-
|
60
|
-
<a class="in-url" href="../files/lib/rio/doc/HOWTO_rb.html">
|
61
|
-
lib/rio/doc/HOWTO.rb
|
62
|
-
</a>
|
63
|
-
|
64
|
-
<a class="in-url" href="../files/lib/rio/doc/INTRO_rb.html">
|
65
|
-
lib/rio/doc/INTRO.rb
|
66
|
-
</a>
|
67
|
-
|
68
|
-
<a class="in-url" href="../files/lib/rio/doc/MISC_rb.html">
|
69
|
-
lib/rio/doc/MISC.rb
|
70
|
-
</a>
|
71
|
-
|
72
|
-
<a class="in-url" href="../files/lib/rio/doc/SYNOPSIS_rb.html">
|
73
|
-
lib/rio/doc/SYNOPSIS.rb
|
74
|
-
</a>
|
75
|
-
|
76
|
-
<a class="in-url" href="../files/lib/rio/if/basic_rb.html">
|
77
|
-
lib/rio/if/basic.rb
|
78
|
-
</a>
|
79
|
-
|
80
|
-
<a class="in-url" href="../files/lib/rio/if/csv_rb.html">
|
81
|
-
lib/rio/if/csv.rb
|
82
|
-
</a>
|
83
|
-
|
84
|
-
<a class="in-url" href="../files/lib/rio/if/dir_rb.html">
|
85
|
-
lib/rio/if/dir.rb
|
86
|
-
</a>
|
87
|
-
|
88
|
-
<a class="in-url" href="../files/lib/rio/if/file_rb.html">
|
89
|
-
lib/rio/if/file.rb
|
90
|
-
</a>
|
91
|
-
|
92
|
-
<a class="in-url" href="../files/lib/rio/if/fileordir_rb.html">
|
93
|
-
lib/rio/if/fileordir.rb
|
94
|
-
</a>
|
95
|
-
|
96
|
-
<a class="in-url" href="../files/lib/rio/if/grande_rb.html">
|
97
|
-
lib/rio/if/grande.rb
|
98
|
-
</a>
|
99
|
-
|
100
|
-
<a class="in-url" href="../files/lib/rio/if/grande_entry_rb.html">
|
101
|
-
lib/rio/if/grande_entry.rb
|
102
|
-
</a>
|
103
|
-
|
104
|
-
<a class="in-url" href="../files/lib/rio/if/grande_stream_rb.html">
|
105
|
-
lib/rio/if/grande_stream.rb
|
106
|
-
</a>
|
107
|
-
|
108
|
-
<a class="in-url" href="../files/lib/rio/if/internal_rb.html">
|
109
|
-
lib/rio/if/internal.rb
|
110
|
-
</a>
|
111
|
-
|
112
|
-
<a class="in-url" href="../files/lib/rio/if/path_rb.html">
|
113
|
-
lib/rio/if/path.rb
|
114
|
-
</a>
|
115
|
-
|
116
|
-
<a class="in-url" href="../files/lib/rio/if/stream_rb.html">
|
117
|
-
lib/rio/if/stream.rb
|
118
|
-
</a>
|
119
|
-
|
120
|
-
<a class="in-url" href="../files/lib/rio/if/string_rb.html">
|
121
|
-
lib/rio/if/string.rb
|
122
|
-
</a>
|
123
|
-
|
124
|
-
<a class="in-url" href="../files/lib/rio/if/temp_rb.html">
|
125
|
-
lib/rio/if/temp.rb
|
126
|
-
</a>
|
127
|
-
|
128
|
-
<a class="in-url" href="../files/lib/rio/if/test_rb.html">
|
129
|
-
lib/rio/if/test.rb
|
130
|
-
</a>
|
131
|
-
|
132
|
-
<a class="in-url" href="../files/lib/rio/if/yaml_rb.html">
|
133
|
-
lib/rio/if/yaml.rb
|
134
|
-
</a>
|
135
|
-
|
136
|
-
<a class="in-url" href="../files/lib/rio/constructor_rb.html">
|
137
|
-
lib/rio/constructor.rb
|
138
|
-
</a>
|
139
|
-
|
140
|
-
</td>
|
141
|
-
</tr>
|
142
|
-
|
143
|
-
</table>
|
144
|
-
</div>
|
145
|
-
<!-- banner header -->
|
146
|
-
|
147
|
-
<div id="bodyContent">
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
<div id="contextContent">
|
152
|
-
|
153
|
-
<div id="description">
|
154
|
-
<p>
|
155
|
-
To create the documentation for <a href="RIO/Rio.html">Rio</a> run the
|
156
|
-
command
|
157
|
-
</p>
|
158
|
-
<pre>
|
159
|
-
rake rdoc
|
160
|
-
</pre>
|
161
|
-
<p>
|
162
|
-
from the distribution directory. Then point your browser at the
|
163
|
-
‘doc/rdoc’ directory.
|
164
|
-
</p>
|
165
|
-
<p>
|
166
|
-
Suggested Reading
|
167
|
-
</p>
|
168
|
-
<ul>
|
169
|
-
<li><a href="RIO/Doc/SYNOPSIS.html">RIO::Doc::SYNOPSIS</a>
|
170
|
-
|
171
|
-
</li>
|
172
|
-
<li><a href="RIO/Doc/INTRO.html">RIO::Doc::INTRO</a>
|
173
|
-
|
174
|
-
</li>
|
175
|
-
<li><a href="RIO/Doc/HOWTO.html">RIO::Doc::HOWTO</a>
|
176
|
-
|
177
|
-
</li>
|
178
|
-
<li><a href="RIO/Rio.html">RIO::Rio</a>
|
179
|
-
|
180
|
-
</li>
|
181
|
-
</ul>
|
182
|
-
<p>
|
183
|
-
<b><a href="RIO/Rio.html">Rio</a> is pre-alpha software. The documented
|
184
|
-
interface and behavior is subject to change without notice.</b>
|
185
|
-
</p>
|
186
|
-
|
187
|
-
</div>
|
188
|
-
|
189
|
-
|
190
|
-
</div>
|
191
|
-
|
192
|
-
<div id="method-list">
|
193
|
-
<h3 class="section-bar">Methods</h3>
|
194
|
-
|
195
|
-
<div class="name-list">
|
196
|
-
<a href="#M000002">cwd</a>
|
197
|
-
<a href="#M000001">rio</a>
|
198
|
-
<a href="#M000003">root</a>
|
199
|
-
</div>
|
200
|
-
</div>
|
201
|
-
|
202
|
-
</div>
|
203
|
-
|
204
|
-
|
205
|
-
<!-- if includes -->
|
206
|
-
|
207
|
-
<div id="section">
|
208
|
-
|
209
|
-
<div id="class-list">
|
210
|
-
<h3 class="section-bar">Classes and Modules</h3>
|
211
|
-
|
212
|
-
Module <a href="RIO/Doc.html" class="link">RIO::Doc</a><br />
|
213
|
-
Module <a href="RIO/IF.html" class="link">RIO::IF</a><br />
|
214
|
-
Class <a href="RIO/Rio.html" class="link">RIO::Rio</a><br />
|
215
|
-
|
216
|
-
</div>
|
217
|
-
|
218
|
-
<div id="constants-list">
|
219
|
-
<h3 class="section-bar">Constants</h3>
|
220
|
-
|
221
|
-
<div class="name-list">
|
222
|
-
<table summary="Constants">
|
223
|
-
<tr class="top-aligned-row context-row">
|
224
|
-
<td class="context-item-name">SEEK_SET</td>
|
225
|
-
<td>=</td>
|
226
|
-
<td class="context-item-value">IO::SEEK_SET</td>
|
227
|
-
</tr>
|
228
|
-
<tr class="top-aligned-row context-row">
|
229
|
-
<td class="context-item-name">SEEK_END</td>
|
230
|
-
<td>=</td>
|
231
|
-
<td class="context-item-value">IO::SEEK_END</td>
|
232
|
-
</tr>
|
233
|
-
<tr class="top-aligned-row context-row">
|
234
|
-
<td class="context-item-name">SEEK_CUR</td>
|
235
|
-
<td>=</td>
|
236
|
-
<td class="context-item-value">IO::SEEK_CUR</td>
|
237
|
-
</tr>
|
238
|
-
</table>
|
239
|
-
</div>
|
240
|
-
</div>
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
<!-- if method_list -->
|
248
|
-
<div id="methods">
|
249
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
250
|
-
|
251
|
-
<div id="method-M000002" class="method-detail">
|
252
|
-
<a name="M000002"></a>
|
253
|
-
|
254
|
-
<div class="method-heading">
|
255
|
-
<a href="RIO.src/M000002.html" target="Code" class="method-signature"
|
256
|
-
onclick="popupCode('RIO.src/M000002.html');return false;">
|
257
|
-
<span class="method-name">cwd</span><span class="method-args">(*args) {|self| ...}</span>
|
258
|
-
</a>
|
259
|
-
</div>
|
260
|
-
|
261
|
-
<div class="method-description">
|
262
|
-
<p>
|
263
|
-
Create a <a href="RIO/Rio.html">Rio</a> as with <a
|
264
|
-
href="RIO.html#M000001">RIO#rio</a> which refers to the current working
|
265
|
-
directory
|
266
|
-
</p>
|
267
|
-
<pre>
|
268
|
-
wd = RIO.cwd
|
269
|
-
</pre>
|
270
|
-
</div>
|
271
|
-
</div>
|
272
|
-
|
273
|
-
<div id="method-M000001" class="method-detail">
|
274
|
-
<a name="M000001"></a>
|
275
|
-
|
276
|
-
<div class="method-heading">
|
277
|
-
<a href="RIO.src/M000001.html" target="Code" class="method-signature"
|
278
|
-
onclick="popupCode('RIO.src/M000001.html');return false;">
|
279
|
-
<span class="method-name">rio</span><span class="method-args">(*args) {|self| ...}</span>
|
280
|
-
</a>
|
281
|
-
</div>
|
282
|
-
|
283
|
-
<div class="method-description">
|
284
|
-
<p>
|
285
|
-
<a href="RIO/Rio.html">Rio</a> Constructor
|
286
|
-
</p>
|
287
|
-
<p>
|
288
|
-
For purposes of discussion, we divide Rios into two catagories, those that
|
289
|
-
have a path and those that don’t.
|
290
|
-
</p>
|
291
|
-
<h4>Creating a <a href="RIO/Rio.html">Rio</a> that has a path</h4>
|
292
|
-
<p>
|
293
|
-
To create a <a href="RIO/Rio.html">Rio</a> that has a path the arguments to
|
294
|
-
<tt>rio</tt> may be:
|
295
|
-
</p>
|
296
|
-
<ul>
|
297
|
-
<li>a string representing the entire path. The separator used for Rios is as
|
298
|
-
specified in RFC1738 (’/’).
|
299
|
-
|
300
|
-
<pre>
|
301
|
-
rio('adir/afile')
|
302
|
-
</pre>
|
303
|
-
</li>
|
304
|
-
<li>a string representing a fully qualified <tt>file</tt> URL as per RFC1738
|
305
|
-
|
306
|
-
<pre>
|
307
|
-
rio('file:///atopleveldir/adir/afile')
|
308
|
-
</pre>
|
309
|
-
</li>
|
310
|
-
<li>a <tt>URI</tt> object representing a <tt>file</tt> or generic <tt>URL</tt>
|
311
|
-
|
312
|
-
<pre>
|
313
|
-
rio(URI('adir/afile'))
|
314
|
-
</pre>
|
315
|
-
</li>
|
316
|
-
<li>the components of a path as separate arguments
|
317
|
-
|
318
|
-
<pre>
|
319
|
-
rio('adir','afile')
|
320
|
-
</pre>
|
321
|
-
</li>
|
322
|
-
<li>the components of a path as an array of separate arguments
|
323
|
-
|
324
|
-
<pre>
|
325
|
-
rio(%w/adir afile/)
|
326
|
-
</pre>
|
327
|
-
</li>
|
328
|
-
<li>another <a href="RIO/Rio.html">Rio</a>
|
329
|
-
|
330
|
-
<pre>
|
331
|
-
another_rio = rio('adir/afile')
|
332
|
-
rio(another_rio)
|
333
|
-
</pre>
|
334
|
-
</li>
|
335
|
-
<li>any object whose <tt>to_s</tt> method returns one of the above
|
336
|
-
|
337
|
-
<pre>
|
338
|
-
rio(Pathname.new('apath'))
|
339
|
-
</pre>
|
340
|
-
</li>
|
341
|
-
<li>any combination of the above either as separate arguments or as elements of
|
342
|
-
an array,
|
343
|
-
|
344
|
-
<pre>
|
345
|
-
another_rio = rio('dir1/dir2')
|
346
|
-
auri = URI('dir4/dir5)
|
347
|
-
rio(another_rio,'dir3',auri,'dir6/dir7')
|
348
|
-
</pre>
|
349
|
-
</li>
|
350
|
-
</ul>
|
351
|
-
<h5>Creating a <a href="RIO/Rio.html">Rio</a> that refers to a web page</h5>
|
352
|
-
<p>
|
353
|
-
To create a <a href="RIO/Rio.html">Rio</a> that refers to a web page the
|
354
|
-
arguments to <tt>rio</tt> may be:
|
355
|
-
</p>
|
356
|
-
<ul>
|
357
|
-
<li>a string representing a fully qualified <tt>http</tt> URL
|
358
|
-
|
359
|
-
<pre>
|
360
|
-
rio('http://ruby-doc.org/index.html')
|
361
|
-
</pre>
|
362
|
-
</li>
|
363
|
-
<li>a <tt>URI</tt> object representing a <tt>http</tt> <tt>URL</tt>
|
364
|
-
|
365
|
-
<pre>
|
366
|
-
rio(URI('http://ruby-doc.org/index.html'))
|
367
|
-
</pre>
|
368
|
-
</li>
|
369
|
-
<li>either of the above with additional path elements
|
370
|
-
|
371
|
-
<pre>
|
372
|
-
rio('http://www.ruby-doc.org/','core','classes/Object.html')
|
373
|
-
</pre>
|
374
|
-
</li>
|
375
|
-
</ul>
|
376
|
-
<h5>Creating a <a href="RIO/Rio.html">Rio</a> that refers to a file or directory on a FTP server</h5>
|
377
|
-
<p>
|
378
|
-
To create a <a href="RIO/Rio.html">Rio</a> that refers to a file on a FTP
|
379
|
-
server the arguments to <tt>rio</tt> may be:
|
380
|
-
</p>
|
381
|
-
<ul>
|
382
|
-
<li>a string representing a fully qualified <tt>ftp</tt> URL
|
383
|
-
|
384
|
-
<pre>
|
385
|
-
rio('ftp://user:password@ftp.example.com/afile.tar.gz')
|
386
|
-
</pre>
|
387
|
-
</li>
|
388
|
-
<li>a <tt>URI</tt> object representing a <tt>ftp</tt> <tt>URL</tt>
|
389
|
-
|
390
|
-
<pre>
|
391
|
-
rio(URI('ftp://ftp.example.com/afile.tar.gz'))
|
392
|
-
</pre>
|
393
|
-
</li>
|
394
|
-
<li>either of the above with additional path elements
|
395
|
-
|
396
|
-
<pre>
|
397
|
-
rio('ftp://ftp.gnu.org/pub/gnu','emacs','windows','README')
|
398
|
-
</pre>
|
399
|
-
</li>
|
400
|
-
</ul>
|
401
|
-
<h4>Creating Rios that do not have a path</h4>
|
402
|
-
<p>
|
403
|
-
To create a <a href="RIO/Rio.html">Rio</a> without a path, the first
|
404
|
-
argument to <tt>rio</tt> is usually either a single character or a symbol.
|
405
|
-
</p>
|
406
|
-
<h5>Creating a <a href="RIO/Rio.html">Rio</a> that refers to a clone of your programs stdin or stdout.</h5>
|
407
|
-
<p>
|
408
|
-
<tt>rio(?-)</tt> (mnemonic: ’-’ is used by some Unix programs
|
409
|
-
to specify stdin or stdout in place of a file)
|
410
|
-
</p>
|
411
|
-
<p>
|
412
|
-
<tt>rio(:stdio)</tt>
|
413
|
-
</p>
|
414
|
-
<p>
|
415
|
-
Just as a <a href="RIO/Rio.html">Rio</a> that refers to a file, does not
|
416
|
-
know whether that file will be opened for reading or writing until an I/O
|
417
|
-
operation is specified, a <tt>stdio:</tt> <a href="RIO/Rio.html">Rio</a>
|
418
|
-
does not know whether it will connect to stdin or stdout until an I/O
|
419
|
-
operation is specified.
|
420
|
-
</p>
|
421
|
-
<p>
|
422
|
-
Currently :stdin and :stdout are allowed as synonyms for :stdio. This
|
423
|
-
allows one to write
|
424
|
-
</p>
|
425
|
-
<pre>
|
426
|
-
rio(:stdout).puts("Hello :stdout")
|
427
|
-
</pre>
|
428
|
-
<p>
|
429
|
-
which is reasonable. It also allows one to write
|
430
|
-
</p>
|
431
|
-
<pre>
|
432
|
-
rio(:stdin).puts("Hello :stdin")
|
433
|
-
</pre>
|
434
|
-
<p>
|
435
|
-
which is not reasonable and will be disallowed in future releases.
|
436
|
-
</p>
|
437
|
-
<h5>Creating a <a href="RIO/Rio.html">Rio</a> that refers to a clone of your programs stderr.</h5>
|
438
|
-
<p>
|
439
|
-
<tt>rio(?=)</tt> (mnemonic: ’-’ refers to fileno 1, so
|
440
|
-
’=’ refers to fileno 2)
|
441
|
-
</p>
|
442
|
-
<p>
|
443
|
-
<tt>rio(:stderr)</tt>
|
444
|
-
</p>
|
445
|
-
<h5>Creating a <a href="RIO/Rio.html">Rio</a> that refers to an arbitrary IO object.</h5>
|
446
|
-
<pre>
|
447
|
-
an_io = ::File.new('afile')
|
448
|
-
rio(an_io)
|
449
|
-
</pre>
|
450
|
-
<h5>Creating a <a href="RIO/Rio.html">Rio</a> that refers to a file descriptor</h5>
|
451
|
-
<p>
|
452
|
-
<tt>rio(?#,file_descriptor)</tt> (mnemonic: a file descriptor is a number
|
453
|
-
’#’)
|
454
|
-
</p>
|
455
|
-
<p>
|
456
|
-
<tt>rio(:fd,file_descriptor)</tt>
|
457
|
-
</p>
|
458
|
-
<pre>
|
459
|
-
an_io = ::File.new('afile')
|
460
|
-
fnum = an_io.fileno
|
461
|
-
rio(?#,fnum)
|
462
|
-
</pre>
|
463
|
-
<h5>Creating a <a href="RIO/Rio.html">Rio</a> that refers to a StringIO object</h5>
|
464
|
-
<p>
|
465
|
-
<tt>rio(?")</tt> (mnemonic: ’"’ surrounds strings)
|
466
|
-
</p>
|
467
|
-
<p>
|
468
|
-
<tt>rio(:strio)</tt>
|
469
|
-
</p>
|
470
|
-
<p>
|
471
|
-
Alpha note: Should :strio be changed to :stringio, or even :string. Should
|
472
|
-
more than one be allowed? I am leaning toward :string
|
473
|
-
</p>
|
474
|
-
<ul>
|
475
|
-
<li>create a <a href="RIO/Rio.html">Rio</a> that refers to a string that it
|
476
|
-
creates
|
477
|
-
|
478
|
-
<pre>
|
479
|
-
rio(?")
|
480
|
-
</pre>
|
481
|
-
</li>
|
482
|
-
<li>create a <a href="RIO/Rio.html">Rio</a> that refers to a string of your
|
483
|
-
choosing
|
484
|
-
|
485
|
-
<pre>
|
486
|
-
astring = ""
|
487
|
-
rio(?",astring)
|
488
|
-
</pre>
|
489
|
-
</li>
|
490
|
-
</ul>
|
491
|
-
<h5>Creating a <a href="RIO/Rio.html">Rio</a> that refers to a temporary object</h5>
|
492
|
-
<p>
|
493
|
-
To create a temporary object that will become a file (Tempfile) or a
|
494
|
-
temporary directory, depending on how it is used.
|
495
|
-
</p>
|
496
|
-
<p>
|
497
|
-
<tt>rio(??)</tt> (mnemonic: ’?’ you don’t know its name)
|
498
|
-
</p>
|
499
|
-
<p>
|
500
|
-
<tt>rio(:temp)</tt>
|
501
|
-
</p>
|
502
|
-
<p>
|
503
|
-
The following are also supported, to specify file or directory
|
504
|
-
</p>
|
505
|
-
<p>
|
506
|
-
<tt>rio(:tempfile)</tt>
|
507
|
-
</p>
|
508
|
-
<p>
|
509
|
-
<tt>rio(:tempdir)</tt>
|
510
|
-
</p>
|
511
|
-
<pre>
|
512
|
-
rio(??)
|
513
|
-
rio(??,basename='rio',tmpdir=Dir::tmpdir)
|
514
|
-
</pre>
|
515
|
-
<p>
|
516
|
-
To create a temporary object that will become a file or a directory,
|
517
|
-
depending on how you use it:
|
518
|
-
</p>
|
519
|
-
<pre>
|
520
|
-
rio(??)
|
521
|
-
rio(??,basename='rio',tmpdir=Dir::tmpdir)
|
522
|
-
</pre>
|
523
|
-
<p>
|
524
|
-
To force it to become a file
|
525
|
-
</p>
|
526
|
-
<pre>
|
527
|
-
rio(??).file
|
528
|
-
</pre>
|
529
|
-
<p>
|
530
|
-
or just write to it.
|
531
|
-
</p>
|
532
|
-
<p>
|
533
|
-
To force it to become a directory:
|
534
|
-
</p>
|
535
|
-
<pre>
|
536
|
-
rio(??).mkdir
|
537
|
-
</pre>
|
538
|
-
<p>
|
539
|
-
or
|
540
|
-
</p>
|
541
|
-
<pre>
|
542
|
-
rio(??).chdir
|
543
|
-
</pre>
|
544
|
-
<h5>Creating a <a href="RIO/Rio.html">Rio</a> that refers to an arbitrary TCPSocket</h5>
|
545
|
-
<p>
|
546
|
-
<tt>rio(‘tcp:’,hostname,port)</tt>
|
547
|
-
</p>
|
548
|
-
<p>
|
549
|
-
<tt>rio(‘tcp://hostname:port’)</tt>
|
550
|
-
</p>
|
551
|
-
<p>
|
552
|
-
<tt>rio(:tcp,hostname,port)</tt>
|
553
|
-
</p>
|
554
|
-
<h5>Creating a <a href="RIO/Rio.html">Rio</a> that runs an external program and connects to its stdin and stdout</h5>
|
555
|
-
<p>
|
556
|
-
<tt>rio(?-,cmd)</tt> (mnemonic: ’-’ is used by some Unix
|
557
|
-
programs to specify stdin or stdout in place of a file)
|
558
|
-
</p>
|
559
|
-
<p>
|
560
|
-
<tt>rio(?`,cmd)</tt> (mnemonic: ’`’ (backtick) runs an external
|
561
|
-
program in ruby)
|
562
|
-
</p>
|
563
|
-
<p>
|
564
|
-
<tt>rio(:cmdio,cmd)</tt>
|
565
|
-
</p>
|
566
|
-
<p>
|
567
|
-
This is <a href="RIO/Rio.html">Rio</a>’s interface to IO#popen
|
568
|
-
</p>
|
569
|
-
<h5>Creating a <a href="RIO/Rio.html">Rio</a> Pipe</h5>
|
570
|
-
<p>
|
571
|
-
A <a href="RIO/Rio.html">Rio</a> Pipe is a sequence of Rios that are run
|
572
|
-
with the output of each being copied to the input of the next.
|
573
|
-
</p>
|
574
|
-
<p>
|
575
|
-
<tt>rio(?|, ario, …)</tt> (mnemonic: ’|’ is the Unix pipe
|
576
|
-
operator)
|
577
|
-
</p>
|
578
|
-
<p>
|
579
|
-
<tt>rio(:cmdpipe, ario, …)</tt>
|
580
|
-
</p>
|
581
|
-
<p>
|
582
|
-
See also <a href="RIO/Rio.html">Rio</a>#|
|
583
|
-
</p>
|
584
|
-
</div>
|
585
|
-
</div>
|
586
|
-
|
587
|
-
<div id="method-M000003" class="method-detail">
|
588
|
-
<a name="M000003"></a>
|
589
|
-
|
590
|
-
<div class="method-heading">
|
591
|
-
<a href="RIO.src/M000003.html" target="Code" class="method-signature"
|
592
|
-
onclick="popupCode('RIO.src/M000003.html');return false;">
|
593
|
-
<span class="method-name">root</span><span class="method-args">(*args) {|self| ...}</span>
|
594
|
-
</a>
|
595
|
-
</div>
|
596
|
-
|
597
|
-
<div class="method-description">
|
598
|
-
<p>
|
599
|
-
Create a <a href="RIO/Rio.html">Rio</a> as with <a
|
600
|
-
href="RIO.html#M000001">RIO#rio</a> which refers to a directory at the root
|
601
|
-
of the file system
|
602
|
-
</p>
|
603
|
-
<pre>
|
604
|
-
tmpdir = RIO.root('tmp') #=> rio('/tmp')
|
605
|
-
</pre>
|
606
|
-
</div>
|
607
|
-
</div>
|
608
|
-
|
609
|
-
|
610
|
-
</div>
|
611
|
-
|
612
|
-
|
613
|
-
</div>
|
614
|
-
|
615
|
-
|
616
|
-
<div id="validator-badges">
|
617
|
-
<p><small>Copyright © 2005 Christopher Kleckner. <a href="http://www.gnu.org/licenses/gpl.html">All rights reserved</a>.</small></p>
|
618
|
-
</div>
|
619
|
-
|
620
|
-
</body>
|
621
|
-
</html>
|