rio 0.3.9 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +14 -8
- data/Rakefile +7 -9
- data/doc/ANNOUNCE +61 -46
- data/doc/RELEASE_NOTES +12 -3
- data/doc/RIOIS +7 -7
- data/doc/generators/template/html/rio.rb +7 -8
- data/doc/generators/template/html/ugly.rb +4 -2
- data/doc/pkg_def.rb +4 -10
- data/doc/rdoc/classes/Kernel.html +133 -0
- data/doc/rdoc/classes/Kernel.src/M000233.html +18 -0
- data/doc/rdoc/classes/RIO.html +625 -0
- data/doc/rdoc/classes/RIO.src/M000001.html +18 -0
- data/doc/rdoc/classes/RIO.src/M000002.html +18 -0
- data/doc/rdoc/classes/RIO.src/M000003.html +18 -0
- data/doc/rdoc/classes/RIO/Doc.html +148 -0
- data/doc/rdoc/classes/RIO/Doc/EXAMPLES.html +432 -0
- data/doc/rdoc/classes/RIO/Doc/HOWTO.html +1075 -0
- data/doc/rdoc/classes/RIO/Doc/INDEX.html +368 -0
- data/doc/rdoc/classes/RIO/Doc/INTRO.html +1533 -0
- data/doc/rdoc/classes/RIO/Doc/OPTIONAL.html +221 -0
- data/doc/rdoc/classes/RIO/Doc/SYNOPSIS.html +337 -0
- data/doc/rdoc/classes/RIO/IF.html +165 -0
- data/doc/rdoc/classes/RIO/IF/CSV.html +203 -0
- data/doc/rdoc/classes/RIO/IF/CSV.src/M000116.html +19 -0
- data/doc/rdoc/classes/RIO/IF/CSV.src/M000117.html +16 -0
- data/doc/rdoc/classes/RIO/IF/CSV.src/M000118.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Dir.html +343 -0
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000045.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000046.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000047.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000048.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000049.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000050.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000051.html +16 -0
- data/doc/rdoc/classes/RIO/IF/File.html +223 -0
- data/doc/rdoc/classes/RIO/IF/File.src/M000212.html +16 -0
- data/doc/rdoc/classes/RIO/IF/File.src/M000213.html +16 -0
- data/doc/rdoc/classes/RIO/IF/File.src/M000214.html +16 -0
- data/doc/rdoc/classes/RIO/IF/File.src/M000215.html +16 -0
- data/doc/rdoc/classes/RIO/IF/FileOrDir.html +572 -0
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000155.html +16 -0
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000156.html +16 -0
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000157.html +16 -0
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000158.html +16 -0
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000159.html +16 -0
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000160.html +16 -0
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000161.html +16 -0
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000162.html +16 -0
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000163.html +16 -0
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000164.html +16 -0
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000165.html +16 -0
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000166.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Grande.html +1349 -0
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000088.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000089.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000090.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000091.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000092.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000093.html +21 -0
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000094.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000095.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000096.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000097.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000098.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000099.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000100.html +21 -0
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000101.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000102.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000103.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000104.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000105.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.html +810 -0
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000106.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000107.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000108.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000109.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000110.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000111.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000112.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000113.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000114.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000115.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.html +1513 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000052.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000053.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000054.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000055.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000056.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000057.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000058.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000059.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000060.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000061.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000062.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000063.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000064.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000065.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000066.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000067.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000068.html +19 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000069.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000070.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000071.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000072.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000073.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000074.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000075.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000076.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000077.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000078.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000079.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000080.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000081.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000082.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000083.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000084.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000085.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000086.html +16 -0
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000087.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.html +999 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000180.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000181.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000182.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000183.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000184.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000185.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000186.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000187.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000188.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000189.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000190.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000191.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000192.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000193.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000194.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000195.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000196.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000197.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000198.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000199.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000200.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000201.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000202.html +18 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000203.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000204.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000205.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000206.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000207.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000208.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000209.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000210.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Path.src/M000211.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.html +1414 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000004.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000005.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000006.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000007.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000008.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000009.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000010.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000011.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000012.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000013.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000014.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000015.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000016.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000017.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000018.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000019.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000020.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000021.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000022.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000023.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000024.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000025.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000026.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000027.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000028.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000029.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000030.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000031.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000032.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000033.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000034.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000035.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000036.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000037.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000038.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000039.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000040.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000041.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000042.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000043.html +16 -0
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000044.html +16 -0
- data/doc/rdoc/classes/RIO/IF/String.html +203 -0
- data/doc/rdoc/classes/RIO/IF/String.src/M000216.html +16 -0
- data/doc/rdoc/classes/RIO/IF/String.src/M000217.html +16 -0
- data/doc/rdoc/classes/RIO/IF/String.src/M000218.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.html +990 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000119.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000120.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000121.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000122.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000123.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000124.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000125.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000126.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000127.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000128.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000129.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000130.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000131.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000132.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000133.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000134.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000135.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000136.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000137.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000138.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000139.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000140.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000141.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000142.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000143.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000144.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000145.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000146.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000147.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000148.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000149.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000150.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000151.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000152.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000153.html +16 -0
- data/doc/rdoc/classes/RIO/IF/Test.src/M000154.html +16 -0
- data/doc/rdoc/classes/RIO/IF/YAML.html +517 -0
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000167.html +19 -0
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000168.html +16 -0
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000169.html +16 -0
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000170.html +16 -0
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000171.html +16 -0
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000172.html +16 -0
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000173.html +16 -0
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000174.html +16 -0
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000175.html +16 -0
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000176.html +16 -0
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000177.html +16 -0
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000178.html +16 -0
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000179.html +16 -0
- data/doc/rdoc/classes/RIO/Rio.html +508 -0
- data/doc/rdoc/classes/RIO/Rio.src/M000219.html +18 -0
- data/doc/rdoc/classes/RIO/Rio.src/M000220.html +20 -0
- data/doc/rdoc/classes/RIO/Rio.src/M000221.html +27 -0
- data/doc/rdoc/classes/RIO/Rio.src/M000222.html +16 -0
- data/doc/rdoc/classes/RIO/Rio.src/M000224.html +19 -0
- data/doc/rdoc/classes/RIO/Rio.src/M000225.html +20 -0
- data/doc/rdoc/classes/RIO/Rio.src/M000226.html +16 -0
- data/doc/rdoc/classes/RIO/Rio.src/M000227.html +16 -0
- data/doc/rdoc/classes/RIO/Rio.src/M000228.html +16 -0
- data/doc/rdoc/classes/RIO/Rio.src/M000229.html +16 -0
- data/doc/rdoc/classes/RIO/Rio.src/M000230.html +16 -0
- data/doc/rdoc/classes/RIO/Rio.src/M000231.html +16 -0
- data/doc/rdoc/classes/RIO/Rio.src/M000232.html +16 -0
- data/doc/rdoc/created.rid +1 -0
- data/doc/rdoc/files/README.html +229 -0
- data/doc/rdoc/files/lib/rio/constructor_rb.html +141 -0
- data/doc/rdoc/files/lib/rio/doc/EXAMPLES_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/doc/HOWTO_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/doc/INDEX_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/doc/INTRO_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/doc/OPTIONAL_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/doc/SYNOPSIS_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/if/basic_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/if/csv_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/if/dir_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/if/file_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/if/fileordir_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/if/grande_entry_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/if/grande_rb.html +141 -0
- data/doc/rdoc/files/lib/rio/if/grande_stream_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/if/internal_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/if/path_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/if/rubyio_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/if/string_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/if/temp_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/if/test_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/if/yaml_rb.html +134 -0
- data/doc/rdoc/files/lib/rio/kernel_rb.html +142 -0
- data/doc/rdoc/files/lib/rio_rb.html +153 -0
- data/doc/rdoc/fr_class_index.html +49 -0
- data/doc/rdoc/fr_file_index.html +51 -0
- data/doc/rdoc/fr_method_index.html +259 -0
- data/doc/rdoc/index.html +30 -0
- data/doc/rdoc/rdoc-style.css +428 -0
- data/lib/rio/cp.rb +9 -8
- data/lib/rio/doc/HOWTO.rb +46 -32
- data/lib/rio/doc/INDEX.rb +311 -0
- data/lib/rio/doc/INTRO.rb +10 -10
- data/lib/rio/doc/OPTIONAL.rb +6 -9
- data/lib/rio/doc/SYNOPSIS.rb +54 -57
- data/lib/rio/ext/csv.rb +5 -1
- data/lib/rio/ext/yaml.rb +19 -40
- data/lib/rio/if/fileordir.rb +1 -1
- data/lib/rio/if/grande.rb +4 -4
- data/lib/rio/if/grande_entry.rb +6 -0
- data/lib/rio/if/grande_stream.rb +10 -8
- data/lib/rio/if/path.rb +1 -1
- data/lib/rio/if/rubyio.rb +4 -4
- data/lib/rio/if/yaml.rb +27 -13
- data/lib/rio/ops/stream/input.rb +0 -1
- data/lib/rio/stream.rb +1 -0
- data/lib/rio/version.rb +1 -1
- data/test/tc/synopsis.rb +75 -0
- data/test/tc/yaml.rb +150 -4
- metadata +314 -2
data/lib/rio/doc/INTRO.rb
CHANGED
@@ -38,15 +38,15 @@ module RIO
|
|
38
38
|
module Doc
|
39
39
|
=begin rdoc
|
40
40
|
|
41
|
-
= Rio - Ruby I/O
|
41
|
+
= Rio - Ruby I/O Facilitator
|
42
42
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
43
|
+
fa-cil-i-tate: To make easy or easier [http://www.thefreedictionary.com/facilitate]
|
44
|
+
|
45
|
+
Rio is a facade for most of the standard ruby classes that deal with I/O;
|
46
|
+
providing a simple, intuitive, succinct interface to the functionality
|
47
|
+
provided by IO, File, Dir, Pathname, FileUtils, Tempfile, StringIO, OpenURI
|
48
|
+
and others. Rio also provides an application level interface which allows many
|
49
|
+
common I/O idioms to be expressed succinctly.
|
50
50
|
|
51
51
|
|
52
52
|
Rio functionality can be broadly broken into three categories
|
@@ -863,7 +863,7 @@ One way to append a string to a file and close it in one line is
|
|
863
863
|
|
864
864
|
Run a cmd that must be opened for read and write
|
865
865
|
|
866
|
-
ans = rio(?-,'cat').w!.puts!("Hello Kitty").
|
866
|
+
ans = rio(?-,'cat').w!.puts!("Hello Kitty").readline
|
867
867
|
|
868
868
|
The automatic selection of mode can be bypassed entirely using
|
869
869
|
IF::RubyIO#mode and IF::FileOrDir#open.
|
@@ -872,7 +872,7 @@ If a mode is specified using +mode+, the file will still be opened
|
|
872
872
|
automatically, but the mode specified in the +mode+ method will be
|
873
873
|
used regardless of whether it makes sense.
|
874
874
|
|
875
|
-
A Rio can also be opened explicitly using IF::
|
875
|
+
A Rio can also be opened explicitly using IF::FileOrDir#open. +open+ takes one
|
876
876
|
parameter, a mode. This also will override all of Rio's automatic
|
877
877
|
mode selection.
|
878
878
|
|
data/lib/rio/doc/OPTIONAL.rb
CHANGED
@@ -38,16 +38,13 @@ module RIO
|
|
38
38
|
module Doc #:doc:
|
39
39
|
=begin rdoc
|
40
40
|
|
41
|
-
= Rio - Ruby I/O
|
42
|
-
|
43
|
-
Rio is a convenience class wrapping much of the functionality of IO,
|
44
|
-
File, Dir, Pathname, FileUtils, Tempfile, StringIO, and OpenURI and
|
45
|
-
uses Zlib, and CSV to extend that functionality using a simple
|
46
|
-
consistent interface. Most of the instance methods of IO, File and
|
47
|
-
Dir are simply forwarded to the appropriate handle to provide
|
48
|
-
identical functionality. Rio also provides a "grande" interface that
|
49
|
-
allows many application level IO tasks to be expressed succinctly.
|
41
|
+
= Rio - Ruby I/O Facilitator
|
50
42
|
|
43
|
+
Rio is a facade for most of the standard ruby classes that deal with I/O;
|
44
|
+
providing a simple, intuitive, succinct interface to the functionality
|
45
|
+
provided by IO, File, Dir, Pathname, FileUtils, Tempfile, StringIO, OpenURI
|
46
|
+
and others. Rio also provides an application level interface which allows many
|
47
|
+
common I/O idioms to be expressed succinctly.
|
51
48
|
|
52
49
|
Please read the following first:
|
53
50
|
* RIO::Doc::INTRO
|
data/lib/rio/doc/SYNOPSIS.rb
CHANGED
@@ -49,15 +49,15 @@ module RIO
|
|
49
49
|
module Doc #:doc:
|
50
50
|
=begin rdoc
|
51
51
|
|
52
|
-
= Rio - Ruby I/O
|
52
|
+
= Rio - Ruby I/O Facilitator
|
53
53
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
54
|
+
fa-cil-i-tate: To make easy or easier [http://www.thefreedictionary.com/facilitate]
|
55
|
+
|
56
|
+
Rio is a facade for most of the standard ruby classes that deal with I/O;
|
57
|
+
providing a simple, intuitive, succinct interface to the functionality
|
58
|
+
provided by IO, File, Dir, Pathname, FileUtils, Tempfile, StringIO, OpenURI
|
59
|
+
and others. Rio also provides an application level interface which allows many
|
60
|
+
common I/O idioms to be expressed succinctly.
|
61
61
|
|
62
62
|
|
63
63
|
== SYNOPSIS
|
@@ -66,6 +66,21 @@ For the following assume:
|
|
66
66
|
astring = ""
|
67
67
|
anarray = []
|
68
68
|
|
69
|
+
Iterate over the .rb files in a directory.
|
70
|
+
rio('adir').files('*.rb') { |entrio| ... }
|
71
|
+
|
72
|
+
Return an array of the .rb files in a directory.
|
73
|
+
rio('adir').files['*.rb']
|
74
|
+
|
75
|
+
Copy the .rb files in a directory.to another directory.
|
76
|
+
rio('adir').files('*.rb') > rio('another_directory')
|
77
|
+
|
78
|
+
Iterate over the .rb files in a directory and its subdirectories.
|
79
|
+
rio('adir').all.files('*.rb') { |entrio| ... }
|
80
|
+
|
81
|
+
Return an array of the .rb files in a directory and its subdirectories.
|
82
|
+
rio('adir').all.files['*.rb']
|
83
|
+
|
69
84
|
Copy or append a file to a string
|
70
85
|
rio('afile') > astring # copy
|
71
86
|
rio('afile') >> astring # append
|
@@ -85,18 +100,39 @@ Copy or append a file to another file
|
|
85
100
|
Copy a file to a directory
|
86
101
|
rio('adir') << rio('afile')
|
87
102
|
|
88
|
-
Copy a directory
|
103
|
+
Copy a directory to another directory
|
89
104
|
rio('adir') >> rio('another_directory')
|
90
105
|
|
91
106
|
Copy a web-page to a file
|
92
107
|
rio('http://rubydoc.org/') > rio('afile')
|
93
108
|
|
109
|
+
Read a web-page into a string
|
110
|
+
astring = rio('http://rubydoc.org/').read
|
111
|
+
|
94
112
|
Ways to get the chomped lines of a file into an array
|
95
113
|
anarray = rio('afile').chomp[] # subscript operator
|
96
114
|
rio('afile').chomp > anarray # copy-to operator
|
97
115
|
anarray = rio('afile').chomp.to_a # to_a
|
98
116
|
anarray = rio('afile').chomp.readlines # IO#readlines
|
99
117
|
|
118
|
+
Iterate over selected lines of a file
|
119
|
+
rio('adir').lines(0..3) { |aline| ... } # a range of lines
|
120
|
+
rio('adir').lines(/re/) { |aline| ... } # by regular expression
|
121
|
+
rio('adir').lines(0..3,/re/) { |aline| ... } # or both
|
122
|
+
|
123
|
+
Return selected lines of a file as an array
|
124
|
+
rio('adir').lines[0..3] # a range of lines
|
125
|
+
rio('adir').lines[/re/] # by regular expression
|
126
|
+
rio('adir').lines[0..3,/re/] # or both
|
127
|
+
|
128
|
+
Iterate over selected chomped lines of a file
|
129
|
+
rio('adir').chomp.lines(0..3) { |aline| ... } # a range of lines
|
130
|
+
rio('adir').chomp.lines(/re/) { |aline| ... } # by regular expression
|
131
|
+
|
132
|
+
Return selected chomped lines of a file as an array
|
133
|
+
rio('adir').chomp[0..3] # a range of lines
|
134
|
+
rio('adir').chomp[/re/] # by regular expression
|
135
|
+
|
100
136
|
Copy a gzipped file un-gzipping it
|
101
137
|
rio('afile.gz').gzip > rio('afile')
|
102
138
|
|
@@ -106,56 +142,20 @@ Copy a plain file, gzipping it
|
|
106
142
|
Copy a file from a ftp server into a local file un-gzipping it
|
107
143
|
rio('ftp://host/afile.gz').gzip > rio('afile')
|
108
144
|
|
109
|
-
|
110
|
-
rio('adir').
|
111
|
-
|
112
|
-
Iterate over only the files in a directory
|
113
|
-
rio('adir').files { |entrio| ... }
|
145
|
+
Return an array of .rb files excluding symlinks to .rb files
|
146
|
+
rio('adir').files('*.rb').skip[:symlink?]
|
114
147
|
|
115
|
-
|
116
|
-
rio('
|
117
|
-
|
118
|
-
Iterate over only the _dot_ files in a directory
|
119
|
-
rio('adir').files(/^\./) { |entrio| ... }
|
120
|
-
|
121
|
-
Iterate over the files in a directory and its subdirectories, skipping '.svn' and 'CVS' directories
|
122
|
-
rio('adir').norecurse(/^\.svn$/,'CVS').files { |entrio| ... }
|
123
|
-
|
124
|
-
Create an array of the .rb entries in a directory
|
125
|
-
anarray = rio('adir')['*.rb']
|
126
|
-
|
127
|
-
Create an array of the .rb entries in a directory and its subdirectories
|
128
|
-
anarray = rio('adir').all['*.rb']
|
129
|
-
|
130
|
-
Iterate over the .rb files in a directory and its subdirectories
|
131
|
-
rio('adir').all.files('*.rb') { |entrio| ... }
|
148
|
+
Put the first 10 chomped lines of a gzipped file into an array
|
149
|
+
anarray = rio('afile.gz').chomp.gzip[0...10]
|
132
150
|
|
133
|
-
Copy
|
134
|
-
rio('
|
151
|
+
Copy lines 0 and 3 thru 5 of a gzipped file on an ftp server to stdout
|
152
|
+
rio('ftp://host/afile.gz').gzip.lines(0,3..5) > ?-
|
135
153
|
|
136
|
-
|
137
|
-
rio('
|
138
|
-
|
139
|
-
Put the first 10 chomped lines of a file into an array
|
140
|
-
anarray = rio('afile').chomp.lines[0..9]
|
141
|
-
|
142
|
-
Copy the first 10 lines of a file into another file
|
143
|
-
rio('afile').lines(0..9) > rio('another_file')
|
144
|
-
|
145
|
-
Copy the first 10 lines of a file to stdout
|
146
|
-
rio('afile').lines(0..9) > rio(?-)
|
147
|
-
|
148
|
-
Copy the first 10 lines of a gzipped file on an ftp server to stdout
|
149
|
-
rio('ftp://host/afile.gz').gzip.lines(0..9) > rio(?-)
|
150
|
-
|
151
|
-
Put the first 100 chomped lines of a gzipped file into an array
|
152
|
-
anarray = rio('afile.gz').chomp.gzip[0...100]
|
153
|
-
|
154
|
-
Put chomped lines that start with 'Rio' into an array
|
155
|
-
anarray = rio('afile').chomp[/^Rio/]
|
154
|
+
Return an array of files in a directory and its subdirectories, without descending into .svn directories.
|
155
|
+
rio('adir').norecurse(/^\.svn$/).files[]
|
156
156
|
|
157
157
|
Iterate over the non-empty, non-comment chomped lines of a file
|
158
|
-
rio('afile').chomp.
|
158
|
+
rio('afile').chomp.skip(:empty?,/^\s*#/) { |line| ... }
|
159
159
|
|
160
160
|
Copy the output of th ps command into an array, skipping the header line and the ps command entry
|
161
161
|
rio(?-,'ps -a').skiplines(0,/ps$/) > anarray
|
@@ -168,9 +168,6 @@ Change the extension of all .htm files in a directory and its subdirectories to
|
|
168
168
|
htmfile.extname = '.html'
|
169
169
|
end
|
170
170
|
|
171
|
-
Create a symbolic link 'asymlink' in 'adir' which refers to 'adir/afile'
|
172
|
-
rio('adir/afile').symlink('adir/asymlink')
|
173
|
-
|
174
171
|
=== SUGGESTED READING
|
175
172
|
|
176
173
|
* RIO::Doc::INTRO
|
data/lib/rio/ext/csv.rb
CHANGED
@@ -208,7 +208,11 @@ module RIO
|
|
208
208
|
fields.csv_rec_to_s = _rec_to_s_proc(fs,rs)
|
209
209
|
end
|
210
210
|
end
|
211
|
-
fields
|
211
|
+
# p "csv#fields: #{fields}"
|
212
|
+
# fields.each do |f|
|
213
|
+
# p f
|
214
|
+
# end
|
215
|
+
fields.map{ |f| f.to_s }
|
212
216
|
end
|
213
217
|
def cnames(num)
|
214
218
|
@cnames ||= trim((0...num).map { |n| "Col#{n}" })
|
data/lib/rio/ext/yaml.rb
CHANGED
@@ -54,6 +54,8 @@ module RIO
|
|
54
54
|
protected :yaml_
|
55
55
|
def objects(*args) records(*args) end
|
56
56
|
def documents(*args) rows(*args) end
|
57
|
+
def object(*args) record(*args) end
|
58
|
+
def document(*args) row(*args) end
|
57
59
|
def skipobjects(*args) skiprecords(*args) end
|
58
60
|
def skipdocuments(*args) skiprows(*args) end
|
59
61
|
end
|
@@ -85,16 +87,6 @@ module RIO
|
|
85
87
|
YAML.dump(recs,ioarg)
|
86
88
|
end
|
87
89
|
end
|
88
|
-
def cpto_obj_(arg)
|
89
|
-
self.each { |obj|
|
90
|
-
|
91
|
-
}
|
92
|
-
end
|
93
|
-
def cpto_array_(array)
|
94
|
-
self.each { |el|
|
95
|
-
array << el
|
96
|
-
}
|
97
|
-
end
|
98
90
|
def cpto_string_(string)
|
99
91
|
string << ::YAML.dump_stream(self.contents)
|
100
92
|
end
|
@@ -122,21 +114,6 @@ module RIO
|
|
122
114
|
getrec()
|
123
115
|
end
|
124
116
|
|
125
|
-
def add_filters
|
126
|
-
cx['yaml_close_eof'],cx['closeoneof'] = cx['closeoneof'],false
|
127
|
-
super
|
128
|
-
end
|
129
|
-
def each_(&block)
|
130
|
-
#old_close_eof,cx['closeoneof'] = cx['closeoneof'],false
|
131
|
-
super
|
132
|
-
cx['closeoneof'] = cx.delete('yaml_close_eof')
|
133
|
-
|
134
|
-
if closeoneof?
|
135
|
-
add_filter(Filter::CloseOnEOF)
|
136
|
-
ioh.oncloseproc = proc { self.on_closeoneof }
|
137
|
-
end
|
138
|
-
closeoneof? ? ioh.close_on_eof_(self) : self
|
139
|
-
end
|
140
117
|
end
|
141
118
|
end
|
142
119
|
|
@@ -145,23 +122,25 @@ module RIO
|
|
145
122
|
protected
|
146
123
|
|
147
124
|
def cpfrom_(arg)
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
end
|
155
|
-
def cpfrom_array_(array)
|
156
|
-
array.each { |el|
|
157
|
-
self.put_(el)
|
158
|
-
}
|
159
|
-
self
|
160
|
-
end
|
161
|
-
def cpfrom_rio_(ario)
|
162
|
-
ioh.puts(::YAML.dump_stream(*ario[]))
|
125
|
+
#p "yaml#cpfrom_(#{arg})"
|
126
|
+
case arg
|
127
|
+
#when ::Array then cpfrom_array_(arg)
|
128
|
+
when Rio,::IO,::StringIO then super
|
129
|
+
else self.put_(arg)
|
130
|
+
end
|
163
131
|
self
|
164
132
|
end
|
133
|
+
# def cpfrom_array_(array)
|
134
|
+
# array.each { |el|
|
135
|
+
# self.put_(el)
|
136
|
+
# }
|
137
|
+
# self
|
138
|
+
# end
|
139
|
+
# def cpfrom_rio_(ario)
|
140
|
+
# p "yaml#cpfrom_rio_(#{ario})"
|
141
|
+
# ioh.puts(::YAML.dump_stream(*ario[]))
|
142
|
+
# self
|
143
|
+
# end
|
165
144
|
def put_(obj)
|
166
145
|
#p callstr('put_',obj)
|
167
146
|
ioh.puts(obj.to_yaml)
|
data/lib/rio/if/fileordir.rb
CHANGED
@@ -109,7 +109,7 @@ module RIO
|
|
109
109
|
def rename(*args,&block) target.rename(*args,&block); self end
|
110
110
|
|
111
111
|
|
112
|
-
# Behaves like IF::
|
112
|
+
# Behaves like IF::FileOrDir#rename, but also changes the calling Rio to
|
113
113
|
# refer to the renamed path
|
114
114
|
def rename!(*args,&block) target.rename!(*args,&block); self end
|
115
115
|
|
data/lib/rio/if/grande.rb
CHANGED
@@ -126,15 +126,15 @@ module RIO
|
|
126
126
|
# As with IF::Grande#each:
|
127
127
|
# * Files and directories are returned as Rios
|
128
128
|
# * The types of entries is also affected by IF::GrandeEntry#files and IF::GrandeEntry#dirs.
|
129
|
-
# rio('adir').files['*.txt'] # array of all
|
129
|
+
# rio('adir').files['*.txt'] # array of all .txt files
|
130
130
|
# rio('adir').dirs(/^\./) # array of all dot directories
|
131
131
|
# * Recursion is enabled using IF::GrandeEntry#all
|
132
|
-
# rio('adir').all.files['*.[ch]'] # array of c source files in
|
133
|
-
# rio('adir').all.dirs[/^\.svn/] # array of subversion directories in
|
132
|
+
# rio('adir').all.files['*.[ch]'] # array of c source files in adir and its subdirecories
|
133
|
+
# rio('adir').all.dirs[/^\.svn/] # array of subversion directories in adir and subdirectories
|
134
134
|
# * IF::GrandeEntry#files and IF::GrandeEntry#dirs act independetly of each other.
|
135
135
|
# Specifying both will cause both to be returned.
|
136
136
|
# The argument list to IF::Grande#[] will be applied to the closest.
|
137
|
-
# rio('adir').files('*.rb').dirs['ruby*'] # array of
|
137
|
+
# rio('adir').files('*.rb').dirs['ruby*'] # array of .rb files and
|
138
138
|
# # directories starting with 'ruby'
|
139
139
|
# rio('adir').dirs('ruby*').files['*.rb'] # same thing
|
140
140
|
#
|
data/lib/rio/if/grande_entry.rb
CHANGED
@@ -62,6 +62,12 @@ module RIO
|
|
62
62
|
# rio('adir').dirs[/^\./] # return an array of dot directories
|
63
63
|
# rio('adir').dirs[:symlink?] # an array of symlinks to directories
|
64
64
|
#
|
65
|
+
# Given the directory structure 'adir/a/b/c/d'
|
66
|
+
#
|
67
|
+
# rio('adir').all.dirs[2] #=> 'adir/a/b'
|
68
|
+
# rio('adir').all.dirs[0..2] #=> 'adir/a','adir/a/b'
|
69
|
+
# rio('adir').all.skipdirs[0..2] #=> 'adir/a/b/c','adir/a/b/c/d'
|
70
|
+
#
|
65
71
|
def dirs(*args,&block) target.dirs(*args,&block); self end
|
66
72
|
|
67
73
|
# Grande Directory Exclude Method
|
data/lib/rio/if/grande_stream.rb
CHANGED
@@ -91,7 +91,7 @@ module RIO
|
|
91
91
|
|
92
92
|
# Sets the rio to read bytes and returns the rio
|
93
93
|
#
|
94
|
-
# _n_ specifies the number of bytes to be returned on each iteration of IF::Grande#each or by IF::
|
94
|
+
# _n_ specifies the number of bytes to be returned on each iteration of IF::Grande#each or by IF::GrandeStream#getrec. If _args_
|
95
95
|
# are provided, they are treated as record selectors as if <tt>ario.bytes(n).records(*args)</tt> had been
|
96
96
|
# called. See also #records, #lines, IF::Grande#each, IF::Grande#[]
|
97
97
|
#
|
@@ -115,7 +115,7 @@ module RIO
|
|
115
115
|
def bytes(n=1,*args,&block) target.bytes(n,*args,&block); self end
|
116
116
|
|
117
117
|
|
118
|
-
# Specifies which records will be iterated through by IF::Grande#each or returned by IF::
|
118
|
+
# Specifies which records will be iterated through by IF::Grande#each or returned by IF::GrandeStream#getrec
|
119
119
|
#
|
120
120
|
# If called with a block behaves as if <tt>records(*args).each(&block)</tt> had been called
|
121
121
|
#
|
@@ -126,8 +126,8 @@ module RIO
|
|
126
126
|
# and extensions such as IF::CSV#csv and IF::YAML#yaml.
|
127
127
|
#
|
128
128
|
# If args are provided they may be one or more of the following:
|
129
|
-
# Regexp:: any matching record will be iterated over by IF::Grande#each or returned by IF::
|
130
|
-
# Integer:: specifies a record-number (zero-based) to be iterated over by IF::Grande#each or returned by IF::
|
129
|
+
# Regexp:: any matching record will be iterated over by IF::Grande#each or returned by IF::GrandeStream#getrec
|
130
|
+
# Integer:: specifies a record-number (zero-based) to be iterated over by IF::Grande#each or returned by IF::GrandeStream#getrec
|
131
131
|
# Range:: specifies a range of records (zero-based) to included in the iteration
|
132
132
|
# Proc:: a proc which will be called for each record, records are included unless nil or false is returned
|
133
133
|
# Symbol:: a symbol which will _sent_ to each record, records are included unless nil or false is returned
|
@@ -157,7 +157,7 @@ module RIO
|
|
157
157
|
def records(*args,&block) target.records(*args,&block); self end
|
158
158
|
|
159
159
|
|
160
|
-
# Specifies records which should *not* be iterated through by IF::Grande#each or returned by IF::
|
160
|
+
# Specifies records which should *not* be iterated through by IF::Grande#each or returned by IF::GrandeStream#getrec
|
161
161
|
#
|
162
162
|
# If called with a block behaves as if <tt>skiprecords(*args).each(&block)</tt>
|
163
163
|
# had been called
|
@@ -190,7 +190,7 @@ module RIO
|
|
190
190
|
|
191
191
|
|
192
192
|
# Sets the Rio to read lines and specifies lines which should *not* be iterated through by IF::Grande#each or
|
193
|
-
# returned by IF::
|
193
|
+
# returned by IF::GrandeStream#getrec
|
194
194
|
#
|
195
195
|
# If called with a block behaves as if <tt>skiplines(*args).each(&block)</tt> had been called
|
196
196
|
#
|
@@ -217,14 +217,14 @@ module RIO
|
|
217
217
|
|
218
218
|
|
219
219
|
# Sets the Rio to read rows and specifies rows which should be iterated through
|
220
|
-
# by IF::Grande#each or returned by IF::
|
220
|
+
# by IF::Grande#each or returned by IF::GrandeStream#getrec.
|
221
221
|
# #rows is intended for use by extensions, where the concept of a row is reasonable.
|
222
222
|
# In the absensence of an extension behaves like #records.
|
223
223
|
def rows(*args,&block) target.rows(*args,&block); self end
|
224
224
|
|
225
225
|
|
226
226
|
# Sets the Rio to read rows and specifies lines which should *not* be iterated
|
227
|
-
# through by IF::Grande#each or returned by IF::
|
227
|
+
# through by IF::Grande#each or returned by IF::GrandeStream#getrec
|
228
228
|
# #skiprows is intended for use by extensions, where the concept of a row is
|
229
229
|
# reasonable. In the absence of an extension behaves like #skiprecords
|
230
230
|
def skiprows(*args,&block) target.skiprows(*args,&block); self end
|
@@ -359,6 +359,8 @@ module RIO
|
|
359
359
|
#
|
360
360
|
# Returns the Rio
|
361
361
|
#
|
362
|
+
# rio(?-,'cat').w!.puts!("Hello Kitty").readline #=> "Hello Kitty"
|
363
|
+
#
|
362
364
|
# See the discussion for #a.
|
363
365
|
#
|
364
366
|
def w!() target.w!(); self end
|
data/lib/rio/if/path.rb
CHANGED
@@ -120,7 +120,7 @@ module RIO
|
|
120
120
|
# to the value returned by File#extname. Returns the Rio.
|
121
121
|
#
|
122
122
|
# ario = rio('afile.tar.gz')
|
123
|
-
# ario.ext? #=> '.
|
123
|
+
# ario.ext? #=> '.gz'
|
124
124
|
# ario.basename #=> rio('afile.tar')
|
125
125
|
# ario.ext('.tar.gz').basename #=> rio('afile')
|
126
126
|
# ario.ext? #=> '.tar.gz'
|