facets 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/ANN +53 -0
- data/ChangeLog +50 -0
- data/LICENSE-GPL +341 -0
- data/LICENSE-RUBY +60 -0
- data/README +130 -0
- data/Reapfile +74 -0
- data/TODO +42 -0
- data/VERSION +7 -0
- data/doc/classes/Array.html +1267 -0
- data/doc/classes/Array.src/M000027.html +19 -0
- data/doc/classes/Array.src/M000028.html +23 -0
- data/doc/classes/Array.src/M000029.html +18 -0
- data/doc/classes/Array.src/M000030.html +18 -0
- data/doc/classes/Array.src/M000031.html +18 -0
- data/doc/classes/Array.src/M000032.html +18 -0
- data/doc/classes/Array.src/M000033.html +18 -0
- data/doc/classes/Array.src/M000034.html +18 -0
- data/doc/classes/Array.src/M000035.html +18 -0
- data/doc/classes/Array.src/M000036.html +20 -0
- data/doc/classes/Array.src/M000037.html +31 -0
- data/doc/classes/Array.src/M000038.html +19 -0
- data/doc/classes/Array.src/M000039.html +24 -0
- data/doc/classes/Array.src/M000040.html +23 -0
- data/doc/classes/Array.src/M000041.html +31 -0
- data/doc/classes/Array.src/M000042.html +27 -0
- data/doc/classes/Array.src/M000044.html +22 -0
- data/doc/classes/Array.src/M000046.html +20 -0
- data/doc/classes/Array.src/M000047.html +18 -0
- data/doc/classes/Array.src/M000048.html +24 -0
- data/doc/classes/Array.src/M000049.html +19 -0
- data/doc/classes/Array.src/M000050.html +24 -0
- data/doc/classes/Array.src/M000051.html +22 -0
- data/doc/classes/Array.src/M000052.html +18 -0
- data/doc/classes/Array.src/M000053.html +25 -0
- data/doc/classes/Array.src/M000054.html +19 -0
- data/doc/classes/Array.src/M000055.html +26 -0
- data/doc/classes/Array.src/M000056.html +19 -0
- data/doc/classes/Array.src/M000057.html +28 -0
- data/doc/classes/Array.src/M000058.html +21 -0
- data/doc/classes/Array.src/M000059.html +18 -0
- data/doc/classes/Array.src/M000061.html +23 -0
- data/doc/classes/Binding.html +420 -0
- data/doc/classes/Binding.src/M000202.html +19 -0
- data/doc/classes/Binding.src/M000203.html +22 -0
- data/doc/classes/Binding.src/M000204.html +19 -0
- data/doc/classes/Binding.src/M000205.html +19 -0
- data/doc/classes/Binding.src/M000206.html +18 -0
- data/doc/classes/Binding.src/M000207.html +18 -0
- data/doc/classes/Binding.src/M000208.html +18 -0
- data/doc/classes/Binding.src/M000209.html +18 -0
- data/doc/classes/Binding.src/M000210.html +18 -0
- data/doc/classes/Binding.src/M000211.html +18 -0
- data/doc/classes/Binding.src/M000212.html +18 -0
- data/doc/classes/Binding.src/M000213.html +27 -0
- data/doc/classes/Binding.src/M000214.html +22 -0
- data/doc/classes/Class.html +216 -0
- data/doc/classes/Class.src/M000184.html +20 -0
- data/doc/classes/Class.src/M000185.html +20 -0
- data/doc/classes/Class.src/M000186.html +19 -0
- data/doc/classes/Comparable.html +190 -0
- data/doc/classes/Comparable.src/M000366.html +20 -0
- data/doc/classes/Comparable.src/M000367.html +18 -0
- data/doc/classes/Comparable.src/M000368.html +18 -0
- data/doc/classes/Continuation.html +188 -0
- data/doc/classes/Continuation.src/M000126.html +21 -0
- data/doc/classes/Enumerable.html +648 -0
- data/doc/classes/Enumerable.src/M000345.html +22 -0
- data/doc/classes/Enumerable.src/M000346.html +18 -0
- data/doc/classes/Enumerable.src/M000347.html +26 -0
- data/doc/classes/Enumerable.src/M000349.html +18 -0
- data/doc/classes/Enumerable.src/M000351.html +23 -0
- data/doc/classes/Enumerable.src/M000352.html +22 -0
- data/doc/classes/Enumerable.src/M000356.html +31 -0
- data/doc/classes/Enumerable.src/M000359.html +29 -0
- data/doc/classes/Enumerable.src/M000360.html +34 -0
- data/doc/classes/Enumerable.src/M000362.html +20 -0
- data/doc/classes/Enumerable.src/M000363.html +18 -0
- data/doc/classes/Enumerable.src/M000364.html +48 -0
- data/doc/classes/Enumerable.src/M000365.html +18 -0
- data/doc/classes/File.html +149 -0
- data/doc/classes/File.src/M000326.html +21 -0
- data/doc/classes/FileUtils.html +332 -0
- data/doc/classes/FileUtils.src/M000327.html +59 -0
- data/doc/classes/FileUtils.src/M000328.html +28 -0
- data/doc/classes/FileUtils.src/M000329.html +18 -0
- data/doc/classes/FileUtils.src/M000330.html +18 -0
- data/doc/classes/FileUtils.src/M000331.html +46 -0
- data/doc/classes/FileUtils.src/M000332.html +27 -0
- data/doc/classes/FileUtils.src/M000333.html +55 -0
- data/doc/classes/Float.html +180 -0
- data/doc/classes/Float.src/M000181.html +18 -0
- data/doc/classes/Float.src/M000182.html +19 -0
- data/doc/classes/Float.src/M000183.html +19 -0
- data/doc/classes/Functor.html +190 -0
- data/doc/classes/Functor.src/M000195.html +16 -0
- data/doc/classes/Functor.src/M000196.html +16 -0
- data/doc/classes/Functor.src/M000197.html +16 -0
- data/doc/classes/Functor.src/M000198.html +16 -0
- data/doc/classes/Hash.html +1319 -0
- data/doc/classes/Hash.src/M000063.html +20 -0
- data/doc/classes/Hash.src/M000064.html +18 -0
- data/doc/classes/Hash.src/M000065.html +22 -0
- data/doc/classes/Hash.src/M000066.html +23 -0
- data/doc/classes/Hash.src/M000067.html +21 -0
- data/doc/classes/Hash.src/M000068.html +25 -0
- data/doc/classes/Hash.src/M000069.html +18 -0
- data/doc/classes/Hash.src/M000070.html +22 -0
- data/doc/classes/Hash.src/M000071.html +20 -0
- data/doc/classes/Hash.src/M000072.html +26 -0
- data/doc/classes/Hash.src/M000073.html +19 -0
- data/doc/classes/Hash.src/M000074.html +19 -0
- data/doc/classes/Hash.src/M000075.html +24 -0
- data/doc/classes/Hash.src/M000078.html +18 -0
- data/doc/classes/Hash.src/M000080.html +20 -0
- data/doc/classes/Hash.src/M000083.html +18 -0
- data/doc/classes/Hash.src/M000084.html +20 -0
- data/doc/classes/Hash.src/M000086.html +19 -0
- data/doc/classes/Hash.src/M000087.html +20 -0
- data/doc/classes/Hash.src/M000089.html +16 -0
- data/doc/classes/Hash.src/M000090.html +19 -0
- data/doc/classes/Hash.src/M000091.html +22 -0
- data/doc/classes/Hash.src/M000092.html +18 -0
- data/doc/classes/Hash.src/M000093.html +18 -0
- data/doc/classes/Hash.src/M000094.html +20 -0
- data/doc/classes/Hash.src/M000095.html +19 -0
- data/doc/classes/Hash.src/M000096.html +19 -0
- data/doc/classes/Hash.src/M000097.html +19 -0
- data/doc/classes/Hash.src/M000098.html +18 -0
- data/doc/classes/Hash.src/M000099.html +18 -0
- data/doc/classes/Hash.src/M000100.html +19 -0
- data/doc/classes/Hash.src/M000101.html +24 -0
- data/doc/classes/Hash.src/M000104.html +55 -0
- data/doc/classes/Hash.src/M000105.html +19 -0
- data/doc/classes/Hash.src/M000106.html +19 -0
- data/doc/classes/Integer.html +248 -0
- data/doc/classes/Integer.src/M000007.html +19 -0
- data/doc/classes/Integer.src/M000008.html +18 -0
- data/doc/classes/Integer.src/M000009.html +18 -0
- data/doc/classes/Integer.src/M000010.html +21 -0
- data/doc/classes/Kernel.html +520 -0
- data/doc/classes/Kernel.src/M000334.html +27 -0
- data/doc/classes/Kernel.src/M000335.html +18 -0
- data/doc/classes/Kernel.src/M000336.html +18 -0
- data/doc/classes/Kernel.src/M000337.html +18 -0
- data/doc/classes/Kernel.src/M000338.html +24 -0
- data/doc/classes/Kernel.src/M000339.html +19 -0
- data/doc/classes/Kernel.src/M000340.html +22 -0
- data/doc/classes/Kernel.src/M000341.html +20 -0
- data/doc/classes/Kernel.src/M000342.html +19 -0
- data/doc/classes/Kernel.src/M000343.html +21 -0
- data/doc/classes/Kernel.src/M000344.html +18 -0
- data/doc/classes/MatchData.html +208 -0
- data/doc/classes/MatchData.src/M000107.html +21 -0
- data/doc/classes/MatchData.src/M000108.html +21 -0
- data/doc/classes/MatchData.src/M000109.html +18 -0
- data/doc/classes/Module.html +648 -0
- data/doc/classes/Module.src/M000112.html +32 -0
- data/doc/classes/Module.src/M000114.html +24 -0
- data/doc/classes/Module.src/M000115.html +41 -0
- data/doc/classes/Module.src/M000116.html +18 -0
- data/doc/classes/Module.src/M000117.html +20 -0
- data/doc/classes/Module.src/M000118.html +19 -0
- data/doc/classes/Module.src/M000119.html +20 -0
- data/doc/classes/Module.src/M000120.html +21 -0
- data/doc/classes/Module.src/M000122.html +23 -0
- data/doc/classes/Module.src/M000123.html +24 -0
- data/doc/classes/Module.src/M000124.html +20 -0
- data/doc/classes/Module.src/M000125.html +29 -0
- data/doc/classes/NilClass.html +336 -0
- data/doc/classes/NilClass.src/M000187.html +18 -0
- data/doc/classes/NilClass.src/M000188.html +16 -0
- data/doc/classes/NilClass.src/M000189.html +16 -0
- data/doc/classes/NilClass.src/M000190.html +16 -0
- data/doc/classes/NilClass.src/M000191.html +16 -0
- data/doc/classes/NilClass.src/M000192.html +16 -0
- data/doc/classes/NilClass.src/M000193.html +16 -0
- data/doc/classes/NilClass.src/M000194.html +16 -0
- data/doc/classes/Numeric.html +1122 -0
- data/doc/classes/Numeric.src/M000127.html +18 -0
- data/doc/classes/Numeric.src/M000128.html +18 -0
- data/doc/classes/Numeric.src/M000129.html +18 -0
- data/doc/classes/Numeric.src/M000130.html +29 -0
- data/doc/classes/Numeric.src/M000131.html +18 -0
- data/doc/classes/Numeric.src/M000132.html +18 -0
- data/doc/classes/Numeric.src/M000133.html +18 -0
- data/doc/classes/Numeric.src/M000135.html +18 -0
- data/doc/classes/Numeric.src/M000138.html +18 -0
- data/doc/classes/Numeric.src/M000141.html +18 -0
- data/doc/classes/Numeric.src/M000144.html +18 -0
- data/doc/classes/Numeric.src/M000147.html +19 -0
- data/doc/classes/Numeric.src/M000148.html +19 -0
- data/doc/classes/Numeric.src/M000149.html +18 -0
- data/doc/classes/Numeric.src/M000150.html +18 -0
- data/doc/classes/Numeric.src/M000151.html +18 -0
- data/doc/classes/Numeric.src/M000153.html +18 -0
- data/doc/classes/Numeric.src/M000155.html +18 -0
- data/doc/classes/Numeric.src/M000157.html +18 -0
- data/doc/classes/Numeric.src/M000159.html +18 -0
- data/doc/classes/Numeric.src/M000161.html +18 -0
- data/doc/classes/Numeric.src/M000163.html +18 -0
- data/doc/classes/Numeric.src/M000165.html +18 -0
- data/doc/classes/Numeric.src/M000167.html +18 -0
- data/doc/classes/Numeric.src/M000169.html +18 -0
- data/doc/classes/Numeric.src/M000171.html +18 -0
- data/doc/classes/Numeric.src/M000174.html +18 -0
- data/doc/classes/Numeric.src/M000178.html +20 -0
- data/doc/classes/Numeric.src/M000179.html +18 -0
- data/doc/classes/Numeric.src/M000180.html +18 -0
- data/doc/classes/Object.html +923 -0
- data/doc/classes/Object.src/M000215.html +21 -0
- data/doc/classes/Object.src/M000216.html +20 -0
- data/doc/classes/Object.src/M000217.html +18 -0
- data/doc/classes/Object.src/M000219.html +26 -0
- data/doc/classes/Object.src/M000220.html +20 -0
- data/doc/classes/Object.src/M000221.html +18 -0
- data/doc/classes/Object.src/M000222.html +18 -0
- data/doc/classes/Object.src/M000224.html +18 -0
- data/doc/classes/Object.src/M000226.html +18 -0
- data/doc/classes/Object.src/M000228.html +19 -0
- data/doc/classes/Object.src/M000229.html +19 -0
- data/doc/classes/Object.src/M000230.html +21 -0
- data/doc/classes/Object.src/M000232.html +18 -0
- data/doc/classes/Object.src/M000233.html +18 -0
- data/doc/classes/Object.src/M000234.html +19 -0
- data/doc/classes/Object.src/M000235.html +19 -0
- data/doc/classes/Object.src/M000236.html +19 -0
- data/doc/classes/Object.src/M000237.html +40 -0
- data/doc/classes/Object.src/M000238.html +27 -0
- data/doc/classes/Object.src/M000239.html +18 -0
- data/doc/classes/Object.src/M000240.html +18 -0
- data/doc/classes/Object.src/M000241.html +18 -0
- data/doc/classes/Object.src/M000242.html +18 -0
- data/doc/classes/OpenStruct.html +206 -0
- data/doc/classes/OpenStruct.src/M000199.html +22 -0
- data/doc/classes/OpenStruct.src/M000200.html +19 -0
- data/doc/classes/OpenStruct.src/M000201.html +20 -0
- data/doc/classes/Proc.html +184 -0
- data/doc/classes/Proc.src/M000110.html +20 -0
- data/doc/classes/Range.html +247 -0
- data/doc/classes/Range.src/M000003.html +23 -0
- data/doc/classes/Range.src/M000004.html +20 -0
- data/doc/classes/Range.src/M000005.html +18 -0
- data/doc/classes/Range.src/M000006.html +18 -0
- data/doc/classes/Regexp.html +205 -0
- data/doc/classes/Regexp.src/M000022.html +18 -0
- data/doc/classes/Regexp.src/M000023.html +18 -0
- data/doc/classes/Regexp.src/M000024.html +18 -0
- data/doc/classes/ScriptBug.html +111 -0
- data/doc/classes/String.html +1930 -0
- data/doc/classes/String.src/M000243.html +27 -0
- data/doc/classes/String.src/M000244.html +18 -0
- data/doc/classes/String.src/M000245.html +18 -0
- data/doc/classes/String.src/M000246.html +18 -0
- data/doc/classes/String.src/M000248.html +18 -0
- data/doc/classes/String.src/M000249.html +18 -0
- data/doc/classes/String.src/M000250.html +21 -0
- data/doc/classes/String.src/M000251.html +22 -0
- data/doc/classes/String.src/M000253.html +28 -0
- data/doc/classes/String.src/M000254.html +23 -0
- data/doc/classes/String.src/M000255.html +22 -0
- data/doc/classes/String.src/M000256.html +18 -0
- data/doc/classes/String.src/M000257.html +20 -0
- data/doc/classes/String.src/M000258.html +20 -0
- data/doc/classes/String.src/M000259.html +22 -0
- data/doc/classes/String.src/M000260.html +18 -0
- data/doc/classes/String.src/M000261.html +26 -0
- data/doc/classes/String.src/M000262.html +23 -0
- data/doc/classes/String.src/M000263.html +24 -0
- data/doc/classes/String.src/M000264.html +23 -0
- data/doc/classes/String.src/M000265.html +23 -0
- data/doc/classes/String.src/M000266.html +18 -0
- data/doc/classes/String.src/M000267.html +18 -0
- data/doc/classes/String.src/M000268.html +19 -0
- data/doc/classes/String.src/M000269.html +19 -0
- data/doc/classes/String.src/M000270.html +18 -0
- data/doc/classes/String.src/M000271.html +18 -0
- data/doc/classes/String.src/M000272.html +19 -0
- data/doc/classes/String.src/M000273.html +18 -0
- data/doc/classes/String.src/M000274.html +72 -0
- data/doc/classes/String.src/M000275.html +20 -0
- data/doc/classes/String.src/M000276.html +20 -0
- data/doc/classes/String.src/M000277.html +21 -0
- data/doc/classes/String.src/M000278.html +25 -0
- data/doc/classes/String.src/M000279.html +18 -0
- data/doc/classes/String.src/M000280.html +21 -0
- data/doc/classes/String.src/M000281.html +18 -0
- data/doc/classes/String.src/M000282.html +23 -0
- data/doc/classes/String.src/M000283.html +18 -0
- data/doc/classes/String.src/M000284.html +21 -0
- data/doc/classes/String.src/M000285.html +28 -0
- data/doc/classes/String.src/M000286.html +25 -0
- data/doc/classes/String.src/M000287.html +18 -0
- data/doc/classes/String.src/M000289.html +18 -0
- data/doc/classes/String.src/M000291.html +18 -0
- data/doc/classes/String.src/M000292.html +18 -0
- data/doc/classes/String.src/M000293.html +21 -0
- data/doc/classes/String.src/M000294.html +18 -0
- data/doc/classes/String.src/M000295.html +18 -0
- data/doc/classes/String.src/M000296.html +22 -0
- data/doc/classes/String.src/M000297.html +18 -0
- data/doc/classes/String.src/M000298.html +22 -0
- data/doc/classes/String.src/M000299.html +21 -0
- data/doc/classes/String.src/M000300.html +18 -0
- data/doc/classes/String.src/M000301.html +18 -0
- data/doc/classes/String.src/M000302.html +18 -0
- data/doc/classes/String.src/M000303.html +18 -0
- data/doc/classes/String.src/M000304.html +18 -0
- data/doc/classes/String.src/M000305.html +32 -0
- data/doc/classes/String.src/M000306.html +23 -0
- data/doc/classes/String.src/M000307.html +24 -0
- data/doc/classes/String.src/M000308.html +18 -0
- data/doc/classes/String.src/M000309.html +57 -0
- data/doc/classes/String/Format.html +279 -0
- data/doc/classes/String/Format.src/M000316.html +18 -0
- data/doc/classes/String/Format.src/M000317.html +18 -0
- data/doc/classes/String/Format.src/M000318.html +18 -0
- data/doc/classes/String/Format.src/M000320.html +18 -0
- data/doc/classes/String/Format.src/M000321.html +18 -0
- data/doc/classes/String/Format.src/M000322.html +18 -0
- data/doc/classes/String/Format.src/M000323.html +18 -0
- data/doc/classes/String/Format.src/M000324.html +18 -0
- data/doc/classes/String/Format.src/M000325.html +18 -0
- data/doc/classes/String/Inflect.html +221 -0
- data/doc/classes/String/Inflect.src/M000310.html +18 -0
- data/doc/classes/String/Inflect.src/M000311.html +18 -0
- data/doc/classes/String/Inflect.src/M000312.html +22 -0
- data/doc/classes/String/Inflect.src/M000313.html +22 -0
- data/doc/classes/String/Inflect.src/M000314.html +30 -0
- data/doc/classes/String/Inflect.src/M000315.html +31 -0
- data/doc/classes/Symbol.html +380 -0
- data/doc/classes/Symbol.src/M000012.html +18 -0
- data/doc/classes/Symbol.src/M000013.html +18 -0
- data/doc/classes/Symbol.src/M000014.html +22 -0
- data/doc/classes/Symbol.src/M000016.html +18 -0
- data/doc/classes/Symbol.src/M000017.html +18 -0
- data/doc/classes/Symbol.src/M000018.html +28 -0
- data/doc/classes/Symbol.src/M000019.html +26 -0
- data/doc/classes/Symbol.src/M000020.html +18 -0
- data/doc/classes/Symbol.src/M000021.html +18 -0
- data/doc/classes/Time.html +227 -0
- data/doc/classes/Time.src/M000025.html +51 -0
- data/doc/classes/Time.src/M000026.html +21 -0
- data/doc/created.rid +1 -0
- data/doc/files/LICENSE-GPL.html +537 -0
- data/doc/files/LICENSE-RUBY.html +166 -0
- data/doc/files/README.html +252 -0
- data/doc/files/lib/facet/all-base-common_rb.html +101 -0
- data/doc/files/lib/facet/all-base_rb.html +133 -0
- data/doc/files/lib/facet/array/[[]]_rb.html +108 -0
- data/doc/files/lib/facet/array/[]_rb.html +108 -0
- data/doc/files/lib/facet/array/at_rand_rb.html +101 -0
- data/doc/files/lib/facet/array/combinations_rb.html +101 -0
- data/doc/files/lib/facet/array/delete_values_rb.html +101 -0
- data/doc/files/lib/facet/array/first&last_rb.html +101 -0
- data/doc/files/lib/facet/array/get_rb.html +101 -0
- data/doc/files/lib/facet/array/head&tail_rb.html +101 -0
- data/doc/files/lib/facet/array/last_index_rb.html +101 -0
- data/doc/files/lib/facet/array/middle_rb.html +101 -0
- data/doc/files/lib/facet/array/pos_rb.html +101 -0
- data/doc/files/lib/facet/array/pull_rb.html +101 -0
- data/doc/files/lib/facet/array/range_rb.html +101 -0
- data/doc/files/lib/facet/array/rotate_rb.html +101 -0
- data/doc/files/lib/facet/array/select!_rb.html +101 -0
- data/doc/files/lib/facet/array/shuffle_rb.html +101 -0
- data/doc/files/lib/facet/array/store_rb.html +101 -0
- data/doc/files/lib/facet/array/thru_rb.html +101 -0
- data/doc/files/lib/facet/array/to_b_rb.html +101 -0
- data/doc/files/lib/facet/array/to_h_rb.html +101 -0
- data/doc/files/lib/facet/array_rb.html +120 -0
- data/doc/files/lib/facet/binding/called_rb.html +108 -0
- data/doc/files/lib/facet/binding/caller_rb.html +108 -0
- data/doc/files/lib/facet/binding/defined?_rb.html +108 -0
- data/doc/files/lib/facet/binding/delegate!_rb.html +101 -0
- data/doc/files/lib/facet/binding/eval_rb.html +101 -0
- data/doc/files/lib/facet/binding/lineno_rb.html +108 -0
- data/doc/files/lib/facet/binding/local_variables_rb.html +108 -0
- data/doc/files/lib/facet/binding/self_rb.html +108 -0
- data/doc/files/lib/facet/binding_rb.html +118 -0
- data/doc/files/lib/facet/class/cattr_rb.html +101 -0
- data/doc/files/lib/facet/class_rb.html +114 -0
- data/doc/files/lib/facet/comparable/bound_by_rb.html +101 -0
- data/doc/files/lib/facet/comparable_rb.html +114 -0
- data/doc/files/lib/facet/continuation/create_rb.html +101 -0
- data/doc/files/lib/facet/continuation_rb.html +114 -0
- data/doc/files/lib/facet/enumerable/**_rb.html +108 -0
- data/doc/files/lib/facet/enumerable/collect_with_counter_rb.html +101 -0
- data/doc/files/lib/facet/enumerable/cross_rb.html +108 -0
- data/doc/files/lib/facet/enumerable/each_slice_rb.html +101 -0
- data/doc/files/lib/facet/enumerable/every_rb.html +108 -0
- data/doc/files/lib/facet/enumerable/graph_rb.html +101 -0
- data/doc/files/lib/facet/enumerable/none?_rb.html +101 -0
- data/doc/files/lib/facet/enumerable/one?_rb.html +101 -0
- data/doc/files/lib/facet/enumerable/partition_by_rb.html +101 -0
- data/doc/files/lib/facet/enumerable/per_rb.html +108 -0
- data/doc/files/lib/facet/enumerable/to_hash_rb.html +101 -0
- data/doc/files/lib/facet/enumerable/uniq_by_rb.html +101 -0
- data/doc/files/lib/facet/enumerable_rb.html +118 -0
- data/doc/files/lib/facet/file/split_all_rb.html +101 -0
- data/doc/files/lib/facet/file_rb.html +114 -0
- data/doc/files/lib/facet/fileutils/head&tail_rb.html +108 -0
- data/doc/files/lib/facet/fileutils/safe_ln_rb.html +108 -0
- data/doc/files/lib/facet/fileutils/wc_rb.html +108 -0
- data/doc/files/lib/facet/fileutils/whereis_rb.html +108 -0
- data/doc/files/lib/facet/fileutils/which_rb.html +108 -0
- data/doc/files/lib/facet/fileutils_rb.html +115 -0
- data/doc/files/lib/facet/float/round_rb.html +101 -0
- data/doc/files/lib/facet/float_rb.html +114 -0
- data/doc/files/lib/facet/hash/<<_rb.html +101 -0
- data/doc/files/lib/facet/hash/[]_rb.html +101 -0
- data/doc/files/lib/facet/hash/alias!_rb.html +101 -0
- data/doc/files/lib/facet/hash/at_rand_rb.html +101 -0
- data/doc/files/lib/facet/hash/collate_rb.html +101 -0
- data/doc/files/lib/facet/hash/collect_rb.html +108 -0
- data/doc/files/lib/facet/hash/each_rb.html +101 -0
- data/doc/files/lib/facet/hash/has_keys?_rb.html +101 -0
- data/doc/files/lib/facet/hash/inverse_rb.html +101 -0
- data/doc/files/lib/facet/hash/keys_to_s_rb.html +101 -0
- data/doc/files/lib/facet/hash/keys_to_sym_rb.html +101 -0
- data/doc/files/lib/facet/hash/shuffle_rb.html +101 -0
- data/doc/files/lib/facet/hash/slice_rb.html +101 -0
- data/doc/files/lib/facet/hash/swap!_rb.html +101 -0
- data/doc/files/lib/facet/hash/swapkey!_rb.html +101 -0
- data/doc/files/lib/facet/hash/to_h_rb.html +101 -0
- data/doc/files/lib/facet/hash/to_ostruct_rb.html +108 -0
- data/doc/files/lib/facet/hash/traverse_rb.html +101 -0
- data/doc/files/lib/facet/hash/update_each_rb.html +101 -0
- data/doc/files/lib/facet/hash/weave_rb.html +101 -0
- data/doc/files/lib/facet/hash/zipnew_rb.html +101 -0
- data/doc/files/lib/facet/hash_rb.html +115 -0
- data/doc/files/lib/facet/integer/evenodd?_rb.html +101 -0
- data/doc/files/lib/facet/integer/factorial_rb.html +101 -0
- data/doc/files/lib/facet/integer/times_collect_rb.html +101 -0
- data/doc/files/lib/facet/integer_rb.html +116 -0
- data/doc/files/lib/facet/kernel/bug!_rb.html +101 -0
- data/doc/files/lib/facet/kernel/call_stack_rb.html +101 -0
- data/doc/files/lib/facet/kernel/called_rb.html +108 -0
- data/doc/files/lib/facet/kernel/demo_rb.html +101 -0
- data/doc/files/lib/facet/kernel/fn_rb.html +101 -0
- data/doc/files/lib/facet/kernel/get_by_id_rb.html +101 -0
- data/doc/files/lib/facet/kernel/here_rb.html +101 -0
- data/doc/files/lib/facet/kernel/maybe_rb.html +101 -0
- data/doc/files/lib/facet/kernel/method_name_rb.html +108 -0
- data/doc/files/lib/facet/kernel/require_all_rb.html +101 -0
- data/doc/files/lib/facet/kernel/require_local_rb.html +101 -0
- data/doc/files/lib/facet/kernel/resc_rb.html +101 -0
- data/doc/files/lib/facet/kernel/warn_with_line_rb.html +101 -0
- data/doc/files/lib/facet/kernel_rb.html +120 -0
- data/doc/files/lib/facet/matchdata/match_from_rb.html +108 -0
- data/doc/files/lib/facet/matchdata/match_rb.html +101 -0
- data/doc/files/lib/facet/matchdata_rb.html +115 -0
- data/doc/files/lib/facet/module/abstract_rb.html +118 -0
- data/doc/files/lib/facet/module/alias_module_function_rb.html +101 -0
- data/doc/files/lib/facet/module/basename_rb.html +101 -0
- data/doc/files/lib/facet/module/by_name_rb.html +108 -0
- data/doc/files/lib/facet/module/initializer_rb.html +101 -0
- data/doc/files/lib/facet/module/key_attributes_rb.html +101 -0
- data/doc/files/lib/facet/module/memoize_rb.html +130 -0
- data/doc/files/lib/facet/module/memoize_rb.src/M000002.html +18 -0
- data/doc/files/lib/facet/module/methods_rb.html +101 -0
- data/doc/files/lib/facet/module/redefine_method_rb.html +101 -0
- data/doc/files/lib/facet/module/redirect_rb.html +101 -0
- data/doc/files/lib/facet/module/sort_attributes_rb.html +101 -0
- data/doc/files/lib/facet/module/wrap_method_rb.html +101 -0
- data/doc/files/lib/facet/module_rb.html +116 -0
- data/doc/files/lib/facet/nil-as-emptiness_rb.html +130 -0
- data/doc/files/lib/facet/nil/[]_rb.html +101 -0
- data/doc/files/lib/facet/nil/empty?_rb.html +101 -0
- data/doc/files/lib/facet/nil/include?_rb.html +101 -0
- data/doc/files/lib/facet/nil/length_rb.html +101 -0
- data/doc/files/lib/facet/nil/to_f_rb.html +101 -0
- data/doc/files/lib/facet/nil/to_h_rb.html +101 -0
- data/doc/files/lib/facet/nil_rb.html +115 -0
- data/doc/files/lib/facet/numeric/bound_by_rb.html +101 -0
- data/doc/files/lib/facet/numeric/bytes_rb.html +101 -0
- data/doc/files/lib/facet/numeric/distance_rb.html +101 -0
- data/doc/files/lib/facet/numeric/octet_units_rb.html +108 -0
- data/doc/files/lib/facet/numeric/succ_rb.html +101 -0
- data/doc/files/lib/facet/numeric/times_rb.html +101 -0
- data/doc/files/lib/facet/numeric/to_b_rb.html +101 -0
- data/doc/files/lib/facet/numeric_rb.html +114 -0
- data/doc/files/lib/facet/object/__class___rb.html +101 -0
- data/doc/files/lib/facet/object/assign_with_rb.html +101 -0
- data/doc/files/lib/facet/object/bool?_rb.html +101 -0
- data/doc/files/lib/facet/object/constant_rb.html +101 -0
- data/doc/files/lib/facet/object/copy_rb.html +101 -0
- data/doc/files/lib/facet/object/in?_rb.html +101 -0
- data/doc/files/lib/facet/object/new_rb.html +101 -0
- data/doc/files/lib/facet/object/object_hexid_rb.html +101 -0
- data/doc/files/lib/facet/object/set_with_rb.html +101 -0
- data/doc/files/lib/facet/object/special_class_rb.html +101 -0
- data/doc/files/lib/facet/object/supers_rb.html +108 -0
- data/doc/files/lib/facet/object/to_b_rb.html +108 -0
- data/doc/files/lib/facet/object/to_bool_rb.html +101 -0
- data/doc/files/lib/facet/object/with_accessor_rb.html +101 -0
- data/doc/files/lib/facet/object_rb.html +120 -0
- data/doc/files/lib/facet/ostruct/[]_rb.html +108 -0
- data/doc/files/lib/facet/ostruct/ostruct_update_rb.html +108 -0
- data/doc/files/lib/facet/ostruct_rb.html +115 -0
- data/doc/files/lib/facet/proc/compose_rb.html +101 -0
- data/doc/files/lib/facet/proc/to_method_rb.html +138 -0
- data/doc/files/lib/facet/proc/to_method_rb.src/M000001.html +29 -0
- data/doc/files/lib/facet/proc_rb.html +115 -0
- data/doc/files/lib/facet/rand_rb.html +120 -0
- data/doc/files/lib/facet/range/to_r_rb.html +101 -0
- data/doc/files/lib/facet/range/umbrella_rb.html +101 -0
- data/doc/files/lib/facet/range/within?_rb.html +108 -0
- data/doc/files/lib/facet/range_rb.html +116 -0
- data/doc/files/lib/facet/regexp/arity_rb.html +101 -0
- data/doc/files/lib/facet/regexp/to_re_rb.html +101 -0
- data/doc/files/lib/facet/regexp_rb.html +115 -0
- data/doc/files/lib/facet/string/at_rand_rb.html +108 -0
- data/doc/files/lib/facet/string/blank?_rb.html +101 -0
- data/doc/files/lib/facet/string/braket_rb.html +101 -0
- data/doc/files/lib/facet/string/camelcase_rb.html +101 -0
- data/doc/files/lib/facet/string/case?_rb.html +101 -0
- data/doc/files/lib/facet/string/center_lines_rb.html +101 -0
- data/doc/files/lib/facet/string/chars_rb.html +101 -0
- data/doc/files/lib/facet/string/clump_rb.html +101 -0
- data/doc/files/lib/facet/string/cmp_rb.html +101 -0
- data/doc/files/lib/facet/string/dresner_rb.html +101 -0
- data/doc/files/lib/facet/string/each_word_rb.html +101 -0
- data/doc/files/lib/facet/string/first&last_rb.html +101 -0
- data/doc/files/lib/facet/string/format_rb.html +101 -0
- data/doc/files/lib/facet/string/fuzzy_match_rb.html +101 -0
- data/doc/files/lib/facet/string/index_all_rb.html +101 -0
- data/doc/files/lib/facet/string/inflect_rb.html +101 -0
- data/doc/files/lib/facet/string/line_to_char_map_rb.html +101 -0
- data/doc/files/lib/facet/string/line_wrap_rb.html +101 -0
- data/doc/files/lib/facet/string/margin_rb.html +101 -0
- data/doc/files/lib/facet/string/mscan_rb.html +101 -0
- data/doc/files/lib/facet/string/natcmp_rb.html +101 -0
- data/doc/files/lib/facet/string/rand_letter_rb.html +101 -0
- data/doc/files/lib/facet/string/range_rb.html +101 -0
- data/doc/files/lib/facet/string/shatter_rb.html +101 -0
- data/doc/files/lib/facet/string/shuffle_rb.html +101 -0
- data/doc/files/lib/facet/string/succ_rb.html +101 -0
- data/doc/files/lib/facet/string/tab_rb.html +101 -0
- data/doc/files/lib/facet/string/to_b_rb.html +101 -0
- data/doc/files/lib/facet/string/to_const_rb.html +108 -0
- data/doc/files/lib/facet/string/to_proc_rb.html +101 -0
- data/doc/files/lib/facet/string/to_re_rb.html +101 -0
- data/doc/files/lib/facet/string/unix_crypt_rb.html +108 -0
- data/doc/files/lib/facet/string/unpack_rb.html +101 -0
- data/doc/files/lib/facet/string/word_filter!_rb.html +101 -0
- data/doc/files/lib/facet/string/word_wrap_rb.html +101 -0
- data/doc/files/lib/facet/string_rb.html +122 -0
- data/doc/files/lib/facet/symbol/camelcase_rb.html +101 -0
- data/doc/files/lib/facet/symbol/gen_rb.html +101 -0
- data/doc/files/lib/facet/symbol/pad_rb.html +101 -0
- data/doc/files/lib/facet/symbol/succ_rb.html +101 -0
- data/doc/files/lib/facet/symbol/to_const_rb.html +108 -0
- data/doc/files/lib/facet/symbol/to_proc_rb.html +101 -0
- data/doc/files/lib/facet/symbol/to_str_rb.html +101 -0
- data/doc/files/lib/facet/symbol/~_rb.html +101 -0
- data/doc/files/lib/facet/symbol_rb.html +116 -0
- data/doc/files/lib/facet/time/custom_format_rb.html +108 -0
- data/doc/files/lib/facet/time/elapse_rb.html +101 -0
- data/doc/files/lib/facet/time_rb.html +107 -0
- data/doc/fr_class_index.html +54 -0
- data/doc/fr_file_index.html +239 -0
- data/doc/fr_method_index.html +394 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/lib/facet-dev/README +11 -0
- data/lib/facet-dev/advice.rb +70 -0
- data/lib/facet-dev/array/**.rb +17 -0
- data/lib/facet-dev/array/at_rand.rb +95 -0
- data/lib/facet-dev/array/each_slice.rb +23 -0
- data/lib/facet-dev/array/pick_values.rb +32 -0
- data/lib/facet-dev/array/remove.rb +21 -0
- data/lib/facet-dev/arraysplit.tar.gz +0 -0
- data/lib/facet-dev/binding/class.rb +11 -0
- data/lib/facet-dev/binding/delegate.rb +15 -0
- data/lib/facet-dev/binding/proc.rb +6 -0
- data/lib/facet-dev/class_include.rb +13 -0
- data/lib/facet-dev/enumerable/[].rb +30 -0
- data/lib/facet-dev/enumerable/rand.rb +412 -0
- data/lib/facet-dev/fileutils/mv_f.rb +6 -0
- data/lib/facet-dev/fileutils/nl_convert.rb +69 -0
- data/lib/facet-dev/fileutils/tc_nlconvert.rb +60 -0
- data/lib/facet-dev/kernel/call_line.rb +15 -0
- data/lib/facet-dev/kernel/does.rb +7 -0
- data/lib/facet-dev/kernel/eval.rb +24 -0
- data/lib/facet-dev/kernel/message.rb +6 -0
- data/lib/facet-dev/module/preserved.rb +108 -0
- data/lib/facet-dev/object/==.rb +49 -0
- data/lib/facet-dev/object/>>.rb +50 -0
- data/lib/facet-dev/object/all.rb +11 -0
- data/lib/facet-dev/object/query.rb +15 -0
- data/lib/facet-dev/object/respond_with_value.rb +14 -0
- data/lib/facet-dev/rails/class_attribute_accessors.rb +57 -0
- data/lib/facet-dev/rails/class_inheritable_attributes.rb +117 -0
- data/lib/facet-dev/rails/clean_logger.rb +10 -0
- data/lib/facet-dev/rails/dependencies.rb +63 -0
- data/lib/facet-dev/rails/inflector.rb +84 -0
- data/lib/facet-dev/rails/misc.rb +8 -0
- data/lib/facet-dev/rails/module_attribute_accessors.rb +57 -0
- data/lib/facet-dev/rails/object_and_class.rb +24 -0
- data/lib/facet-dev/string/+.rb +19 -0
- data/lib/facet-dev/string/pred.rb +123 -0
- data/lib/facet-dev/string/slash.rb +15 -0
- data/lib/facet-dev/string/strip.rb +32 -0
- data/lib/facet-dev/string/succ_distance.rb +112 -0
- data/lib/facet-dev/string/tc_pred.rb +96 -0
- data/lib/facet-dev/string/word_wrap.rb +62 -0
- data/lib/facet-dev/taint.rb +10 -0
- data/lib/facet/all-base-common.rb +13 -0
- data/lib/facet/all-base.rb +27 -0
- data/lib/facet/array.rb +25 -0
- data/lib/facet/array/[[]].rb +42 -0
- data/lib/facet/array/[].rb +57 -0
- data/lib/facet/array/at_rand.rb +118 -0
- data/lib/facet/array/combinations.rb +122 -0
- data/lib/facet/array/delete_values.rb +46 -0
- data/lib/facet/array/first&last.rb +47 -0
- data/lib/facet/array/get.rb +15 -0
- data/lib/facet/array/head&tail.rb +33 -0
- data/lib/facet/array/last_index.rb +15 -0
- data/lib/facet/array/middle.rb +18 -0
- data/lib/facet/array/pos.rb +17 -0
- data/lib/facet/array/pull.rb +21 -0
- data/lib/facet/array/range.rb +22 -0
- data/lib/facet/array/rotate.rb +38 -0
- data/lib/facet/array/select!.rb +13 -0
- data/lib/facet/array/shuffle.rb +37 -0
- data/lib/facet/array/store.rb +4 -0
- data/lib/facet/array/thru.rb +18 -0
- data/lib/facet/array/to_b.rb +6 -0
- data/lib/facet/array/to_h.rb +30 -0
- data/lib/facet/binding.rb +15 -0
- data/lib/facet/binding/called.rb +29 -0
- data/lib/facet/binding/caller.rb +10 -0
- data/lib/facet/binding/defined?.rb +9 -0
- data/lib/facet/binding/delegate!.rb +19 -0
- data/lib/facet/binding/eval.rb +10 -0
- data/lib/facet/binding/lineno.rb +13 -0
- data/lib/facet/binding/local_variables.rb +39 -0
- data/lib/facet/binding/self.rb +10 -0
- data/lib/facet/class.rb +7 -0
- data/lib/facet/class/cattr.rb +82 -0
- data/lib/facet/comparable.rb +7 -0
- data/lib/facet/comparable/bound_by.rb +41 -0
- data/lib/facet/continuation.rb +8 -0
- data/lib/facet/continuation/create.rb +51 -0
- data/lib/facet/enumerable.rb +17 -0
- data/lib/facet/enumerable/**.rb +13 -0
- data/lib/facet/enumerable/collect_with_counter.rb +25 -0
- data/lib/facet/enumerable/cross.rb +79 -0
- data/lib/facet/enumerable/each_slice.rb +60 -0
- data/lib/facet/enumerable/every.rb +45 -0
- data/lib/facet/enumerable/graph.rb +48 -0
- data/lib/facet/enumerable/none?.rb +28 -0
- data/lib/facet/enumerable/one?.rb +35 -0
- data/lib/facet/enumerable/partition_by.rb +27 -0
- data/lib/facet/enumerable/per.rb +18 -0
- data/lib/facet/enumerable/to_hash.rb +17 -0
- data/lib/facet/enumerable/uniq_by.rb +35 -0
- data/lib/facet/file.rb +7 -0
- data/lib/facet/file/split_all.rb +17 -0
- data/lib/facet/fileutils.rb +11 -0
- data/lib/facet/fileutils/head&tail.rb +65 -0
- data/lib/facet/fileutils/safe_ln.rb +18 -0
- data/lib/facet/fileutils/wc.rb +62 -0
- data/lib/facet/fileutils/whereis.rb +63 -0
- data/lib/facet/fileutils/which.rb +53 -0
- data/lib/facet/float.rb +7 -0
- data/lib/facet/float/round.rb +33 -0
- data/lib/facet/hash.rb +23 -0
- data/lib/facet/hash/<<.rb +5 -0
- data/lib/facet/hash/[].rb +44 -0
- data/lib/facet/hash/alias!.rb +24 -0
- data/lib/facet/hash/at_rand.rb +88 -0
- data/lib/facet/hash/collate.rb +25 -0
- data/lib/facet/hash/collect.rb +8 -0
- data/lib/facet/hash/each.rb +28 -0
- data/lib/facet/hash/has_keys?.rb +48 -0
- data/lib/facet/hash/inverse.rb +29 -0
- data/lib/facet/hash/keys_to_s.rb +50 -0
- data/lib/facet/hash/keys_to_sym.rb +59 -0
- data/lib/facet/hash/shuffle.rb +51 -0
- data/lib/facet/hash/slice.rb +11 -0
- data/lib/facet/hash/swap!.rb +14 -0
- data/lib/facet/hash/swapkey!.rb +22 -0
- data/lib/facet/hash/to_h.rb +13 -0
- data/lib/facet/hash/to_ostruct.rb +30 -0
- data/lib/facet/hash/traverse.rb +35 -0
- data/lib/facet/hash/update_each.rb +24 -0
- data/lib/facet/hash/weave.rb +64 -0
- data/lib/facet/hash/zipnew.rb +15 -0
- data/lib/facet/integer.rb +9 -0
- data/lib/facet/integer/evenodd?.rb +25 -0
- data/lib/facet/integer/factorial.rb +27 -0
- data/lib/facet/integer/times_collect.rb +13 -0
- data/lib/facet/kernel.rb +18 -0
- data/lib/facet/kernel/bug!.rb +25 -0
- data/lib/facet/kernel/call_stack.rb +35 -0
- data/lib/facet/kernel/called.rb +20 -0
- data/lib/facet/kernel/demo.rb +25 -0
- data/lib/facet/kernel/fn.rb +10 -0
- data/lib/facet/kernel/get_by_id.rb +7 -0
- data/lib/facet/kernel/here.rb +11 -0
- data/lib/facet/kernel/maybe.rb +17 -0
- data/lib/facet/kernel/method_name.rb +18 -0
- data/lib/facet/kernel/require_all.rb +21 -0
- data/lib/facet/kernel/require_local.rb +26 -0
- data/lib/facet/kernel/resc.rb +7 -0
- data/lib/facet/kernel/warn_with_line.rb +19 -0
- data/lib/facet/matchdata.rb +8 -0
- data/lib/facet/matchdata/match.rb +12 -0
- data/lib/facet/matchdata/match_from.rb +38 -0
- data/lib/facet/module.rb +14 -0
- data/lib/facet/module/abstract.rb +20 -0
- data/lib/facet/module/alias_module_function.rb +28 -0
- data/lib/facet/module/basename.rb +18 -0
- data/lib/facet/module/by_name.rb +42 -0
- data/lib/facet/module/initializer.rb +35 -0
- data/lib/facet/module/key_attributes.rb +13 -0
- data/lib/facet/module/memoize.rb +50 -0
- data/lib/facet/module/methods.rb +98 -0
- data/lib/facet/module/redefine_method.rb +37 -0
- data/lib/facet/module/redirect.rb +39 -0
- data/lib/facet/module/sort_attributes.rb +12 -0
- data/lib/facet/module/wrap_method.rb +27 -0
- data/lib/facet/nil-as-emptiness.rb +34 -0
- data/lib/facet/nil.rb +15 -0
- data/lib/facet/nil/[].rb +12 -0
- data/lib/facet/nil/empty?.rb +19 -0
- data/lib/facet/nil/include?.rb +11 -0
- data/lib/facet/nil/length.rb +19 -0
- data/lib/facet/nil/to_f.rb +10 -0
- data/lib/facet/nil/to_h.rb +10 -0
- data/lib/facet/numeric.rb +9 -0
- data/lib/facet/numeric/bound_by.rb +41 -0
- data/lib/facet/numeric/bytes.rb +51 -0
- data/lib/facet/numeric/distance.rb +13 -0
- data/lib/facet/numeric/octet_units.rb +32 -0
- data/lib/facet/numeric/succ.rb +41 -0
- data/lib/facet/numeric/times.rb +106 -0
- data/lib/facet/numeric/to_b.rb +15 -0
- data/lib/facet/object.rb +20 -0
- data/lib/facet/object/__class__.rb +17 -0
- data/lib/facet/object/assign_with.rb +80 -0
- data/lib/facet/object/bool?.rb +49 -0
- data/lib/facet/object/constant.rb +22 -0
- data/lib/facet/object/copy.rb +13 -0
- data/lib/facet/object/in?.rb +12 -0
- data/lib/facet/object/new.rb +32 -0
- data/lib/facet/object/object_hexid.rb +12 -0
- data/lib/facet/object/set_with.rb +29 -0
- data/lib/facet/object/special_class.rb +45 -0
- data/lib/facet/object/supers.rb +38 -0
- data/lib/facet/object/to_b.rb +15 -0
- data/lib/facet/object/to_bool.rb +14 -0
- data/lib/facet/object/with_accessor.rb +50 -0
- data/lib/facet/ostruct.rb +8 -0
- data/lib/facet/ostruct/[].rb +29 -0
- data/lib/facet/ostruct/ostruct_update.rb +18 -0
- data/lib/facet/proc.rb +8 -0
- data/lib/facet/proc/compose.rb +22 -0
- data/lib/facet/proc/to_method.rb +43 -0
- data/lib/facet/rand.rb +10 -0
- data/lib/facet/range.rb +9 -0
- data/lib/facet/range/to_r.rb +16 -0
- data/lib/facet/range/umbrella.rb +37 -0
- data/lib/facet/range/within?.rb +19 -0
- data/lib/facet/regexp.rb +9 -0
- data/lib/facet/regexp/arity.rb +14 -0
- data/lib/facet/regexp/to_re.rb +25 -0
- data/lib/facet/string.rb +38 -0
- data/lib/facet/string/at_rand.rb +99 -0
- data/lib/facet/string/blank?.rb +14 -0
- data/lib/facet/string/braket.rb +27 -0
- data/lib/facet/string/camelcase.rb +24 -0
- data/lib/facet/string/case?.rb +44 -0
- data/lib/facet/string/center_lines.rb +26 -0
- data/lib/facet/string/chars.rb +34 -0
- data/lib/facet/string/clump.rb +51 -0
- data/lib/facet/string/cmp.rb +17 -0
- data/lib/facet/string/dresner.rb +25 -0
- data/lib/facet/string/each_word.rb +25 -0
- data/lib/facet/string/first&last.rb +123 -0
- data/lib/facet/string/format.rb +64 -0
- data/lib/facet/string/fuzzy_match.rb +82 -0
- data/lib/facet/string/index_all.rb +19 -0
- data/lib/facet/string/inflect.rb +70 -0
- data/lib/facet/string/line_to_char_map.rb +18 -0
- data/lib/facet/string/line_wrap.rb +20 -0
- data/lib/facet/string/margin.rb +27 -0
- data/lib/facet/string/mscan.rb +16 -0
- data/lib/facet/string/natcmp.rb +84 -0
- data/lib/facet/string/rand_letter.rb +13 -0
- data/lib/facet/string/range.rb +39 -0
- data/lib/facet/string/shatter.rb +17 -0
- data/lib/facet/string/shuffle.rb +49 -0
- data/lib/facet/string/succ.rb +17 -0
- data/lib/facet/string/tab.rb +38 -0
- data/lib/facet/string/to_b.rb +27 -0
- data/lib/facet/string/to_const.rb +16 -0
- data/lib/facet/string/to_proc.rb +25 -0
- data/lib/facet/string/to_re.rb +13 -0
- data/lib/facet/string/unix_crypt.rb +12 -0
- data/lib/facet/string/unpack.rb +15 -0
- data/lib/facet/string/word_filter!.rb +20 -0
- data/lib/facet/string/word_wrap.rb +43 -0
- data/lib/facet/symbol.rb +14 -0
- data/lib/facet/symbol/camelcase.rb +24 -0
- data/lib/facet/symbol/gen.rb +23 -0
- data/lib/facet/symbol/pad.rb +20 -0
- data/lib/facet/symbol/succ.rb +17 -0
- data/lib/facet/symbol/to_const.rb +16 -0
- data/lib/facet/symbol/to_proc.rb +22 -0
- data/lib/facet/symbol/to_str.rb +12 -0
- data/lib/facet/symbol/~.rb +8 -0
- data/lib/facet/time.rb +7 -0
- data/lib/facet/time/custom_format.rb +111 -0
- data/lib/facet/time/elapse.rb +18 -0
- data/setup.rb +1361 -0
- data/test/array/tc_array.rb +234 -0
- data/test/array/tc_brackets.rb +16 -0
- data/test/binding/tc_binding.rb +77 -0
- data/test/class/tc_class.rb +48 -0
- data/test/comparable/tc_comparable.rb +23 -0
- data/test/enumerable/tc_enumerable.rb +166 -0
- data/test/file/tc_file.rb +14 -0
- data/test/fileutils/tc_head&tail.rb +72 -0
- data/test/fileutils/tc_wc.rb +46 -0
- data/test/fileutils/tc_whereis.rb +35 -0
- data/test/fileutils/tc_which.rb +35 -0
- data/test/fileutils/test_file.txt +25 -0
- data/test/fileutils/test_file2.txt +25 -0
- data/test/float/tc_float.rb +70 -0
- data/test/hash/tc_each.rb +23 -0
- data/test/hash/tc_hash.rb +182 -0
- data/test/hash/tc_slice.rb +98 -0
- data/test/integer/tc_integer.rb +50 -0
- data/test/kernel/tc_kernel.rb +89 -0
- data/test/kernel/tc_warn_with_line.rb +1 -0
- data/test/kernel/test_file.rb +3 -0
- data/test/matchdata/tc_matchdata.rb +47 -0
- data/test/module/tc_memoize.rb +2 -0
- data/test/module/tc_methods.rb +13 -0
- data/test/module/tc_module.rb +51 -0
- data/test/module/tc_redef.rb +47 -0
- data/test/nil/tc_nil.rb +57 -0
- data/test/numeric/tc_numeric.rb +145 -0
- data/test/object/tc_constant.rb +21 -0
- data/test/object/tc_object.rb +138 -0
- data/test/object/tc_supers.rb +63 -0
- data/test/object/tc_with_accessor.rb +31 -0
- data/test/ostruct/tc_ostruct.rb +16 -0
- data/test/proc/tc_proc.rb +32 -0
- data/test/range/tc_range.rb +46 -0
- data/test/regexp/tc_regexp.rb +35 -0
- data/test/string/tc_fuzzy_match.rb +2 -0
- data/test/string/tc_margin.rb +98 -0
- data/test/string/tc_string.rb +341 -0
- data/test/string/tc_unix_crypt.rb +2 -0
- data/test/symbol/tc_symbol.rb +60 -0
- data/test/t_require.rb +4 -0
- data/test/time/tc_time.rb +30 -0
- metadata +1013 -0
@@ -0,0 +1,18 @@
|
|
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>succ (Symbol)</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/facet/symbol/succ.rb, line 14</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">succ</span>
|
15
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">succ</span>.<span class="ruby-identifier">intern</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,28 @@
|
|
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>gen (Symbol)</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/facet/symbol/gen.rb, line 10</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gen</span>( <span class="ruby-identifier">obj</span>=<span class="ruby-keyword kw">nil</span> )
|
15
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">to_s</span>
|
16
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">Class</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">obj</span>
|
17
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">method_defined?</span>( <span class="ruby-identifier">s</span> )
|
18
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-identifier">s</span>.<span class="ruby-identifier">succ</span>
|
19
|
+
<span class="ruby-keyword kw">end</span>
|
20
|
+
<span class="ruby-keyword kw">else</span>
|
21
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">respond_to?</span>( <span class="ruby-identifier">s</span> )
|
22
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-identifier">s</span>.<span class="ruby-identifier">succ</span>
|
23
|
+
<span class="ruby-keyword kw">end</span>
|
24
|
+
<span class="ruby-keyword kw">end</span>
|
25
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">to_sym</span>
|
26
|
+
<span class="ruby-keyword kw">end</span></pre>
|
27
|
+
</body>
|
28
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
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>pad (Symbol)</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/facet/symbol/pad.rb, line 9</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pad</span>(<span class="ruby-identifier">i</span>=<span class="ruby-value">1</span>)
|
15
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
16
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">to_s</span>
|
17
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
18
|
+
<span class="ruby-keyword kw">return</span> ( (<span class="ruby-value str">'_'</span><span class="ruby-operator">*</span><span class="ruby-identifier">i</span>) <span class="ruby-operator">+</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> (<span class="ruby-value str">'_'</span><span class="ruby-operator">*</span><span class="ruby-identifier">i</span>) ).<span class="ruby-identifier">to_sym</span>
|
19
|
+
<span class="ruby-keyword kw">else</span>
|
20
|
+
<span class="ruby-identifier">i</span> <span class="ruby-operator">*=</span> <span class="ruby-value">-1</span>
|
21
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>[<span class="ruby-identifier">i</span><span class="ruby-operator">..</span><span class="ruby-operator">-</span><span class="ruby-identifier">i</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>].<span class="ruby-identifier">to_sym</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">s</span>[<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-identifier">i</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>] <span class="ruby-operator">==</span> (<span class="ruby-value str">'_'</span><span class="ruby-operator">*</span><span class="ruby-identifier">i</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">s</span>[<span class="ruby-operator">-</span><span class="ruby-identifier">i</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>] <span class="ruby-operator">==</span> (<span class="ruby-value str">'_'</span><span class="ruby-operator">*</span><span class="ruby-identifier">i</span>)
|
22
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>
|
23
|
+
<span class="ruby-keyword kw">end</span>
|
24
|
+
<span class="ruby-keyword kw">end</span></pre>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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_const (Symbol)</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/facet/symbol/to_const.rb, line 13</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_const</span>
|
15
|
+
<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">to_const</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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_str (Symbol)</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/facet/symbol/to_str.rb, line 9</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_str</span>
|
15
|
+
<span class="ruby-constant">String</span>( <span class="ruby-keyword kw">self</span> )
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,227 @@
|
|
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>Class: Time</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">Time</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../files/lib/facet/time/custom_format_rb.html">
|
59
|
+
lib/facet/time/custom_format.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
<a href="../files/lib/facet/time/elapse_rb.html">
|
63
|
+
lib/facet/time/elapse.rb
|
64
|
+
</a>
|
65
|
+
<br />
|
66
|
+
</td>
|
67
|
+
</tr>
|
68
|
+
|
69
|
+
<tr class="top-aligned-row">
|
70
|
+
<td><strong>Parent:</strong></td>
|
71
|
+
<td>
|
72
|
+
<a href="Object.html">
|
73
|
+
Object
|
74
|
+
</a>
|
75
|
+
</td>
|
76
|
+
</tr>
|
77
|
+
</table>
|
78
|
+
</div>
|
79
|
+
<!-- banner header -->
|
80
|
+
|
81
|
+
<div id="bodyContent">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<div id="contextContent">
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
</div>
|
90
|
+
|
91
|
+
<div id="method-list">
|
92
|
+
<h3 class="section-bar">Methods</h3>
|
93
|
+
|
94
|
+
<div class="name-list">
|
95
|
+
<a href="#M000025">custom_format</a>
|
96
|
+
<a href="#M000026">elapse</a>
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
|
103
|
+
<!-- if includes -->
|
104
|
+
|
105
|
+
<div id="section">
|
106
|
+
|
107
|
+
|
108
|
+
<div id="constants-list">
|
109
|
+
<h3 class="section-bar">Constants</h3>
|
110
|
+
|
111
|
+
<div class="name-list">
|
112
|
+
<table summary="Constants">
|
113
|
+
<tr class="top-aligned-row context-row">
|
114
|
+
<td class="context-item-name">MONTH_NAMES</td>
|
115
|
+
<td>=</td>
|
116
|
+
<td class="context-item-value">%w| January February March April May June July August September October November December |</td>
|
117
|
+
</tr>
|
118
|
+
<tr class="top-aligned-row context-row">
|
119
|
+
<td class="context-item-name">DAY_NAMES</td>
|
120
|
+
<td>=</td>
|
121
|
+
<td class="context-item-value">%w| Sunday Monday Tuesday Wednesday Thursday Friday Saturday |</td>
|
122
|
+
</tr>
|
123
|
+
</table>
|
124
|
+
</div>
|
125
|
+
</div>
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
<!-- if method_list -->
|
133
|
+
<div id="methods">
|
134
|
+
<h3 class="section-bar">Public Class methods</h3>
|
135
|
+
|
136
|
+
<div id="method-M000026" class="method-detail">
|
137
|
+
<a name="M000026"></a>
|
138
|
+
|
139
|
+
<div class="method-heading">
|
140
|
+
<a href="Time.src/M000026.html" target="Code" class="method-signature"
|
141
|
+
onclick="popupCode('Time.src/M000026.html');return false;">
|
142
|
+
<span class="method-name">elapse</span><span class="method-args">() {|| ...}</span>
|
143
|
+
</a>
|
144
|
+
</div>
|
145
|
+
|
146
|
+
<div class="method-description">
|
147
|
+
<p>
|
148
|
+
Tracks the elapse time of a code block.
|
149
|
+
</p>
|
150
|
+
<pre>
|
151
|
+
require 'facet/time/elapse'
|
152
|
+
|
153
|
+
Time.elapse { sleep 1 } #=> 0.999188899993896
|
154
|
+
</pre>
|
155
|
+
</div>
|
156
|
+
</div>
|
157
|
+
|
158
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
159
|
+
|
160
|
+
<div id="method-M000025" class="method-detail">
|
161
|
+
<a name="M000025"></a>
|
162
|
+
|
163
|
+
<div class="method-heading">
|
164
|
+
<a href="Time.src/M000025.html" target="Code" class="method-signature"
|
165
|
+
onclick="popupCode('Time.src/M000025.html');return false;">
|
166
|
+
<span class="method-name">custom_format</span><span class="method-args">(formatString)</span>
|
167
|
+
</a>
|
168
|
+
</div>
|
169
|
+
|
170
|
+
<div class="method-description">
|
171
|
+
<p>
|
172
|
+
Replaces every token in <em>formatString</em> with its corresponding value.
|
173
|
+
See the table below.
|
174
|
+
</p>
|
175
|
+
<pre>
|
176
|
+
token: description: example:
|
177
|
+
#YYYY# 4-digit year 2004
|
178
|
+
#YY# 2-digit year 04
|
179
|
+
#MMMM# full month name February
|
180
|
+
#MMM# 3-letter month name Feb
|
181
|
+
#MM# 2-digit month number 02
|
182
|
+
#M# month number 2
|
183
|
+
#DDDD# full weekday name Wednesday
|
184
|
+
#DDD# 3-letter weekday name Wed
|
185
|
+
#DD# 2-digit day number 09
|
186
|
+
#D# day number 9
|
187
|
+
#th# day ordinal suffix nd
|
188
|
+
#hhh# military/24-based hour 17
|
189
|
+
#hh# 2-digit hour 05
|
190
|
+
#h# hour 5
|
191
|
+
#mm# 2-digit minute 07
|
192
|
+
#m# minute 7
|
193
|
+
#ss# 2-digit second 09
|
194
|
+
#s# second 9
|
195
|
+
#ampm# "am" or "pm" pm
|
196
|
+
#AMPM# "AM" or "PM" PM
|
197
|
+
</pre>
|
198
|
+
<p>
|
199
|
+
Non-tokens are left untouched in the output string.
|
200
|
+
</p>
|
201
|
+
<pre>
|
202
|
+
require 'facet/time/custom_format'
|
203
|
+
|
204
|
+
time = Time.parse('2/3/2004 15:37')
|
205
|
+
time.custom_format('#DDDD#, #MMMM# #D##th# @ #h#:#mm##ampm#')
|
206
|
+
#=> 'Tuesday, February 3rd @ 3:37pm'
|
207
|
+
time.custom_format('#YYYY#-#MMM#-#D#')
|
208
|
+
#=> '2004-Feb-3'
|
209
|
+
time.custom_format('#MM#/#DD#/#YY#')
|
210
|
+
#=> '02/03/04'
|
211
|
+
</pre>
|
212
|
+
</div>
|
213
|
+
</div>
|
214
|
+
|
215
|
+
|
216
|
+
</div>
|
217
|
+
|
218
|
+
|
219
|
+
</div>
|
220
|
+
|
221
|
+
|
222
|
+
<div id="validator-badges">
|
223
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
224
|
+
</div>
|
225
|
+
|
226
|
+
</body>
|
227
|
+
</html>
|
@@ -0,0 +1,51 @@
|
|
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>custom_format (Time)</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/facet/time/custom_format.rb, line 44</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">custom_format</span>(<span class="ruby-identifier">formatString</span>)
|
15
|
+
<span class="ruby-identifier">zYY</span> = (<span class="ruby-identifier">zYYYY</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">year</span>.<span class="ruby-identifier">to_s</span>)[<span class="ruby-value">-2</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
|
16
|
+
<span class="ruby-identifier">zMM</span> = (<span class="ruby-identifier">zM</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">mon</span>)<span class="ruby-operator"><</span><span class="ruby-value">10</span> <span class="ruby-operator">?</span> (<span class="ruby-value str">'0'</span><span class="ruby-operator">+</span><span class="ruby-identifier">zM</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">zM</span>.<span class="ruby-identifier">to_s</span>
|
17
|
+
<span class="ruby-identifier">zMMM</span> = (<span class="ruby-identifier">zMMMM</span>=<span class="ruby-constant">MONTH_NAMES</span>[<span class="ruby-identifier">zM</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>])[<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-value">3</span>]
|
18
|
+
<span class="ruby-identifier">zDD</span> = (<span class="ruby-identifier">zD</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">day</span>)<span class="ruby-operator"><</span><span class="ruby-value">10</span> <span class="ruby-operator">?</span> (<span class="ruby-value str">'0'</span><span class="ruby-operator">+</span><span class="ruby-identifier">zD</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">zD</span>.<span class="ruby-identifier">to_s</span>
|
19
|
+
<span class="ruby-identifier">zDDD</span> = (<span class="ruby-identifier">zDDDD</span>=<span class="ruby-constant">DAY_NAMES</span>[<span class="ruby-identifier">wday</span>])[<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-value">3</span>]
|
20
|
+
<span class="ruby-identifier">zth</span> = (<span class="ruby-identifier">zD</span><span class="ruby-operator">>=</span><span class="ruby-value">10</span><span class="ruby-operator">&&</span><span class="ruby-identifier">zD</span><span class="ruby-operator"><=</span><span class="ruby-value">20</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">'th'</span> <span class="ruby-operator">:</span> ((<span class="ruby-identifier">dMod</span>=<span class="ruby-identifier">zD</span><span class="ruby-operator">%</span><span class="ruby-value">10</span>)<span class="ruby-operator">==</span><span class="ruby-value">1</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">'st'</span> <span class="ruby-operator">:</span> (<span class="ruby-identifier">dMod</span><span class="ruby-operator">==</span><span class="ruby-value">2</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">'nd'</span> <span class="ruby-operator">:</span> (<span class="ruby-identifier">dMod</span><span class="ruby-operator">==</span><span class="ruby-value">3</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">'rd'</span> <span class="ruby-operator">:</span> <span class="ruby-value str">'th'</span>
|
21
|
+
|
22
|
+
<span class="ruby-identifier">zh</span> = (<span class="ruby-identifier">zhhh</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">hour</span>)<span class="ruby-operator">==</span><span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value">24</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">zhhh</span>; <span class="ruby-identifier">zh</span><span class="ruby-operator">-=</span><span class="ruby-value">12</span> <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">zh</span><span class="ruby-operator">></span><span class="ruby-value">12</span>)
|
23
|
+
<span class="ruby-identifier">zhh</span> = <span class="ruby-identifier">zh</span><span class="ruby-operator"><</span><span class="ruby-value">10</span> <span class="ruby-operator">?</span> (<span class="ruby-value str">'0'</span><span class="ruby-operator">+</span><span class="ruby-identifier">zh</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">zh</span>.<span class="ruby-identifier">to_s</span>
|
24
|
+
<span class="ruby-identifier">zmm</span> = (<span class="ruby-identifier">zm</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">min</span>)<span class="ruby-operator"><</span><span class="ruby-value">10</span> <span class="ruby-operator">?</span> (<span class="ruby-value str">'0'</span><span class="ruby-operator">+</span><span class="ruby-identifier">zm</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">zm</span>.<span class="ruby-identifier">to_s</span>
|
25
|
+
<span class="ruby-identifier">zss</span> = (<span class="ruby-identifier">zs</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">sec</span>)<span class="ruby-operator"><</span><span class="ruby-value">10</span> <span class="ruby-operator">?</span> (<span class="ruby-value str">'0'</span><span class="ruby-operator">+</span><span class="ruby-identifier">zs</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">zs</span>.<span class="ruby-identifier">to_s</span>
|
26
|
+
<span class="ruby-identifier">zAMPM</span> = (<span class="ruby-identifier">zampm</span>=<span class="ruby-identifier">zhhh</span><span class="ruby-operator"><</span><span class="ruby-value">12</span> <span class="ruby-operator">?</span> <span class="ruby-value str">'am'</span> <span class="ruby-operator">:</span> <span class="ruby-value str">'pm'</span>).<span class="ruby-identifier">upcase</span>
|
27
|
+
|
28
|
+
<span class="ruby-identifier">f</span>=<span class="ruby-identifier">formatString</span>
|
29
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#YYYY#/</span>,<span class="ruby-identifier">zYYYY</span>)
|
30
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#YY#/</span>,<span class="ruby-identifier">zYY</span>)
|
31
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#MMMM#/</span>,<span class="ruby-identifier">zMMMM</span>)
|
32
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#MMM#/</span>,<span class="ruby-identifier">zMMM</span>)
|
33
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#MM#/</span>,<span class="ruby-identifier">zMM</span>.<span class="ruby-identifier">to_s</span>)
|
34
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#M#/</span>,<span class="ruby-identifier">zM</span>.<span class="ruby-identifier">to_s</span>)
|
35
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#DDDD#/</span>,<span class="ruby-identifier">zDDDD</span>)
|
36
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#DDD#/</span>,<span class="ruby-identifier">zDDD</span>)
|
37
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#DD#/</span>,<span class="ruby-identifier">zDD</span>)
|
38
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#D#/</span>,<span class="ruby-identifier">zD</span>.<span class="ruby-identifier">to_s</span>)
|
39
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#th#/</span>,<span class="ruby-identifier">zth</span>)
|
40
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#hhh#/</span>,<span class="ruby-identifier">zhhh</span>.<span class="ruby-identifier">to_s</span>)
|
41
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#hh#/</span>,<span class="ruby-identifier">zhh</span>)
|
42
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#h#/</span>,<span class="ruby-identifier">zh</span>.<span class="ruby-identifier">to_s</span>)
|
43
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#mm#/</span>,<span class="ruby-identifier">zmm</span>)
|
44
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#m#/</span>,<span class="ruby-identifier">zm</span>.<span class="ruby-identifier">to_s</span>)
|
45
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#ss#/</span>,<span class="ruby-identifier">zss</span>)
|
46
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#s#/</span>,<span class="ruby-identifier">zs</span>.<span class="ruby-identifier">to_s</span>)
|
47
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#ampm#/</span>,<span class="ruby-identifier">zampm</span>)
|
48
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/#AMPM#/</span>,<span class="ruby-identifier">zAMPM</span>);<span class="ruby-identifier">f</span>
|
49
|
+
<span class="ruby-keyword kw">end</span></pre>
|
50
|
+
</body>
|
51
|
+
</html>
|
@@ -0,0 +1,21 @@
|
|
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>elapse (Time)</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/facet/time/elapse.rb, line 12</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">elapse</span>
|
15
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-value str">"Need block"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block_given?</span>
|
16
|
+
<span class="ruby-identifier">t0</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">to_f</span>
|
17
|
+
<span class="ruby-keyword kw">yield</span>
|
18
|
+
<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">t0</span>
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|
data/doc/created.rid
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Fri Apr 15 19:12:48 EDT 2005
|
@@ -0,0 +1,537 @@
|
|
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>File: LICENSE-GPL</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>LICENSE-GPL</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>LICENSE-GPL
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Tue Dec 14 08:58:47 EST 2004</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
<div id="description">
|
72
|
+
<pre>
|
73
|
+
GNU GENERAL PUBLIC LICENSE
|
74
|
+
Version 2, June 1991
|
75
|
+
</pre>
|
76
|
+
<p>
|
77
|
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
78
|
+
</p>
|
79
|
+
<pre>
|
80
|
+
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
81
|
+
</pre>
|
82
|
+
<p>
|
83
|
+
Everyone is permitted to copy and distribute verbatim copies of this
|
84
|
+
license document, but changing it is not allowed.
|
85
|
+
</p>
|
86
|
+
<pre>
|
87
|
+
Preamble
|
88
|
+
|
89
|
+
The licenses for most software are designed to take away your
|
90
|
+
</pre>
|
91
|
+
<p>
|
92
|
+
freedom to share and change it. By contrast, the GNU General Public License
|
93
|
+
is intended to guarantee your freedom to share and change free
|
94
|
+
software—to make sure the software is free for all its users. This
|
95
|
+
General Public License applies to most of the Free Software
|
96
|
+
Foundation’s software and to any other program whose authors commit
|
97
|
+
to using it. (Some other Free Software Foundation software is covered by
|
98
|
+
the GNU Library General Public License instead.) You can apply it to your
|
99
|
+
programs, too.
|
100
|
+
</p>
|
101
|
+
<pre>
|
102
|
+
When we speak of free software, we are referring to freedom, not
|
103
|
+
</pre>
|
104
|
+
<p>
|
105
|
+
price. Our General Public Licenses are designed to make sure that you have
|
106
|
+
the freedom to distribute copies of free software (and charge for this
|
107
|
+
service if you wish), that you receive source code or can get it if you
|
108
|
+
want it, that you can change the software or use pieces of it in new free
|
109
|
+
programs; and that you know you can do these things.
|
110
|
+
</p>
|
111
|
+
<pre>
|
112
|
+
To protect your rights, we need to make restrictions that forbid
|
113
|
+
</pre>
|
114
|
+
<p>
|
115
|
+
anyone to deny you these rights or to ask you to surrender the rights.
|
116
|
+
These restrictions translate to certain responsibilities for you if you
|
117
|
+
distribute copies of the software, or if you modify it.
|
118
|
+
</p>
|
119
|
+
<pre>
|
120
|
+
For example, if you distribute copies of such a program, whether
|
121
|
+
</pre>
|
122
|
+
<p>
|
123
|
+
gratis or for a fee, you must give the recipients all the rights that you
|
124
|
+
have. You must make sure that they, too, receive or can get the source
|
125
|
+
code. And you must show them these terms so they know their rights.
|
126
|
+
</p>
|
127
|
+
<pre>
|
128
|
+
We protect your rights with two steps: (1) copyright the software, and
|
129
|
+
</pre>
|
130
|
+
<p>
|
131
|
+
(2) offer you this license which gives you legal permission to copy,
|
132
|
+
distribute and/or modify the software.
|
133
|
+
</p>
|
134
|
+
<pre>
|
135
|
+
Also, for each author's protection and ours, we want to make certain
|
136
|
+
</pre>
|
137
|
+
<p>
|
138
|
+
that everyone understands that there is no warranty for this free software.
|
139
|
+
If the software is modified by someone else and passed on, we want its
|
140
|
+
recipients to know that what they have is not the original, so that any
|
141
|
+
problems introduced by others will not reflect on the original
|
142
|
+
authors’ reputations.
|
143
|
+
</p>
|
144
|
+
<pre>
|
145
|
+
Finally, any free program is threatened constantly by software
|
146
|
+
</pre>
|
147
|
+
<p>
|
148
|
+
patents. We wish to avoid the danger that redistributors of a free program
|
149
|
+
will individually obtain patent licenses, in effect making the program
|
150
|
+
proprietary. To prevent this, we have made it clear that any patent must be
|
151
|
+
licensed for everyone’s free use or not licensed at all.
|
152
|
+
</p>
|
153
|
+
<pre>
|
154
|
+
The precise terms and conditions for copying, distribution and
|
155
|
+
</pre>
|
156
|
+
<p>
|
157
|
+
modification follow.
|
158
|
+
</p>
|
159
|
+
<pre>
|
160
|
+
GNU GENERAL PUBLIC LICENSE
|
161
|
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
162
|
+
|
163
|
+
0. This License applies to any program or other work which contains
|
164
|
+
</pre>
|
165
|
+
<p>
|
166
|
+
a notice placed by the copyright holder saying it may be distributed under
|
167
|
+
the terms of this General Public License. The "Program", below,
|
168
|
+
refers to any such program or work, and a "work based on the
|
169
|
+
Program" means either the Program or any derivative work under
|
170
|
+
copyright law: that is to say, a work containing the Program or a portion
|
171
|
+
of it, either verbatim or with modifications and/or translated into another
|
172
|
+
language. (Hereinafter, translation is included without limitation in the
|
173
|
+
term "modification".) Each licensee is addressed as
|
174
|
+
"you".
|
175
|
+
</p>
|
176
|
+
<p>
|
177
|
+
Activities other than copying, distribution and modification are not
|
178
|
+
covered by this License; they are outside its scope. The act of running the
|
179
|
+
Program is not restricted, and the output from the Program is covered only
|
180
|
+
if its contents constitute a work based on the Program (independent of
|
181
|
+
having been made by running the Program). Whether that is true depends on
|
182
|
+
what the Program does.
|
183
|
+
</p>
|
184
|
+
<pre>
|
185
|
+
1. You may copy and distribute verbatim copies of the Program's
|
186
|
+
</pre>
|
187
|
+
<p>
|
188
|
+
source code as you receive it, in any medium, provided that you
|
189
|
+
conspicuously and appropriately publish on each copy an appropriate
|
190
|
+
copyright notice and disclaimer of warranty; keep intact all the notices
|
191
|
+
that refer to this License and to the absence of any warranty; and give any
|
192
|
+
other recipients of the Program a copy of this License along with the
|
193
|
+
Program.
|
194
|
+
</p>
|
195
|
+
<p>
|
196
|
+
You may charge a fee for the physical act of transferring a copy, and you
|
197
|
+
may at your option offer warranty protection in exchange for a fee.
|
198
|
+
</p>
|
199
|
+
<pre>
|
200
|
+
2. You may modify your copy or copies of the Program or any portion
|
201
|
+
</pre>
|
202
|
+
<p>
|
203
|
+
of it, thus forming a work based on the Program, and copy and distribute
|
204
|
+
such modifications or work under the terms of Section 1 above, provided
|
205
|
+
that you also meet all of these conditions:
|
206
|
+
</p>
|
207
|
+
<pre>
|
208
|
+
a) You must cause the modified files to carry prominent notices
|
209
|
+
stating that you changed the files and the date of any change.
|
210
|
+
|
211
|
+
b) You must cause any work that you distribute or publish, that in
|
212
|
+
whole or in part contains or is derived from the Program or any
|
213
|
+
part thereof, to be licensed as a whole at no charge to all third
|
214
|
+
parties under the terms of this License.
|
215
|
+
|
216
|
+
c) If the modified program normally reads commands interactively
|
217
|
+
when run, you must cause it, when started running for such
|
218
|
+
interactive use in the most ordinary way, to print or display an
|
219
|
+
announcement including an appropriate copyright notice and a
|
220
|
+
notice that there is no warranty (or else, saying that you provide
|
221
|
+
a warranty) and that users may redistribute the program under
|
222
|
+
these conditions, and telling the user how to view a copy of this
|
223
|
+
License. (Exception: if the Program itself is interactive but
|
224
|
+
does not normally print such an announcement, your work based on
|
225
|
+
the Program is not required to print an announcement.)
|
226
|
+
</pre>
|
227
|
+
<p>
|
228
|
+
These requirements apply to the modified work as a whole. If identifiable
|
229
|
+
sections of that work are not derived from the Program, and can be
|
230
|
+
reasonably considered independent and separate works in themselves, then
|
231
|
+
this License, and its terms, do not apply to those sections when you
|
232
|
+
distribute them as separate works. But when you distribute the same
|
233
|
+
sections as part of a whole which is a work based on the Program, the
|
234
|
+
distribution of the whole must be on the terms of this License, whose
|
235
|
+
permissions for other licensees extend to the entire whole, and thus to
|
236
|
+
each and every part regardless of who wrote it.
|
237
|
+
</p>
|
238
|
+
<p>
|
239
|
+
Thus, it is not the intent of this section to claim rights or contest your
|
240
|
+
rights to work written entirely by you; rather, the intent is to exercise
|
241
|
+
the right to control the distribution of derivative or collective works
|
242
|
+
based on the Program.
|
243
|
+
</p>
|
244
|
+
<p>
|
245
|
+
In addition, mere aggregation of another work not based on the Program with
|
246
|
+
the Program (or with a work based on the Program) on a volume of a storage
|
247
|
+
or distribution medium does not bring the other work under the scope of
|
248
|
+
this License.
|
249
|
+
</p>
|
250
|
+
<pre>
|
251
|
+
3. You may copy and distribute the Program (or a work based on it,
|
252
|
+
</pre>
|
253
|
+
<p>
|
254
|
+
under Section 2) in object code or executable form under the terms of
|
255
|
+
Sections 1 and 2 above provided that you also do one of the following:
|
256
|
+
</p>
|
257
|
+
<pre>
|
258
|
+
a) Accompany it with the complete corresponding machine-readable
|
259
|
+
source code, which must be distributed under the terms of Sections
|
260
|
+
1 and 2 above on a medium customarily used for software interchange; or,
|
261
|
+
|
262
|
+
b) Accompany it with a written offer, valid for at least three
|
263
|
+
years, to give any third party, for a charge no more than your
|
264
|
+
cost of physically performing source distribution, a complete
|
265
|
+
machine-readable copy of the corresponding source code, to be
|
266
|
+
distributed under the terms of Sections 1 and 2 above on a medium
|
267
|
+
customarily used for software interchange; or,
|
268
|
+
|
269
|
+
c) Accompany it with the information you received as to the offer
|
270
|
+
to distribute corresponding source code. (This alternative is
|
271
|
+
allowed only for noncommercial distribution and only if you
|
272
|
+
received the program in object code or executable form with such
|
273
|
+
an offer, in accord with Subsection b above.)
|
274
|
+
</pre>
|
275
|
+
<p>
|
276
|
+
The source code for a work means the preferred form of the work for making
|
277
|
+
modifications to it. For an executable work, complete source code means all
|
278
|
+
the source code for all modules it contains, plus any associated interface
|
279
|
+
definition files, plus the scripts used to control compilation and
|
280
|
+
installation of the executable. However, as a special exception, the source
|
281
|
+
code distributed need not include anything that is normally distributed (in
|
282
|
+
either source or binary form) with the major components (compiler, kernel,
|
283
|
+
and so on) of the operating system on which the executable runs, unless
|
284
|
+
that component itself accompanies the executable.
|
285
|
+
</p>
|
286
|
+
<p>
|
287
|
+
If distribution of executable or object code is made by offering access to
|
288
|
+
copy from a designated place, then offering equivalent access to copy the
|
289
|
+
source code from the same place counts as distribution of the source code,
|
290
|
+
even though third parties are not compelled to copy the source along with
|
291
|
+
the object code.
|
292
|
+
</p>
|
293
|
+
<pre>
|
294
|
+
4. You may not copy, modify, sublicense, or distribute the Program
|
295
|
+
</pre>
|
296
|
+
<p>
|
297
|
+
except as expressly provided under this License. Any attempt otherwise to
|
298
|
+
copy, modify, sublicense or distribute the Program is void, and will
|
299
|
+
automatically terminate your rights under this License. However, parties
|
300
|
+
who have received copies, or rights, from you under this License will not
|
301
|
+
have their licenses terminated so long as such parties remain in full
|
302
|
+
compliance.
|
303
|
+
</p>
|
304
|
+
<pre>
|
305
|
+
5. You are not required to accept this License, since you have not
|
306
|
+
</pre>
|
307
|
+
<p>
|
308
|
+
signed it. However, nothing else grants you permission to modify or
|
309
|
+
distribute the Program or its derivative works. These actions are
|
310
|
+
prohibited by law if you do not accept this License. Therefore, by
|
311
|
+
modifying or distributing the Program (or any work based on the Program),
|
312
|
+
you indicate your acceptance of this License to do so, and all its terms
|
313
|
+
and conditions for copying, distributing or modifying the Program or works
|
314
|
+
based on it.
|
315
|
+
</p>
|
316
|
+
<pre>
|
317
|
+
6. Each time you redistribute the Program (or any work based on the
|
318
|
+
</pre>
|
319
|
+
<p>
|
320
|
+
Program), the recipient automatically receives a license from the original
|
321
|
+
licensor to copy, distribute or modify the Program subject to these terms
|
322
|
+
and conditions. You may not impose any further restrictions on the
|
323
|
+
recipients’ exercise of the rights granted herein. You are not
|
324
|
+
responsible for enforcing compliance by third parties to this License.
|
325
|
+
</p>
|
326
|
+
<pre>
|
327
|
+
7. If, as a consequence of a court judgment or allegation of patent
|
328
|
+
</pre>
|
329
|
+
<p>
|
330
|
+
infringement or for any other reason (not limited to patent issues),
|
331
|
+
conditions are imposed on you (whether by court order, agreement or
|
332
|
+
otherwise) that contradict the conditions of this License, they do not
|
333
|
+
excuse you from the conditions of this License. If you cannot distribute so
|
334
|
+
as to satisfy simultaneously your obligations under this License and any
|
335
|
+
other pertinent obligations, then as a consequence you may not distribute
|
336
|
+
the Program at all. For example, if a patent license would not permit
|
337
|
+
royalty-free redistribution of the Program by all those who receive copies
|
338
|
+
directly or indirectly through you, then the only way you could satisfy
|
339
|
+
both it and this License would be to refrain entirely from distribution of
|
340
|
+
the Program.
|
341
|
+
</p>
|
342
|
+
<p>
|
343
|
+
If any portion of this section is held invalid or unenforceable under any
|
344
|
+
particular circumstance, the balance of the section is intended to apply
|
345
|
+
and the section as a whole is intended to apply in other circumstances.
|
346
|
+
</p>
|
347
|
+
<p>
|
348
|
+
It is not the purpose of this section to induce you to infringe any patents
|
349
|
+
or other property right claims or to contest validity of any such claims;
|
350
|
+
this section has the sole purpose of protecting the integrity of the free
|
351
|
+
software distribution system, which is implemented by public license
|
352
|
+
practices. Many people have made generous contributions to the wide range
|
353
|
+
of software distributed through that system in reliance on consistent
|
354
|
+
application of that system; it is up to the author/donor to decide if he or
|
355
|
+
she is willing to distribute software through any other system and a
|
356
|
+
licensee cannot impose that choice.
|
357
|
+
</p>
|
358
|
+
<p>
|
359
|
+
This section is intended to make thoroughly clear what is believed to be a
|
360
|
+
consequence of the rest of this License.
|
361
|
+
</p>
|
362
|
+
<pre>
|
363
|
+
8. If the distribution and/or use of the Program is restricted in
|
364
|
+
</pre>
|
365
|
+
<p>
|
366
|
+
certain countries either by patents or by copyrighted interfaces, the
|
367
|
+
original copyright holder who places the Program under this License may add
|
368
|
+
an explicit geographical distribution limitation excluding those countries,
|
369
|
+
so that distribution is permitted only in or among countries not thus
|
370
|
+
excluded. In such case, this License incorporates the limitation as if
|
371
|
+
written in the body of this License.
|
372
|
+
</p>
|
373
|
+
<pre>
|
374
|
+
9. The Free Software Foundation may publish revised and/or new versions
|
375
|
+
</pre>
|
376
|
+
<p>
|
377
|
+
of the General Public License from time to time. Such new versions will be
|
378
|
+
similar in spirit to the present version, but may differ in detail to
|
379
|
+
address new problems or concerns.
|
380
|
+
</p>
|
381
|
+
<p>
|
382
|
+
Each version is given a distinguishing version number. If the Program
|
383
|
+
specifies a version number of this License which applies to it and
|
384
|
+
"any later version", you have the option of following the terms
|
385
|
+
and conditions either of that version or of any later version published by
|
386
|
+
the Free Software Foundation. If the Program does not specify a version
|
387
|
+
number of this License, you may choose any version ever published by the
|
388
|
+
Free Software Foundation.
|
389
|
+
</p>
|
390
|
+
<pre>
|
391
|
+
10. If you wish to incorporate parts of the Program into other free
|
392
|
+
</pre>
|
393
|
+
<p>
|
394
|
+
programs whose distribution conditions are different, write to the author
|
395
|
+
to ask for permission. For software which is copyrighted by the Free
|
396
|
+
Software Foundation, write to the Free Software Foundation; we sometimes
|
397
|
+
make exceptions for this. Our decision will be guided by the two goals of
|
398
|
+
preserving the free status of all derivatives of our free software and of
|
399
|
+
promoting the sharing and reuse of software generally.
|
400
|
+
</p>
|
401
|
+
<pre>
|
402
|
+
NO WARRANTY
|
403
|
+
|
404
|
+
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
405
|
+
</pre>
|
406
|
+
<p>
|
407
|
+
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
408
|
+
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
409
|
+
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
|
410
|
+
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
411
|
+
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
412
|
+
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
413
|
+
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
414
|
+
REPAIR OR CORRECTION.
|
415
|
+
</p>
|
416
|
+
<pre>
|
417
|
+
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
418
|
+
</pre>
|
419
|
+
<p>
|
420
|
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
421
|
+
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
422
|
+
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
423
|
+
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
424
|
+
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
425
|
+
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
426
|
+
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
427
|
+
POSSIBILITY OF SUCH DAMAGES.
|
428
|
+
</p>
|
429
|
+
<pre>
|
430
|
+
END OF TERMS AND CONDITIONS
|
431
|
+
|
432
|
+
How to Apply These Terms to Your New Programs
|
433
|
+
|
434
|
+
If you develop a new program, and you want it to be of the greatest
|
435
|
+
</pre>
|
436
|
+
<p>
|
437
|
+
possible use to the public, the best way to achieve this is to make it free
|
438
|
+
software which everyone can redistribute and change under these terms.
|
439
|
+
</p>
|
440
|
+
<pre>
|
441
|
+
To do so, attach the following notices to the program. It is safest
|
442
|
+
</pre>
|
443
|
+
<p>
|
444
|
+
to attach them to the start of each source file to most effectively convey
|
445
|
+
the exclusion of warranty; and each file should have at least the
|
446
|
+
"copyright" line and a pointer to where the full notice is found.
|
447
|
+
</p>
|
448
|
+
<pre>
|
449
|
+
<one line to give the program's name and a brief idea of what it does.>
|
450
|
+
Copyright (C) <year> <name of author>
|
451
|
+
|
452
|
+
This program is free software; you can redistribute it and/or modify
|
453
|
+
it under the terms of the GNU General Public License as published by
|
454
|
+
the Free Software Foundation; either version 2 of the License, or
|
455
|
+
(at your option) any later version.
|
456
|
+
|
457
|
+
This program is distributed in the hope that it will be useful,
|
458
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
459
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
460
|
+
GNU General Public License for more details.
|
461
|
+
|
462
|
+
You should have received a copy of the GNU General Public License
|
463
|
+
along with this program; if not, write to the Free Software
|
464
|
+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
465
|
+
</pre>
|
466
|
+
<p>
|
467
|
+
Also add information on how to contact you by electronic and paper mail.
|
468
|
+
</p>
|
469
|
+
<p>
|
470
|
+
If the program is interactive, make it output a short notice like this when
|
471
|
+
it starts in an interactive mode:
|
472
|
+
</p>
|
473
|
+
<pre>
|
474
|
+
Gnomovision version 69, Copyright (C) year name of author
|
475
|
+
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
476
|
+
This is free software, and you are welcome to redistribute it
|
477
|
+
under certain conditions; type `show c' for details.
|
478
|
+
</pre>
|
479
|
+
<p>
|
480
|
+
The hypothetical commands `show w’ and `show c’ should show the
|
481
|
+
appropriate parts of the General Public License. Of course, the commands
|
482
|
+
you use may be called something other than `show w’ and `show
|
483
|
+
c’; they could even be mouse-clicks or menu items—whatever
|
484
|
+
suits your program.
|
485
|
+
</p>
|
486
|
+
<p>
|
487
|
+
You should also get your employer (if you work as a programmer) or your
|
488
|
+
school, if any, to sign a "copyright disclaimer" for the program,
|
489
|
+
if necessary. Here is a sample; alter the names:
|
490
|
+
</p>
|
491
|
+
<pre>
|
492
|
+
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
493
|
+
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
494
|
+
|
495
|
+
<signature of Ty Coon>, 1 April 1989
|
496
|
+
Ty Coon, President of Vice
|
497
|
+
</pre>
|
498
|
+
<p>
|
499
|
+
This General Public License does not permit incorporating your program into
|
500
|
+
proprietary programs. If your program is a subroutine library, you may
|
501
|
+
consider it more useful to permit linking proprietary applications with the
|
502
|
+
library. If this is what you want to do, use the GNU Library General Public
|
503
|
+
License instead of this License.
|
504
|
+
</p>
|
505
|
+
|
506
|
+
</div>
|
507
|
+
|
508
|
+
|
509
|
+
</div>
|
510
|
+
|
511
|
+
|
512
|
+
</div>
|
513
|
+
|
514
|
+
|
515
|
+
<!-- if includes -->
|
516
|
+
|
517
|
+
<div id="section">
|
518
|
+
|
519
|
+
|
520
|
+
|
521
|
+
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
|
526
|
+
<!-- if method_list -->
|
527
|
+
|
528
|
+
|
529
|
+
</div>
|
530
|
+
|
531
|
+
|
532
|
+
<div id="validator-badges">
|
533
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
534
|
+
</div>
|
535
|
+
|
536
|
+
</body>
|
537
|
+
</html>
|