rio 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +1 -0
- data/README +11 -9
- data/Rakefile +1 -1
- data/doc/#RIOIS# +216 -0
- data/doc/ANNOUNCE +22 -16
- data/doc/RELEASE_NOTES +14 -7
- data/lib/rio/doc/EXAMPLES.rb +2 -2
- data/lib/rio/doc/INTRO.rb +0 -2
- data/lib/rio/doc/OPTIONAL.rb +1 -1
- data/lib/rio/doc/SYNOPSIS.rb +1 -1
- data/lib/rio/factory.rb +1 -0
- data/lib/rio/ftp/fs.rb +2 -1
- data/lib/rio/ftp/ftpfile.rb +20 -20
- data/lib/rio/if/grande.rb +16 -10
- data/lib/rio/if/test.rb +1 -1
- data/lib/rio/ops/construct.rb +13 -12
- data/lib/rio/ops/dir.rb +2 -1
- data/lib/rio/rl/fs2url.rb +2 -2
- data/lib/rio/rl/path.rb +1 -0
- data/lib/rio/rl/uri.rb +4 -0
- data/lib/rio/rl/withpath.rb +1 -0
- data/lib/rio/scheme/ftp.rb +46 -3
- data/lib/rio/uri/file.rb +16 -6
- data/lib/rio/version.rb +1 -1
- data/test/ftp/anon_copy_data.rb +36 -0
- data/test/ftp/testdef.rb +5 -4
- data/test/http/all.rb +1 -0
- data/test/http/copy-from-http.rb +2 -1
- data/test/http/uri-meta.rb +72 -0
- data/test/lib/temp_server.rb +3 -1
- data/test/runalltests.rb +2 -2
- data/test/runftptests.rb +1 -1
- data/test/runhttp.rb +1 -2
- metadata +5 -312
- data/doc/rdoc/classes/Kernel.html +0 -133
- data/doc/rdoc/classes/Kernel.src/M000233.html +0 -18
- data/doc/rdoc/classes/RIO.html +0 -625
- 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 -148
- data/doc/rdoc/classes/RIO/Doc/EXAMPLES.html +0 -432
- data/doc/rdoc/classes/RIO/Doc/HOWTO.html +0 -1075
- data/doc/rdoc/classes/RIO/Doc/INDEX.html +0 -368
- data/doc/rdoc/classes/RIO/Doc/INTRO.html +0 -1533
- data/doc/rdoc/classes/RIO/Doc/OPTIONAL.html +0 -221
- data/doc/rdoc/classes/RIO/Doc/SYNOPSIS.html +0 -337
- data/doc/rdoc/classes/RIO/IF.html +0 -165
- data/doc/rdoc/classes/RIO/IF/CSV.html +0 -203
- data/doc/rdoc/classes/RIO/IF/CSV.src/M000116.html +0 -19
- data/doc/rdoc/classes/RIO/IF/CSV.src/M000117.html +0 -16
- data/doc/rdoc/classes/RIO/IF/CSV.src/M000118.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Dir.html +0 -343
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000045.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000046.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000047.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000048.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000049.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000050.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000051.html +0 -16
- data/doc/rdoc/classes/RIO/IF/File.html +0 -223
- data/doc/rdoc/classes/RIO/IF/File.src/M000212.html +0 -16
- data/doc/rdoc/classes/RIO/IF/File.src/M000213.html +0 -16
- data/doc/rdoc/classes/RIO/IF/File.src/M000214.html +0 -16
- data/doc/rdoc/classes/RIO/IF/File.src/M000215.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.html +0 -572
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000155.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000156.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000157.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000158.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000159.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000160.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000161.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000162.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000163.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000164.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000165.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000166.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.html +0 -1349
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000088.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000089.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000090.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000091.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000092.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000093.html +0 -21
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000094.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000095.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000096.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000097.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000098.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000099.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000100.html +0 -21
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000101.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000102.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000103.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000104.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000105.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.html +0 -810
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000106.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000107.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000108.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000109.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000110.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000111.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000112.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000113.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000114.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000115.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.html +0 -1513
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000052.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000053.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000054.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000055.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000056.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000057.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000058.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000059.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000060.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000061.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000062.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000063.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000064.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000065.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000066.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000067.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000068.html +0 -19
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000069.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000070.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000071.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000072.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000073.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000074.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000075.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000076.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000077.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000078.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000079.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000080.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000081.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000082.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000083.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000084.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000085.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000086.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000087.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.html +0 -999
- data/doc/rdoc/classes/RIO/IF/Path.src/M000180.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000181.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000182.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000183.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000184.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000185.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000186.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000187.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000188.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000189.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000190.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000191.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000192.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000193.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000194.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000195.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000196.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000197.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000198.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000199.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000200.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000201.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000202.html +0 -18
- data/doc/rdoc/classes/RIO/IF/Path.src/M000203.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000204.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000205.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000206.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000207.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000208.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000209.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000210.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000211.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.html +0 -1414
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000004.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000005.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000006.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000007.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000008.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000009.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000010.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000011.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000012.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000013.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000014.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000015.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000016.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000017.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000018.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000019.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000020.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000021.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000022.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000023.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000024.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000025.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000026.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000027.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000028.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000029.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000030.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000031.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000032.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000033.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000034.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000035.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000036.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000037.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000038.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000039.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000040.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000041.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000042.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000043.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000044.html +0 -16
- data/doc/rdoc/classes/RIO/IF/String.html +0 -203
- data/doc/rdoc/classes/RIO/IF/String.src/M000216.html +0 -16
- data/doc/rdoc/classes/RIO/IF/String.src/M000217.html +0 -16
- data/doc/rdoc/classes/RIO/IF/String.src/M000218.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.html +0 -990
- data/doc/rdoc/classes/RIO/IF/Test.src/M000119.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000120.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000121.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000122.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000123.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000124.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000125.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000126.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000127.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000128.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000129.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000130.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000131.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000132.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000133.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000134.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000135.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000136.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000137.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000138.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000139.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000140.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000141.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000142.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000143.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000144.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000145.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000146.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000147.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000148.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000149.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000150.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000151.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000152.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000153.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000154.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.html +0 -517
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000167.html +0 -19
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000168.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000169.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000170.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000171.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000172.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000173.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000174.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000175.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000176.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000177.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000178.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000179.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.html +0 -508
- data/doc/rdoc/classes/RIO/Rio.src/M000219.html +0 -18
- data/doc/rdoc/classes/RIO/Rio.src/M000220.html +0 -20
- data/doc/rdoc/classes/RIO/Rio.src/M000221.html +0 -27
- data/doc/rdoc/classes/RIO/Rio.src/M000222.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000224.html +0 -19
- data/doc/rdoc/classes/RIO/Rio.src/M000225.html +0 -20
- data/doc/rdoc/classes/RIO/Rio.src/M000226.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000227.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000228.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000229.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000230.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000231.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000232.html +0 -16
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/README.html +0 -229
- data/doc/rdoc/files/lib/rio/constructor_rb.html +0 -141
- data/doc/rdoc/files/lib/rio/doc/EXAMPLES_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/doc/HOWTO_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/doc/INDEX_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/doc/INTRO_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/doc/OPTIONAL_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/doc/SYNOPSIS_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/basic_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/csv_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/dir_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/file_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/fileordir_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/grande_entry_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/grande_rb.html +0 -141
- data/doc/rdoc/files/lib/rio/if/grande_stream_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/internal_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/path_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/rubyio_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/string_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/temp_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/test_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/yaml_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/kernel_rb.html +0 -142
- data/doc/rdoc/files/lib/rio_rb.html +0 -153
- data/doc/rdoc/fr_class_index.html +0 -49
- data/doc/rdoc/fr_file_index.html +0 -51
- data/doc/rdoc/fr_method_index.html +0 -259
- data/doc/rdoc/index.html +0 -30
- data/doc/rdoc/rdoc-style.css +0 -428
@@ -1,16 +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>to_a (RIO::IF::Grande)</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/if/grande.rb, line 65</span>
|
14
|
-
65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_a</span>() <span class="ruby-identifier">target</span>.<span class="ruby-identifier">to_a</span>() <span class="ruby-keyword kw">end</span></pre>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,16 +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::IF::Grande)</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/if/grande.rb, line 200</span>
|
14
|
-
200: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">selectors</span>) <span class="ruby-identifier">target</span>[<span class="ruby-operator">*</span><span class="ruby-identifier">selectors</span>] <span class="ruby-keyword kw">end</span></pre>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,16 +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>each (RIO::IF::Grande)</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/if/grande.rb, line 316</span>
|
14
|
-
316: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</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-identifier">target</span>.<span class="ruby-identifier">each</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-keyword kw">self</span> <span class="ruby-keyword kw">end</span></pre>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,16 +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>delete (RIO::IF::Grande)</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/if/grande.rb, line 327</span>
|
14
|
-
327: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>() <span class="ruby-identifier">target</span>.<span class="ruby-identifier">delete</span>(); <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">end</span></pre>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,16 +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>delete! (RIO::IF::Grande)</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/if/grande.rb, line 348</span>
|
14
|
-
348: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete!</span>() <span class="ruby-identifier">target</span>.<span class="ruby-identifier">delete!</span>(); <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">end</span></pre>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,21 +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::IF::Grande)</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/if/grande.rb, line 413</span>
|
14
|
-
413: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">></span>(<span class="ruby-identifier">destination</span>)
|
15
|
-
414: <span class="ruby-constant">RIO</span><span class="ruby-operator">::</span><span class="ruby-identifier">no_warn</span> {
|
16
|
-
415: <span class="ruby-identifier">target</span> <span class="ruby-operator">></span> <span class="ruby-identifier">destination</span>;
|
17
|
-
416: }
|
18
|
-
417: <span class="ruby-keyword kw">self</span>
|
19
|
-
418: <span class="ruby-keyword kw">end</span></pre>
|
20
|
-
</body>
|
21
|
-
</html>
|
@@ -1,16 +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>copy_to (RIO::IF::Grande)</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/if/grande.rb, line 421</span>
|
14
|
-
421: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">copy_to</span>(<span class="ruby-identifier">destination</span>) <span class="ruby-identifier">target</span>.<span class="ruby-identifier">copy_to</span>(<span class="ruby-identifier">destination</span>); <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">end</span></pre>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,16 +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::IF::Grande)</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/if/grande.rb, line 466</span>
|
14
|
-
466: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">|</span>(<span class="ruby-identifier">destination</span>) <span class="ruby-identifier">target</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">destination</span> <span class="ruby-keyword kw">end</span></pre>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,16 +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::IF::Grande)</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/if/grande.rb, line 486</span>
|
14
|
-
486: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">>></span>(<span class="ruby-identifier">destination</span>) <span class="ruby-identifier">target</span> <span class="ruby-operator">>></span> <span class="ruby-identifier">destination</span>; <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">end</span></pre>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,16 +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>append_to (RIO::IF::Grande)</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/if/grande.rb, line 490</span>
|
14
|
-
490: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">append_to</span>(<span class="ruby-identifier">destination</span>) <span class="ruby-identifier">target</span>.<span class="ruby-identifier">append_to</span>(<span class="ruby-identifier">destination</span>); <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">end</span></pre>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,16 +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::IF::Grande)</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/if/grande.rb, line 505</span>
|
14
|
-
505: <span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-identifier">source</span>) <span class="ruby-identifier">target</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">source</span>; <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">end</span></pre>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,16 +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>append_from (RIO::IF::Grande)</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/if/grande.rb, line 509</span>
|
14
|
-
509: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">append_from</span>(<span class="ruby-identifier">source</span>) <span class="ruby-identifier">target</span>.<span class="ruby-identifier">append_from</span>(<span class="ruby-identifier">source</span>); <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">end</span></pre>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,21 +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::IF::Grande)</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/if/grande.rb, line 593</span>
|
14
|
-
593: <span class="ruby-keyword kw">def</span> <span class="ruby-operator"><</span>(<span class="ruby-identifier">source</span>)
|
15
|
-
594: <span class="ruby-constant">RIO</span><span class="ruby-operator">::</span><span class="ruby-identifier">no_warn</span> {
|
16
|
-
595: <span class="ruby-identifier">target</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">source</span>
|
17
|
-
596: }
|
18
|
-
597: <span class="ruby-keyword kw">self</span>
|
19
|
-
598: <span class="ruby-keyword kw">end</span></pre>
|
20
|
-
</body>
|
21
|
-
</html>
|
@@ -1,16 +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>copy_from (RIO::IF::Grande)</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/if/grande.rb, line 601</span>
|
14
|
-
601: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">copy_from</span>(<span class="ruby-identifier">source</span>) <span class="ruby-identifier">target</span>.<span class="ruby-identifier">copy_from</span>(<span class="ruby-identifier">source</span>); <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">end</span></pre>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,16 +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>get (RIO::IF::Grande)</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/if/grande.rb, line 621</span>
|
14
|
-
621: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>() <span class="ruby-identifier">target</span>.<span class="ruby-identifier">get</span>() <span class="ruby-keyword kw">end</span></pre>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,16 +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>skip (RIO::IF::Grande)</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/if/grande.rb, line 656</span>
|
14
|
-
656: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">skip</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-identifier">target</span>.<span class="ruby-identifier">skip</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-keyword kw">self</span> <span class="ruby-keyword kw">end</span></pre>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,16 +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>empty? (RIO::IF::Grande)</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/if/grande.rb, line 666</span>
|
14
|
-
666: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">empty?</span>() <span class="ruby-identifier">target</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-keyword kw">end</span></pre>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,16 +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>split (RIO::IF::Grande)</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/if/grande.rb, line 703</span>
|
14
|
-
703: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">split</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-identifier">target</span>.<span class="ruby-identifier">split</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-keyword kw">end</span></pre>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,810 +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::IF::GrandeEntry</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
|
-
<meta name="revisit-after" content="5 days">
|
12
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
13
|
-
<script type="text/javascript">
|
14
|
-
// <![CDATA[
|
15
|
-
|
16
|
-
function popupCode( url ) {
|
17
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
18
|
-
}
|
19
|
-
|
20
|
-
function toggleCode( id ) {
|
21
|
-
if ( document.getElementById )
|
22
|
-
elem = document.getElementById( id );
|
23
|
-
else if ( document.all )
|
24
|
-
elem = eval( "document.all." + id );
|
25
|
-
else
|
26
|
-
return false;
|
27
|
-
|
28
|
-
elemStyle = elem.style;
|
29
|
-
|
30
|
-
if ( elemStyle.display != "block" ) {
|
31
|
-
elemStyle.display = "block"
|
32
|
-
} else {
|
33
|
-
elemStyle.display = "none"
|
34
|
-
}
|
35
|
-
|
36
|
-
return true;
|
37
|
-
}
|
38
|
-
|
39
|
-
// Make codeblocks hidden by default
|
40
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
41
|
-
|
42
|
-
// ]]>
|
43
|
-
</script>
|
44
|
-
|
45
|
-
</head>
|
46
|
-
<body>
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
<div id="classHeader">
|
51
|
-
<table class="header-table">
|
52
|
-
<tr class="top-aligned-row">
|
53
|
-
<td class="class-mod"><strong>Module</strong></td>
|
54
|
-
<td class="class-name-in-header">RIO::IF::GrandeEntry</td>
|
55
|
-
<td rowspan="2" class="class-header-space-col"></td>
|
56
|
-
<td rowspan="2">
|
57
|
-
<a class="in-url" href="../../../files/lib/rio/if/grande_entry_rb.html">
|
58
|
-
lib/rio/if/grande_entry.rb
|
59
|
-
</a>
|
60
|
-
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
|
64
|
-
</table>
|
65
|
-
</div>
|
66
|
-
<!-- banner header -->
|
67
|
-
|
68
|
-
<div id="bodyContent">
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
<div id="contextContent">
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
</div>
|
77
|
-
|
78
|
-
<div id="method-list">
|
79
|
-
<h3 class="section-bar">Methods</h3>
|
80
|
-
|
81
|
-
<div class="name-list">
|
82
|
-
<a href="#M000113">all</a>
|
83
|
-
<a href="#M000112">all?</a>
|
84
|
-
<a href="#M000106">dirs</a>
|
85
|
-
<a href="#M000108">entries</a>
|
86
|
-
<a href="#M000110">files</a>
|
87
|
-
<a href="#M000115">norecurse</a>
|
88
|
-
<a href="#M000114">recurse</a>
|
89
|
-
<a href="#M000107">skipdirs</a>
|
90
|
-
<a href="#M000109">skipentries</a>
|
91
|
-
<a href="#M000111">skipfiles</a>
|
92
|
-
</div>
|
93
|
-
</div>
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
<!-- if includes -->
|
98
|
-
|
99
|
-
<div id="section">
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
<!-- if method_list -->
|
109
|
-
<div id="methods">
|
110
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
111
|
-
|
112
|
-
<div id="method-M000113" class="method-detail">
|
113
|
-
<a name="M000113"></a>
|
114
|
-
|
115
|
-
<div class="method-heading">
|
116
|
-
<a href="GrandeEntry.src/M000113.html" target="Code" class="method-signature"
|
117
|
-
onclick="popupCode('GrandeEntry.src/M000113.html');return false;">
|
118
|
-
<span class="method-name">all</span><span class="method-args">(arg=true,&block)</span>
|
119
|
-
</a>
|
120
|
-
</div>
|
121
|
-
|
122
|
-
<div class="method-description">
|
123
|
-
<p>
|
124
|
-
Grande Directory Recursion Method
|
125
|
-
</p>
|
126
|
-
<p>
|
127
|
-
Sets the Rio to all mode (recursive)
|
128
|
-
</p>
|
129
|
-
<p>
|
130
|
-
When called with a block, behaves as if all.each(&block) had been
|
131
|
-
called
|
132
|
-
</p>
|
133
|
-
<p>
|
134
|
-
<tt>all</tt> causes subsequent calls to <tt>files</tt> or <tt>dirs</tt> to
|
135
|
-
be applied recursively to subdirectories
|
136
|
-
</p>
|
137
|
-
<pre>
|
138
|
-
rio('adir').all.files('*.[ch]').each { |file| ... } # process all c language source files in adir
|
139
|
-
# and all subdirectories of adir
|
140
|
-
rio('adir').all.files(/\.[ch]$/) { |file| ... } # same as above
|
141
|
-
rio('adir').files("*.[ch]").all { |file| ... } # once again
|
142
|
-
rio('adir').all.files["*.[ch]"] # same, but return an array instead of iterating
|
143
|
-
</pre>
|
144
|
-
</div>
|
145
|
-
</div>
|
146
|
-
|
147
|
-
<div id="method-M000112" class="method-detail">
|
148
|
-
<a name="M000112"></a>
|
149
|
-
|
150
|
-
<div class="method-heading">
|
151
|
-
<a href="GrandeEntry.src/M000112.html" target="Code" class="method-signature"
|
152
|
-
onclick="popupCode('GrandeEntry.src/M000112.html');return false;">
|
153
|
-
<span class="method-name">all?</span><span class="method-args">()</span>
|
154
|
-
</a>
|
155
|
-
</div>
|
156
|
-
|
157
|
-
<div class="method-description">
|
158
|
-
<p>
|
159
|
-
Returns <tt>true</tt> if the rio is in <tt>all</tt> (recursive) mode. See
|
160
|
-
<a href="GrandeEntry.html#M000113">all</a>
|
161
|
-
</p>
|
162
|
-
<pre>
|
163
|
-
adir = rio('adir').all.dirs
|
164
|
-
adir.all? # true
|
165
|
-
adir.each do |subdir|
|
166
|
-
subdir.all? # true
|
167
|
-
end
|
168
|
-
|
169
|
-
rio('adir').all? # false
|
170
|
-
</pre>
|
171
|
-
</div>
|
172
|
-
</div>
|
173
|
-
|
174
|
-
<div id="method-M000106" class="method-detail">
|
175
|
-
<a name="M000106"></a>
|
176
|
-
|
177
|
-
<div class="method-heading">
|
178
|
-
<a href="GrandeEntry.src/M000106.html" target="Code" class="method-signature"
|
179
|
-
onclick="popupCode('GrandeEntry.src/M000106.html');return false;">
|
180
|
-
<span class="method-name">dirs</span><span class="method-args">(*args,&block)</span>
|
181
|
-
</a>
|
182
|
-
</div>
|
183
|
-
|
184
|
-
<div class="method-description">
|
185
|
-
<p>
|
186
|
-
Grande Directory Selection Method
|
187
|
-
</p>
|
188
|
-
<p>
|
189
|
-
Sets the rio to return directories. <em>args</em> can be used to select
|
190
|
-
which directories are returned.
|
191
|
-
</p>
|
192
|
-
<pre>
|
193
|
-
ario.files(*args) do |f|
|
194
|
-
f.directory? #=> true
|
195
|
-
end
|
196
|
-
</pre>
|
197
|
-
<p>
|
198
|
-
No aguments selects all directories. if <em>args</em> are:
|
199
|
-
</p>
|
200
|
-
<table>
|
201
|
-
<tr><td valign="top">Regexp:</td><td>selects matching directories
|
202
|
-
|
203
|
-
</td></tr>
|
204
|
-
<tr><td valign="top">glob:</td><td>selects matching directories
|
205
|
-
|
206
|
-
</td></tr>
|
207
|
-
<tr><td valign="top">Proc:</td><td>called for each directory. the directory is processed unless the proc
|
208
|
-
returns false
|
209
|
-
|
210
|
-
</td></tr>
|
211
|
-
<tr><td valign="top">Symbol:</td><td>sent to each directory. Each directory is processed unless the symbol
|
212
|
-
returns false
|
213
|
-
|
214
|
-
</td></tr>
|
215
|
-
<tr><td valign="top">Fixnum:</td><td>matched against the "depth" of the directory
|
216
|
-
|
217
|
-
</td></tr>
|
218
|
-
</table>
|
219
|
-
<p>
|
220
|
-
If a block is given, behaves like
|
221
|
-
<tt>ario.dirs(*args).each(&block)</tt>
|
222
|
-
</p>
|
223
|
-
<p>
|
224
|
-
See also <a href="GrandeEntry.html#M000110">files</a>, <a
|
225
|
-
href="GrandeEntry.html#M000108">entries</a>, <a
|
226
|
-
href="GrandeEntry.html#M000107">skipdirs</a>
|
227
|
-
</p>
|
228
|
-
<pre>
|
229
|
-
rio('adir').dirs { |frio| ... } # process all directories in 'adir'
|
230
|
-
rio('adir').all.dirs { |frio| ... } # same thing recursively
|
231
|
-
rio('adir').dirs(/^\./) { |frio| ...} # process dot directories
|
232
|
-
rio('adir').dirs[/^\./] # return an array of dot directories
|
233
|
-
rio('adir').dirs[:symlink?] # an array of symlinks to directories
|
234
|
-
</pre>
|
235
|
-
<p>
|
236
|
-
Given the directory structure ‘adir/a/b/c/d‘
|
237
|
-
</p>
|
238
|
-
<pre>
|
239
|
-
rio('adir').all.dirs[2] #=> 'adir/a/b'
|
240
|
-
rio('adir').all.dirs[0..2] #=> 'adir/a','adir/a/b'
|
241
|
-
rio('adir').all.skipdirs[0..2] #=> 'adir/a/b/c','adir/a/b/c/d'
|
242
|
-
</pre>
|
243
|
-
</div>
|
244
|
-
</div>
|
245
|
-
|
246
|
-
<div id="method-M000108" class="method-detail">
|
247
|
-
<a name="M000108"></a>
|
248
|
-
|
249
|
-
<div class="method-heading">
|
250
|
-
<a href="GrandeEntry.src/M000108.html" target="Code" class="method-signature"
|
251
|
-
onclick="popupCode('GrandeEntry.src/M000108.html');return false;">
|
252
|
-
<span class="method-name">entries</span><span class="method-args">(*args,&block)</span>
|
253
|
-
</a>
|
254
|
-
</div>
|
255
|
-
|
256
|
-
<div class="method-description">
|
257
|
-
<p>
|
258
|
-
Grande Directory Entry Selection Method
|
259
|
-
</p>
|
260
|
-
<p>
|
261
|
-
No aguments selects all entries.
|
262
|
-
</p>
|
263
|
-
<p>
|
264
|
-
if <tt>args</tt> are:
|
265
|
-
</p>
|
266
|
-
<table>
|
267
|
-
<tr><td valign="top">Regexp:</td><td>selects matching entries
|
268
|
-
|
269
|
-
</td></tr>
|
270
|
-
<tr><td valign="top">glob:</td><td>selects matching entries
|
271
|
-
|
272
|
-
</td></tr>
|
273
|
-
<tr><td valign="top">Proc:</td><td>called for each entry. the entry is processed unless the proc returns false
|
274
|
-
|
275
|
-
</td></tr>
|
276
|
-
<tr><td valign="top">Symbol:</td><td>sent to each entry. Each entry is processed unless the symbol returns false
|
277
|
-
|
278
|
-
</td></tr>
|
279
|
-
</table>
|
280
|
-
<p>
|
281
|
-
If a block is given, behaves like
|
282
|
-
<tt>ario.etries(*args).each(&block)</tt>
|
283
|
-
</p>
|
284
|
-
<p>
|
285
|
-
See also <a href="GrandeEntry.html#M000110">files</a>, <a
|
286
|
-
href="GrandeEntry.html#M000106">dirs</a>, <a
|
287
|
-
href="GrandeEntry.html#M000109">skipentries</a>
|
288
|
-
</p>
|
289
|
-
<pre>
|
290
|
-
rio('adir').entries { |frio| ... } # process all entries in 'adir'
|
291
|
-
rio('adir').all.entries { |frio| ... } # same thing recursively
|
292
|
-
rio('adir').entries(/^\./) { |frio| ...} # process entries starting with a dot
|
293
|
-
rio('adir').entries[/^\./] # return an array of all entries starting with a dot
|
294
|
-
rio('adir').entries[:symlink?] # an array of symlinks in 'adir'
|
295
|
-
</pre>
|
296
|
-
</div>
|
297
|
-
</div>
|
298
|
-
|
299
|
-
<div id="method-M000110" class="method-detail">
|
300
|
-
<a name="M000110"></a>
|
301
|
-
|
302
|
-
<div class="method-heading">
|
303
|
-
<a href="GrandeEntry.src/M000110.html" target="Code" class="method-signature"
|
304
|
-
onclick="popupCode('GrandeEntry.src/M000110.html');return false;">
|
305
|
-
<span class="method-name">files</span><span class="method-args">(*args,&block)</span>
|
306
|
-
</a>
|
307
|
-
</div>
|
308
|
-
|
309
|
-
<div class="method-description">
|
310
|
-
<p>
|
311
|
-
Grande <a href="File.html">File</a> Selection Method
|
312
|
-
</p>
|
313
|
-
<p>
|
314
|
-
Configures the rio to process files. <tt>args</tt> can be used to select
|
315
|
-
which files are returned.
|
316
|
-
</p>
|
317
|
-
<pre>
|
318
|
-
ario.files(*args) do |f|
|
319
|
-
f.file? #=> true
|
320
|
-
end
|
321
|
-
</pre>
|
322
|
-
<p>
|
323
|
-
No aguments selects all files.
|
324
|
-
</p>
|
325
|
-
<p>
|
326
|
-
<tt>args</tt> may be zero or more of the following:
|
327
|
-
</p>
|
328
|
-
<table>
|
329
|
-
<tr><td valign="top">Regexp:</td><td>selects matching files
|
330
|
-
|
331
|
-
</td></tr>
|
332
|
-
<tr><td valign="top">String:</td><td>treated as a glob, and selects matching files
|
333
|
-
|
334
|
-
</td></tr>
|
335
|
-
<tr><td valign="top">Proc:</td><td>called for each file. the file is processed unless the proc returns false
|
336
|
-
|
337
|
-
</td></tr>
|
338
|
-
<tr><td valign="top">Symbol:</td><td>sent to each file. Each file is processed unless the symbol returns false
|
339
|
-
|
340
|
-
</td></tr>
|
341
|
-
</table>
|
342
|
-
<p>
|
343
|
-
<tt>files</tt> returns the Rio which called it. This might seem
|
344
|
-
counter-intuitive at first. One might reasonably assume that
|
345
|
-
</p>
|
346
|
-
<pre>
|
347
|
-
rio('adir').files('*.rb')
|
348
|
-
</pre>
|
349
|
-
<p>
|
350
|
-
would return files. It does not. It configures the rio to return files and
|
351
|
-
returns the Rio. This enables chaining for further configuration so
|
352
|
-
constructs like
|
353
|
-
</p>
|
354
|
-
<pre>
|
355
|
-
rio('adir').all.files('*.rb').norecurse('.svn')
|
356
|
-
</pre>
|
357
|
-
<p>
|
358
|
-
are possible.
|
359
|
-
</p>
|
360
|
-
<p>
|
361
|
-
If a block is given, behaves like
|
362
|
-
</p>
|
363
|
-
<pre>
|
364
|
-
ario.files(*args).each
|
365
|
-
</pre>
|
366
|
-
<p>
|
367
|
-
See also <a href="GrandeEntry.html#M000106">dirs</a>, <a
|
368
|
-
href="GrandeEntry.html#M000108">entries</a>, <a
|
369
|
-
href="GrandeEntry.html#M000111">skipfiles</a>
|
370
|
-
</p>
|
371
|
-
<pre>
|
372
|
-
rio('adir').files { |frio| ... } # process all files in 'adir'
|
373
|
-
rio('adir').all.files { |frio| ... } # same thing recursively
|
374
|
-
rio('adir').files('*.rb') { |frio| ...} # process .rb files
|
375
|
-
rio('adir').files['*.rb'] # return an array of .rb files
|
376
|
-
rio('adir').files[/\.rb$/] # same thing using a regular expression
|
377
|
-
rio('adir').files[:symlink?] # an array of symlinks to files
|
378
|
-
rio('adir').files >> rio('other_dir') # copy files to 'other_dir'
|
379
|
-
rio('adir').files('*.rb') >> rio('other_dir') # only copy .rb files
|
380
|
-
</pre>
|
381
|
-
<p>
|
382
|
-
For Rios that refer to files, <tt>files(*args)</tt> causes the file to be
|
383
|
-
processed only if it meets the criteria specified by the args.
|
384
|
-
</p>
|
385
|
-
<pre>
|
386
|
-
rio('afile.z').files['*.z'] #=> [rio('afile.z')]
|
387
|
-
rio('afile.q').files['*.z'] #=> []
|
388
|
-
</pre>
|
389
|
-
<h3>Example Problem</h3>
|
390
|
-
<p>
|
391
|
-
Fill the array <tt>ruby_progs</tt> with all ruby programs in a directory
|
392
|
-
and its subdirectories, skipping those in <em>subversion</em> (.svn)
|
393
|
-
directories.
|
394
|
-
</p>
|
395
|
-
<pre>
|
396
|
-
ruby_progs = []
|
397
|
-
</pre>
|
398
|
-
<p>
|
399
|
-
For the purposes of this problem, a Ruby program is defined as a file
|
400
|
-
ending with .rb or a file that is executable and whose shebang line
|
401
|
-
contains ‘ruby’:
|
402
|
-
</p>
|
403
|
-
<pre>
|
404
|
-
is_ruby_exe = proc{ |f| f.executable? and f.gets =~ /^#!.+ruby/ }
|
405
|
-
</pre>
|
406
|
-
<h4>Solution 1. Use the subscript operator.</h4>
|
407
|
-
<pre>
|
408
|
-
ruby_progs = rio('adir').norecurse('.svn').files['*.rb',is_ruby_exe]
|
409
|
-
</pre>
|
410
|
-
<p>
|
411
|
-
Explanation:
|
412
|
-
</p>
|
413
|
-
<ol>
|
414
|
-
<li>Create the Rio
|
415
|
-
|
416
|
-
<p>
|
417
|
-
Create a Rio for a directory
|
418
|
-
</p>
|
419
|
-
<pre>
|
420
|
-
rio('adir')
|
421
|
-
</pre>
|
422
|
-
</li>
|
423
|
-
<li>Configure the Rio
|
424
|
-
|
425
|
-
<p>
|
426
|
-
Specify recursion and that ’.svn’ directories should not be
|
427
|
-
included.
|
428
|
-
</p>
|
429
|
-
<pre>
|
430
|
-
rio('adir').norecurse('.svn')
|
431
|
-
</pre>
|
432
|
-
<p>
|
433
|
-
Select files
|
434
|
-
</p>
|
435
|
-
<pre>
|
436
|
-
rio('adir').norecurse('.svn').files
|
437
|
-
</pre>
|
438
|
-
<p>
|
439
|
-
Limit to files ending with ’.rb’
|
440
|
-
</p>
|
441
|
-
<pre>
|
442
|
-
rio('adir').norecurse('.svn').files('*.rb')
|
443
|
-
</pre>
|
444
|
-
<p>
|
445
|
-
Also allow files for whom <tt>is_ruby_exe</tt> returns true
|
446
|
-
</p>
|
447
|
-
<pre>
|
448
|
-
rio('adir').norecurse('.svn').files('*.rb',is_ruby_exe)
|
449
|
-
</pre>
|
450
|
-
</li>
|
451
|
-
<li>Do the I/O
|
452
|
-
|
453
|
-
<p>
|
454
|
-
Return an array rather than iterating thru them
|
455
|
-
</p>
|
456
|
-
<pre>
|
457
|
-
ruby_progs = rio('adir').norecurse('.svn').files['*.rb',is_ruby_exe]
|
458
|
-
</pre>
|
459
|
-
</li>
|
460
|
-
</ol>
|
461
|
-
<h4>Solution 2. Use the copy-to operator</h4>
|
462
|
-
<pre>
|
463
|
-
rio('adir').files('*.rb',is_ruby_exe).norecurse('.svn') > ruby_progs
|
464
|
-
</pre>
|
465
|
-
<p>
|
466
|
-
Explanation:
|
467
|
-
</p>
|
468
|
-
<ol>
|
469
|
-
<li>Create the Rio
|
470
|
-
|
471
|
-
<p>
|
472
|
-
Create a Rio for a directory
|
473
|
-
</p>
|
474
|
-
<pre>
|
475
|
-
rio('adir')
|
476
|
-
</pre>
|
477
|
-
</li>
|
478
|
-
<li>Configure the Rio
|
479
|
-
|
480
|
-
<p>
|
481
|
-
Select only files
|
482
|
-
</p>
|
483
|
-
<pre>
|
484
|
-
rio('adir').files
|
485
|
-
</pre>
|
486
|
-
<p>
|
487
|
-
Limit to files ending with ’.rb’
|
488
|
-
</p>
|
489
|
-
<pre>
|
490
|
-
rio('adir').files('*.rb')
|
491
|
-
</pre>
|
492
|
-
<p>
|
493
|
-
Also allow files for whom <tt>is_ruby_exe</tt> returns true
|
494
|
-
</p>
|
495
|
-
<pre>
|
496
|
-
rio('adir').files('*.rb',is_ruby_exe)
|
497
|
-
</pre>
|
498
|
-
<p>
|
499
|
-
Specify recursion and that ’.svn’ directories should not be
|
500
|
-
included.
|
501
|
-
</p>
|
502
|
-
<pre>
|
503
|
-
rio('adir').files('*.rb',is_ruby_exe).norecurse('.svn')
|
504
|
-
</pre>
|
505
|
-
</li>
|
506
|
-
<li>Do the I/O
|
507
|
-
|
508
|
-
<p>
|
509
|
-
Copy the Rio to ruby_progs
|
510
|
-
</p>
|
511
|
-
<pre>
|
512
|
-
rio('adir').files('*.rb',is_ruby_exe).norecurse('.svn') > ruby_progs
|
513
|
-
</pre>
|
514
|
-
</li>
|
515
|
-
</ol>
|
516
|
-
<h4>Example Discussion</h4>
|
517
|
-
<p>
|
518
|
-
Note that the only difference between Step 2 of Solution 1 and that of
|
519
|
-
Solution 2 is the order of the configuration methods. Step 2 of Solution 1
|
520
|
-
would have worked equally well:
|
521
|
-
</p>
|
522
|
-
<pre>
|
523
|
-
rio('adir').norecurse('.svn').files('*.rb',is_ruby_exe) > ruby_progs
|
524
|
-
</pre>
|
525
|
-
<p>
|
526
|
-
Furthermore if our problem were changed slightly and instead of having our
|
527
|
-
results ending up in an array, we wished to iterate through them, we could
|
528
|
-
use:
|
529
|
-
</p>
|
530
|
-
<pre>
|
531
|
-
rio('adir').norecurse('.svn').files('*.rb',is_ruby_exe) { |ruby_prog_rio| ... }
|
532
|
-
</pre>
|
533
|
-
<p>
|
534
|
-
Note the similarities. In fact, solution 1 could have been written:
|
535
|
-
</p>
|
536
|
-
<pre>
|
537
|
-
rio('adir').norecurse('.svn').files('*.rb',is_ruby_exe).to_a
|
538
|
-
</pre>
|
539
|
-
<p>
|
540
|
-
or
|
541
|
-
</p>
|
542
|
-
<pre>
|
543
|
-
rio('adir').norecurse('.svn').files('*.rb',is_ruby_exe)[]
|
544
|
-
</pre>
|
545
|
-
<p>
|
546
|
-
Passing the arguments for <tt>files</tt> to the subscript operator is
|
547
|
-
syntactic sugar. The subscript operator does not really take any arguments
|
548
|
-
of its own. It always passes them to the most recently called of the grande
|
549
|
-
selection methods (or the default selection method, if none have been
|
550
|
-
called). So,
|
551
|
-
</p>
|
552
|
-
<pre>
|
553
|
-
rio('adir').files['*.rb']
|
554
|
-
</pre>
|
555
|
-
<p>
|
556
|
-
is a shortcut for
|
557
|
-
</p>
|
558
|
-
<pre>
|
559
|
-
rio('adir').files('*.rb').to_a
|
560
|
-
</pre>
|
561
|
-
<p>
|
562
|
-
and
|
563
|
-
</p>
|
564
|
-
<pre>
|
565
|
-
rio('adir')['*.rb']
|
566
|
-
</pre>
|
567
|
-
<p>
|
568
|
-
is a shortcut for
|
569
|
-
</p>
|
570
|
-
<pre>
|
571
|
-
rio('adir').entries('*.rb').to_a
|
572
|
-
</pre>
|
573
|
-
<p>
|
574
|
-
and
|
575
|
-
</p>
|
576
|
-
<pre>
|
577
|
-
rio('afile').lines[0..10]
|
578
|
-
</pre>
|
579
|
-
<p>
|
580
|
-
is a shortcut for
|
581
|
-
</p>
|
582
|
-
<pre>
|
583
|
-
rio('afile').lines(0..10).to_a
|
584
|
-
</pre>
|
585
|
-
<p>
|
586
|
-
And so on.
|
587
|
-
</p>
|
588
|
-
</div>
|
589
|
-
</div>
|
590
|
-
|
591
|
-
<div id="method-M000115" class="method-detail">
|
592
|
-
<a name="M000115"></a>
|
593
|
-
|
594
|
-
<div class="method-heading">
|
595
|
-
<a href="GrandeEntry.src/M000115.html" target="Code" class="method-signature"
|
596
|
-
onclick="popupCode('GrandeEntry.src/M000115.html');return false;">
|
597
|
-
<span class="method-name">norecurse</span><span class="method-args">(*args,&block)</span>
|
598
|
-
</a>
|
599
|
-
</div>
|
600
|
-
|
601
|
-
<div class="method-description">
|
602
|
-
<p>
|
603
|
-
Grande Directory Recursion Exclude Method
|
604
|
-
</p>
|
605
|
-
<p>
|
606
|
-
Sets the Rio to recurse into directories like <a
|
607
|
-
href="GrandeEntry.html#M000113">all</a>. If no args are provided, no
|
608
|
-
directories will be recursed into. If args are provided, behaves like <a
|
609
|
-
href="GrandeEntry.html#M000114">recurse</a>, except that matching
|
610
|
-
directories will <b>not</b> be recursed into
|
611
|
-
</p>
|
612
|
-
<pre>
|
613
|
-
rio('adir').norecurse('.svn') { |drio| ... } # recurse, skipping subversion directories
|
614
|
-
|
615
|
-
rio('adir').norecurse(3) {|drio| ... } # only recurse 2 levels deep into a directory structure
|
616
|
-
</pre>
|
617
|
-
</div>
|
618
|
-
</div>
|
619
|
-
|
620
|
-
<div id="method-M000114" class="method-detail">
|
621
|
-
<a name="M000114"></a>
|
622
|
-
|
623
|
-
<div class="method-heading">
|
624
|
-
<a href="GrandeEntry.src/M000114.html" target="Code" class="method-signature"
|
625
|
-
onclick="popupCode('GrandeEntry.src/M000114.html');return false;">
|
626
|
-
<span class="method-name">recurse</span><span class="method-args">(*args,&block)</span>
|
627
|
-
</a>
|
628
|
-
</div>
|
629
|
-
|
630
|
-
<div class="method-description">
|
631
|
-
<p>
|
632
|
-
Grande Directory Recursion Selection Method
|
633
|
-
</p>
|
634
|
-
<p>
|
635
|
-
Sets the Rio to recurse into directories like <a
|
636
|
-
href="GrandeEntry.html#M000113">all</a>. If no args are provided behaves
|
637
|
-
like <a href="GrandeEntry.html#M000113">all</a>. If args are provided, they
|
638
|
-
are processed like <a href="GrandeEntry.html#M000106">dirs</a> to select
|
639
|
-
which subdirectories should be recursed into. <a
|
640
|
-
href="GrandeEntry.html#M000114">recurse</a> always implies <a
|
641
|
-
href="GrandeEntry.html#M000113">all</a>.
|
642
|
-
</p>
|
643
|
-
<p>
|
644
|
-
<tt>args</tt> may be one or more of:
|
645
|
-
</p>
|
646
|
-
<table>
|
647
|
-
<tr><td valign="top">Regexp:</td><td>recurse into matching subdirectories
|
648
|
-
|
649
|
-
</td></tr>
|
650
|
-
<tr><td valign="top">glob:</td><td>recurse into matching subdirectories
|
651
|
-
|
652
|
-
</td></tr>
|
653
|
-
<tr><td valign="top">Proc:</td><td>called for each directory. The directory is recursed into unless the proc
|
654
|
-
returns false
|
655
|
-
|
656
|
-
</td></tr>
|
657
|
-
<tr><td valign="top">Symbol:</td><td>sent to each directory. Each directory is recursed into unless the symbol
|
658
|
-
returns false
|
659
|
-
|
660
|
-
</td></tr>
|
661
|
-
<tr><td valign="top">Fixnum:</td><td>recurse into directories only at the given depth
|
662
|
-
|
663
|
-
</td></tr>
|
664
|
-
<tr><td valign="top">Range:</td><td>recurse into directories at a range of depths
|
665
|
-
|
666
|
-
</td></tr>
|
667
|
-
</table>
|
668
|
-
<p>
|
669
|
-
If a block is given, behaves like
|
670
|
-
<tt>ario.recurse(*args).each(&block)</tt>
|
671
|
-
</p>
|
672
|
-
<p>
|
673
|
-
See also <a href="GrandeEntry.html#M000115">norecurse</a>, <a
|
674
|
-
href="GrandeEntry.html#M000113">all</a>, <a
|
675
|
-
href="GrandeEntry.html#M000106">dirs</a>
|
676
|
-
</p>
|
677
|
-
<pre>
|
678
|
-
rio('adir').recurse('test*') { |drio| ... } # process all entries and all entries in subdirectories
|
679
|
-
# starting with 'test' -- recursively
|
680
|
-
</pre>
|
681
|
-
</div>
|
682
|
-
</div>
|
683
|
-
|
684
|
-
<div id="method-M000107" class="method-detail">
|
685
|
-
<a name="M000107"></a>
|
686
|
-
|
687
|
-
<div class="method-heading">
|
688
|
-
<a href="GrandeEntry.src/M000107.html" target="Code" class="method-signature"
|
689
|
-
onclick="popupCode('GrandeEntry.src/M000107.html');return false;">
|
690
|
-
<span class="method-name">skipdirs</span><span class="method-args">(*args,&block)</span>
|
691
|
-
</a>
|
692
|
-
</div>
|
693
|
-
|
694
|
-
<div class="method-description">
|
695
|
-
<p>
|
696
|
-
Grande Directory Exclude Method
|
697
|
-
</p>
|
698
|
-
<p>
|
699
|
-
If no args are provided selects anything but directories.
|
700
|
-
</p>
|
701
|
-
<pre>
|
702
|
-
ario.skipdirs do |el|
|
703
|
-
el.directory? #=> false
|
704
|
-
end
|
705
|
-
</pre>
|
706
|
-
<p>
|
707
|
-
If args are provided, sets the rio to select directories as with <a
|
708
|
-
href="GrandeEntry.html#M000106">dirs</a>, but the arguments are used to
|
709
|
-
determine which directories will <b>not</b> be processed
|
710
|
-
</p>
|
711
|
-
<p>
|
712
|
-
If a block is given behaves like
|
713
|
-
</p>
|
714
|
-
<pre>
|
715
|
-
ario.skipdirs(*args).each(&block)
|
716
|
-
</pre>
|
717
|
-
<p>
|
718
|
-
See <a href="GrandeEntry.html#M000106">dirs</a>
|
719
|
-
</p>
|
720
|
-
<pre>
|
721
|
-
rio('adir').skipdirs { |ent| ... } # iterate through everything except directories
|
722
|
-
rio('adir').skipdirs(/^\./) { |drio| ... } # iterate through directories, skipping dot directories
|
723
|
-
</pre>
|
724
|
-
</div>
|
725
|
-
</div>
|
726
|
-
|
727
|
-
<div id="method-M000109" class="method-detail">
|
728
|
-
<a name="M000109"></a>
|
729
|
-
|
730
|
-
<div class="method-heading">
|
731
|
-
<a href="GrandeEntry.src/M000109.html" target="Code" class="method-signature"
|
732
|
-
onclick="popupCode('GrandeEntry.src/M000109.html');return false;">
|
733
|
-
<span class="method-name">skipentries</span><span class="method-args">(*args,&block)</span>
|
734
|
-
</a>
|
735
|
-
</div>
|
736
|
-
|
737
|
-
<div class="method-description">
|
738
|
-
<p>
|
739
|
-
Grande Directory Entry Rejection Method
|
740
|
-
</p>
|
741
|
-
<p>
|
742
|
-
No aguments rejects all entries.
|
743
|
-
</p>
|
744
|
-
<p>
|
745
|
-
Behaves like <a href="GrandeEntry.html#M000108">entries</a>, except that
|
746
|
-
matching entries are excluded.
|
747
|
-
</p>
|
748
|
-
<p>
|
749
|
-
See also <a href="GrandeEntry.html#M000108">entries</a>, <a
|
750
|
-
href="Grande.html#M000103">skip</a>
|
751
|
-
</p>
|
752
|
-
</div>
|
753
|
-
</div>
|
754
|
-
|
755
|
-
<div id="method-M000111" class="method-detail">
|
756
|
-
<a name="M000111"></a>
|
757
|
-
|
758
|
-
<div class="method-heading">
|
759
|
-
<a href="GrandeEntry.src/M000111.html" target="Code" class="method-signature"
|
760
|
-
onclick="popupCode('GrandeEntry.src/M000111.html');return false;">
|
761
|
-
<span class="method-name">skipfiles</span><span class="method-args">(*args,&block)</span>
|
762
|
-
</a>
|
763
|
-
</div>
|
764
|
-
|
765
|
-
<div class="method-description">
|
766
|
-
<p>
|
767
|
-
Grande <a href="File.html">File</a> Exclude Method
|
768
|
-
</p>
|
769
|
-
<p>
|
770
|
-
If no args are provided selects anything but files.
|
771
|
-
</p>
|
772
|
-
<pre>
|
773
|
-
ario.skipfiles do |el|
|
774
|
-
el.file? #=> false
|
775
|
-
end
|
776
|
-
</pre>
|
777
|
-
<p>
|
778
|
-
If args are provided, sets the rio to select files as with <a
|
779
|
-
href="GrandeEntry.html#M000110">files</a>, but the arguments are used to
|
780
|
-
determine which files will <b>not</b> be processed
|
781
|
-
</p>
|
782
|
-
<p>
|
783
|
-
If a block is given behaves like
|
784
|
-
<tt>ario.skipfiles(*args).each(&block)</tt>
|
785
|
-
</p>
|
786
|
-
<p>
|
787
|
-
See <a href="GrandeEntry.html#M000110">files</a>, <a
|
788
|
-
href="Grande.html#M000103">skip</a>
|
789
|
-
</p>
|
790
|
-
<pre>
|
791
|
-
rio('adir').skipfiles { |ent| ... } # iterate through everything except files
|
792
|
-
rio('adir').skipfiles('*~') { |frio| ... } # iterate through files, skipping those ending with a tilde
|
793
|
-
</pre>
|
794
|
-
</div>
|
795
|
-
</div>
|
796
|
-
|
797
|
-
|
798
|
-
</div>
|
799
|
-
</div>
|
800
|
-
|
801
|
-
|
802
|
-
</div>
|
803
|
-
|
804
|
-
|
805
|
-
<div id="validator-badges">
|
806
|
-
<p><small>Copyright © 2005,2006,2007 Christopher Kleckner. <a href="http://www.gnu.org/licenses/gpl.html">All rights reserved</a>.</small></p>
|
807
|
-
</div>
|
808
|
-
|
809
|
-
</body>
|
810
|
-
</html>
|