facets 2.5.0 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. data/AUTHORS +1 -1
  2. data/CHANGES +28 -45
  3. data/MANIFEST +35 -4
  4. data/README +3 -14
  5. data/RELEASE +36 -70
  6. data/VERSION +1 -1
  7. data/doc/archive/RELEASE-2.5.0 +83 -0
  8. data/doc/log/basic_stats/index.html +4 -4
  9. data/doc/log/changelog.html +509 -2
  10. data/doc/log/changelog.txt +130 -1522
  11. data/doc/rdoc/core/classes/Array.html +366 -141
  12. data/doc/rdoc/core/classes/Binding.html +45 -45
  13. data/doc/rdoc/core/classes/Class.html +38 -38
  14. data/doc/rdoc/core/classes/Comparable.html +26 -26
  15. data/doc/rdoc/core/classes/Enumerable.html +174 -170
  16. data/doc/rdoc/core/classes/Enumerable/Enumerator.html +130 -0
  17. data/doc/rdoc/core/classes/Enumerator.html +132 -0
  18. data/doc/rdoc/core/classes/Exception.html +8 -8
  19. data/doc/rdoc/core/classes/File.html +58 -58
  20. data/doc/rdoc/core/classes/FileTest.html +4 -4
  21. data/doc/rdoc/core/classes/Float.html +8 -8
  22. data/doc/rdoc/core/classes/Functor.html +12 -12
  23. data/doc/rdoc/core/classes/Hash.html +447 -263
  24. data/doc/rdoc/core/classes/Indexable.html +110 -110
  25. data/doc/rdoc/core/classes/Integer.html +2 -2
  26. data/doc/rdoc/core/classes/Kernel.html +329 -329
  27. data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
  28. data/doc/rdoc/core/classes/MatchData.html +15 -15
  29. data/doc/rdoc/core/classes/Module.html +176 -157
  30. data/doc/rdoc/core/classes/NilClass.html +23 -23
  31. data/doc/rdoc/core/classes/Numeric.html +27 -27
  32. data/doc/rdoc/core/classes/Object.html +8 -8
  33. data/doc/rdoc/core/classes/ObjectSpace.html +5 -5
  34. data/doc/rdoc/core/classes/Proc.html +22 -22
  35. data/doc/rdoc/core/classes/Regexp.html +1 -1
  36. data/doc/rdoc/core/classes/Stackable.html +31 -31
  37. data/doc/rdoc/core/classes/String.html +332 -291
  38. data/doc/rdoc/core/classes/Symbol.html +1 -1
  39. data/doc/rdoc/core/classes/TrueClass.html +8 -8
  40. data/doc/rdoc/core/classes/UnboundMethod.html +18 -13
  41. data/doc/rdoc/core/created.rid +1 -1
  42. data/doc/rdoc/core/files/README.html +7 -29
  43. data/doc/rdoc/core/files/lib/core/facets/array/product_rb.html +1 -1
  44. data/doc/rdoc/core/files/lib/core/facets/enumerable/collect_rb.html +10 -1
  45. data/doc/rdoc/core/files/lib/core/facets/enumerable/compact_map_rb.html +92 -0
  46. data/doc/rdoc/core/files/lib/core/facets/enumerable/map_with_index_rb.html +92 -0
  47. data/doc/rdoc/core/files/lib/core/facets/enumerable/split_rb.html +1 -1
  48. data/doc/rdoc/core/files/lib/core/facets/hash/collate_rb.html +1 -1
  49. data/doc/rdoc/core/files/lib/core/facets/hash/group_by_value_rb.html +92 -0
  50. data/doc/rdoc/core/files/lib/core/facets/hash/new_with_rb.html +92 -0
  51. data/doc/rdoc/core/files/lib/core/facets/module/conflict_rb.html +1 -1
  52. data/doc/rdoc/core/files/lib/core/facets/module/extend_rb.html +92 -0
  53. data/doc/rdoc/core/files/lib/core/facets/string/align_rb.html +1 -1
  54. data/doc/rdoc/core/files/lib/core/facets/string/file_rb.html +96 -0
  55. data/doc/rdoc/core/files/lib/core/facets/string/xor_rb.html +1 -1
  56. data/doc/rdoc/core/files/lib/core/facets/to_hash_rb.html +5 -1
  57. data/doc/rdoc/core/files/lib/core/facets/unboundmethod/name_rb.html +1 -1
  58. data/doc/rdoc/core/fr_class_index.html +2 -0
  59. data/doc/rdoc/core/fr_file_index.html +6 -0
  60. data/doc/rdoc/core/fr_method_index.html +386 -373
  61. data/doc/rdoc/lore/classes/OpenStruct.html +6 -4
  62. data/doc/rdoc/lore/created.rid +1 -1
  63. data/doc/rdoc/lore/files/README.html +7 -29
  64. data/doc/rdoc/lore/files/lib/lore/facets/ostruct_rb.html +1 -1
  65. data/doc/rdoc/more/classes/ANSICode.html +66 -66
  66. data/doc/rdoc/more/classes/Advisable.html +37 -37
  67. data/doc/rdoc/more/classes/Advisable/Method.html +20 -20
  68. data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +27 -27
  69. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +28 -28
  70. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +19 -19
  71. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +31 -31
  72. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +33 -33
  73. data/doc/rdoc/more/classes/Association.html +67 -53
  74. data/doc/rdoc/more/classes/Association/Kernel.html +11 -12
  75. data/doc/rdoc/more/classes/BBCode.html +36 -36
  76. data/doc/rdoc/more/classes/BaseX.html +16 -16
  77. data/doc/rdoc/more/classes/BiCrypt.html +67 -67
  78. data/doc/rdoc/more/classes/BinReadable.html +85 -85
  79. data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +25 -25
  80. data/doc/rdoc/more/classes/Binding.html +8 -8
  81. data/doc/rdoc/more/classes/Buildable.html +4 -4
  82. data/doc/rdoc/more/classes/Cloneable.html +4 -4
  83. data/doc/rdoc/more/classes/ConsoleUtils.html +18 -18
  84. data/doc/rdoc/more/classes/Crypt.html +16 -16
  85. data/doc/rdoc/more/classes/CssTree.html +8 -8
  86. data/doc/rdoc/more/classes/Dictionary.html +52 -45
  87. data/doc/rdoc/more/classes/Enumerable.html +50 -50
  88. data/doc/rdoc/more/classes/Enumerable/Elementor.html +16 -16
  89. data/doc/rdoc/more/classes/Enumerable/Enumerator.html +4 -4
  90. data/doc/rdoc/more/classes/Enumerable/Filterable.html +30 -30
  91. data/doc/rdoc/more/classes/EnumerablePass.html +15 -15
  92. data/doc/rdoc/more/classes/Equatable.html +16 -16
  93. data/doc/rdoc/more/classes/Expirable.html +17 -17
  94. data/doc/rdoc/more/classes/Fileable.html +14 -14
  95. data/doc/rdoc/more/classes/Fileable/DSL.html +41 -41
  96. data/doc/rdoc/more/classes/Hash2Xml.html +4 -4
  97. data/doc/rdoc/more/classes/Hook.html +162 -0
  98. data/doc/rdoc/more/classes/HtmlFilter.html +9 -9
  99. data/doc/rdoc/more/classes/Instantiable.html +9 -9
  100. data/doc/rdoc/more/classes/Instantize.html +8 -8
  101. data/doc/rdoc/more/classes/Interval.html +187 -187
  102. data/doc/rdoc/more/classes/It.html +12 -12
  103. data/doc/rdoc/more/classes/Matcher.html +38 -38
  104. data/doc/rdoc/more/classes/Matcher/MatchData.html +4 -4
  105. data/doc/rdoc/more/classes/Memoizer.html +21 -21
  106. data/doc/rdoc/more/classes/Multiton.html +12 -12
  107. data/doc/rdoc/more/classes/Multiton/MetaMethods.html +28 -28
  108. data/doc/rdoc/more/classes/Net/SMTP.html +8 -8
  109. data/doc/rdoc/more/classes/OpEsc.html +5 -5
  110. data/doc/rdoc/more/classes/OpenCascade.html +4 -4
  111. data/doc/rdoc/more/classes/OpenHash.html +9 -9
  112. data/doc/rdoc/more/classes/OpenStructable.html +36 -36
  113. data/doc/rdoc/more/classes/PQueue.html +84 -84
  114. data/doc/rdoc/more/classes/Paramix.html +16 -16
  115. data/doc/rdoc/more/classes/Paramix/Delegator.html +16 -16
  116. data/doc/rdoc/more/classes/RWDelegator.html +16 -16
  117. data/doc/rdoc/more/classes/Random.html +5 -5
  118. data/doc/rdoc/more/classes/Random/Array.html +37 -37
  119. data/doc/rdoc/more/classes/Random/Hash.html +52 -52
  120. data/doc/rdoc/more/classes/Random/Object.html +4 -4
  121. data/doc/rdoc/more/classes/Random/String.html +34 -34
  122. data/doc/rdoc/more/classes/Random/String/Self.html +9 -9
  123. data/doc/rdoc/more/classes/Registerable.html +13 -13
  124. data/doc/rdoc/more/classes/Stash.html +28 -28
  125. data/doc/rdoc/more/classes/String/Mask.html +72 -72
  126. data/doc/rdoc/more/classes/String/Words.html +31 -31
  127. data/doc/rdoc/more/classes/System.html +253 -253
  128. data/doc/rdoc/more/classes/Timer.html +48 -48
  129. data/doc/rdoc/more/classes/Timer/Dummy.html +9 -9
  130. data/doc/rdoc/more/classes/Tuple.html +170 -170
  131. data/doc/rdoc/more/classes/TypeCast/Class.html +4 -4
  132. data/doc/rdoc/more/classes/TypeCast/Object.html +4 -4
  133. data/doc/rdoc/more/classes/Uninheritable.html +6 -6
  134. data/doc/rdoc/more/classes/X.html +117 -0
  135. data/doc/rdoc/more/classes/XOXO.html +11 -11
  136. data/doc/rdoc/more/classes/ZipUtils.html +88 -88
  137. data/doc/rdoc/more/classes/ZipUtils/DryRun.html +68 -68
  138. data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +68 -68
  139. data/doc/rdoc/more/classes/ZipUtils/Verbose.html +60 -60
  140. data/doc/rdoc/more/created.rid +1 -1
  141. data/doc/rdoc/more/files/README.html +7 -29
  142. data/doc/rdoc/more/files/lib/more/facets/association_rb.html +1 -1
  143. data/doc/rdoc/more/files/lib/more/facets/dictionary_rb.html +1 -1
  144. data/doc/rdoc/more/files/lib/more/facets/hook_rb.html +96 -0
  145. data/doc/rdoc/more/files/lib/more/facets/paramix_rb.html +1 -1
  146. data/doc/rdoc/more/files/lib/more/facets/xoxo_rb.html +2 -2
  147. data/doc/rdoc/more/fr_class_index.html +2 -0
  148. data/doc/rdoc/more/fr_file_index.html +1 -0
  149. data/doc/rdoc/more/fr_method_index.html +686 -681
  150. data/lib/core/facets/array/product.rb +6 -23
  151. data/lib/core/facets/enumerable/collect.rb +3 -53
  152. data/lib/core/facets/enumerable/compact_map.rb +35 -0
  153. data/lib/core/facets/enumerable/map_with_index.rb +23 -0
  154. data/lib/core/facets/enumerable/split.rb +3 -3
  155. data/lib/core/facets/hash/collate.rb +45 -14
  156. data/lib/core/facets/hash/group_by_value.rb +65 -0
  157. data/lib/core/facets/hash/new_with.rb +15 -0
  158. data/lib/core/facets/module/extend.rb +11 -0
  159. data/lib/core/facets/string/align.rb +19 -18
  160. data/lib/core/facets/string/file.rb +17 -0
  161. data/lib/core/facets/string/xor.rb +9 -3
  162. data/lib/core/facets/to_hash.rb +274 -17
  163. data/lib/core/facets/unboundmethod/name.rb +4 -2
  164. data/lib/lore/facets/ostruct.rb +3 -0
  165. data/lib/more/facets/association.rb +28 -12
  166. data/lib/more/facets/dictionary.rb +10 -4
  167. data/lib/more/facets/hook.rb +65 -0
  168. data/lib/more/facets/paramix.rb +5 -5
  169. data/meta/abstract +13 -0
  170. data/meta/authors +1 -0
  171. data/meta/contact +1 -0
  172. data/meta/contributors +48 -0
  173. data/meta/created +1 -0
  174. data/meta/homepage +1 -0
  175. data/meta/license +1 -0
  176. data/meta/loadpath +3 -0
  177. data/meta/releases +14 -0
  178. data/meta/slogan +1 -0
  179. data/meta/summary +1 -0
  180. data/task/test.rake +116 -18
  181. data/test/core/array/test_product.rb +0 -6
  182. data/test/core/binding/test_local_variables.rb +9 -3
  183. data/test/core/enumerable/test_split.rb +19 -0
  184. data/test/core/module/test_conflict.rb +8 -3
  185. data/test/core/test_to_hash.rb +152 -0
  186. data/test/core/unboundmethod/test_arguments.rb +1 -1
  187. data/test/core/unboundmethod/test_name.rb +2 -2
  188. metadata +39 -8
  189. data/doc/log/bstats/stats.html +0 -39
  190. data/doc/log/stats.html +0 -25
  191. data/test/more/test_to_hash.rb +0 -58
@@ -0,0 +1,130 @@
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
+ <html>
6
+ <head>
7
+ <title>Class: Enumerable::Enumerator</title>
8
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
10
+
11
+ <script language="JavaScript" type="text/javascript">
12
+ // <![CDATA[
13
+
14
+ function toggleSource( id )
15
+ {
16
+ var elem
17
+ var link
18
+
19
+ if( document.getElementById )
20
+ {
21
+ elem = document.getElementById( id )
22
+ link = document.getElementById( "l_" + id )
23
+ }
24
+ else if ( document.all )
25
+ {
26
+ elem = eval( "document.all." + id )
27
+ link = eval( "document.all.l_" + id )
28
+ }
29
+ else
30
+ return false;
31
+
32
+ if( elem.style.display == "block" )
33
+ {
34
+ elem.style.display = "none"
35
+ link.innerHTML = "+"
36
+ }
37
+ else
38
+ {
39
+ elem.style.display = "block"
40
+ link.innerHTML = "-"
41
+ }
42
+ }
43
+
44
+ function openCode( url )
45
+ {
46
+ window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
47
+ }
48
+ // ]]>
49
+ </script>
50
+ </head>
51
+
52
+ <body>
53
+ <table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
54
+ <td class="file-title"><span class="file-title-prefix">Class</span><br />Enumerable::Enumerator</td>
55
+ <td align="right">
56
+ <table cellspacing="0" cellpadding="2">
57
+ <tr valign="top">
58
+ <td>In:</td>
59
+ <td>
60
+ <a href="../../files/lib/core/facets/to_hash_rb.html">lib/core/facets/to_hash.rb</a>
61
+ </td>
62
+ </tr>
63
+ <tr>
64
+ <td>Parent:</td>
65
+ <td>
66
+ <a href="../Object.html">
67
+ Object
68
+ </a>
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </td>
73
+ </tr>
74
+ </table>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+ <div id="content">
79
+
80
+
81
+
82
+
83
+ <div class="sectiontitle">Methods</div>
84
+ <span style="padding-right: 5px;"><a href="#M000458">to_h</a></span>
85
+
86
+
87
+
88
+
89
+
90
+
91
+ <div class="sectiontitle">Public Instance methods</div>
92
+ <div class="method">
93
+ <div class="title">
94
+ <a name="M000458"></a><b>to_h</b>(mode=nil)
95
+ </div>
96
+ <div class="description">
97
+ <p>
98
+ Convert an <a href="Enumerator.html">Enumerable::Enumerator</a> object
99
+ directly into a hash.
100
+ </p>
101
+ <pre>
102
+ e = [1,2,3,4,5].to_enum
103
+ e.to_h #=&gt; {5=&gt;nil, 1=&gt;2, 3=&gt;4}
104
+ e2 = [1,2,1,3,1,5].to_enum
105
+ e2.to_h #=&gt; {1=&gt;5}
106
+ e3 = [[1,:a],[2,:b],[3,:c]].to_enum
107
+ e3.to_h #=&gt; { 1=&gt;:a, 2=&gt;:b, 3=&gt;:c }
108
+ </pre>
109
+ <p>
110
+ CREDIT: Sandor Szücs
111
+ </p>
112
+ </div>
113
+ <div class="sourcecode">
114
+ <p class="source-link">[ <a href="javascript:toggleSource('M000458_source')" id="l_M000458_source">+</a> ]</p>
115
+ <div id="M000458_source" class="dyn-source">
116
+ <pre>
117
+ <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 304</span>
118
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>(<span class="ruby-identifier">mode</span>=<span class="ruby-keyword kw">nil</span>)
119
+ <span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">to_h</span>(<span class="ruby-identifier">mode</span>)
120
+ <span class="ruby-keyword kw">end</span>
121
+ </pre>
122
+ </div>
123
+ </div>
124
+ </div>
125
+ </div>
126
+
127
+ </div>
128
+
129
+ </body>
130
+ </html>
@@ -0,0 +1,132 @@
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
+ <html>
6
+ <head>
7
+ <title>Class: Enumerator</title>
8
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
10
+
11
+ <script language="JavaScript" type="text/javascript">
12
+ // <![CDATA[
13
+
14
+ function toggleSource( id )
15
+ {
16
+ var elem
17
+ var link
18
+
19
+ if( document.getElementById )
20
+ {
21
+ elem = document.getElementById( id )
22
+ link = document.getElementById( "l_" + id )
23
+ }
24
+ else if ( document.all )
25
+ {
26
+ elem = eval( "document.all." + id )
27
+ link = eval( "document.all.l_" + id )
28
+ }
29
+ else
30
+ return false;
31
+
32
+ if( elem.style.display == "block" )
33
+ {
34
+ elem.style.display = "none"
35
+ link.innerHTML = "+"
36
+ }
37
+ else
38
+ {
39
+ elem.style.display = "block"
40
+ link.innerHTML = "-"
41
+ }
42
+ }
43
+
44
+ function openCode( url )
45
+ {
46
+ window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
47
+ }
48
+ // ]]>
49
+ </script>
50
+ </head>
51
+
52
+ <body>
53
+ <table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
54
+ <td class="file-title"><span class="file-title-prefix">Class</span><br />Enumerator</td>
55
+ <td align="right">
56
+ <table cellspacing="0" cellpadding="2">
57
+ <tr valign="top">
58
+ <td>In:</td>
59
+ <td>
60
+ <a href="../files/lib/core/facets/to_hash_rb.html">lib/core/facets/to_hash.rb</a>
61
+ </td>
62
+ </tr>
63
+ <tr>
64
+ <td>Parent:</td>
65
+ <td>
66
+ <a href="Object.html">
67
+ Object
68
+ </a>
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </td>
73
+ </tr>
74
+ </table>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+ <div id="content">
79
+
80
+
81
+
82
+
83
+ <div class="sectiontitle">Methods</div>
84
+ <span style="padding-right: 5px;"><a href="#M000172">to_h</a></span>
85
+
86
+
87
+
88
+
89
+
90
+
91
+ <div class="sectiontitle">Public Instance methods</div>
92
+ <div class="method">
93
+ <div class="title">
94
+ <a name="M000172"></a><b>to_h</b>(mode=nil)
95
+ </div>
96
+ <div class="description">
97
+ <p>
98
+ Convert an <a href="Enumerator.html">Enumerator</a> object directly into a
99
+ hash.
100
+ </p>
101
+ <pre>
102
+ e3 = [[1,:a],[2,:b],[3,:c]].to_enum
103
+ e3.to_h #=&gt; { 1=&gt;:a, 2=&gt;:b, 3=&gt;:c }
104
+
105
+ e1 = [1,2,3,4,5].to_enum
106
+ e1.to_h #=&gt; {5=&gt;nil, 1=&gt;2, 3=&gt;4}
107
+
108
+ e2 = [1,2,1,3,1,5].to_enum
109
+ e2.to_h #=&gt; {1=&gt;5}
110
+ </pre>
111
+ <p>
112
+ CREDIT: Sandor Szücs
113
+ </p>
114
+ </div>
115
+ <div class="sourcecode">
116
+ <p class="source-link">[ <a href="javascript:toggleSource('M000172_source')" id="l_M000172_source">+</a> ]</p>
117
+ <div id="M000172_source" class="dyn-source">
118
+ <pre>
119
+ <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 327</span>
120
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>(<span class="ruby-identifier">mode</span>=<span class="ruby-keyword kw">nil</span>)
121
+ <span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">to_h</span>(<span class="ruby-identifier">mode</span>)
122
+ <span class="ruby-keyword kw">end</span>
123
+ </pre>
124
+ </div>
125
+ </div>
126
+ </div>
127
+ </div>
128
+
129
+ </div>
130
+
131
+ </body>
132
+ </html>
@@ -82,8 +82,8 @@ Object
82
82
 
83
83
 
84
84
  <div class="sectiontitle">Methods</div>
85
- <span style="padding-right: 5px;"><a href="#M000220">detail</a></span>
86
- <span style="padding-right: 5px;"><a href="#M000219">suppress</a></span>
85
+ <span style="padding-right: 5px;"><a href="#M000231">detail</a></span>
86
+ <span style="padding-right: 5px;"><a href="#M000230">suppress</a></span>
87
87
 
88
88
 
89
89
 
@@ -93,7 +93,7 @@ Object
93
93
  <div class="sectiontitle">Public Class methods</div>
94
94
  <div class="method">
95
95
  <div class="title">
96
- <a name="M000219"></a><b>suppress</b>(*exception_classes) {|| ...}
96
+ <a name="M000230"></a><b>suppress</b>(*exception_classes) {|| ...}
97
97
  </div>
98
98
  <div class="description">
99
99
  <p>
@@ -104,8 +104,8 @@ CREDIT: David Heinemeier Hansson, Thomas Sawyer
104
104
  </p>
105
105
  </div>
106
106
  <div class="sourcecode">
107
- <p class="source-link">[ <a href="javascript:toggleSource('M000219_source')" id="l_M000219_source">+</a> ]</p>
108
- <div id="M000219_source" class="dyn-source">
107
+ <p class="source-link">[ <a href="javascript:toggleSource('M000230_source')" id="l_M000230_source">+</a> ]</p>
108
+ <div id="M000230_source" class="dyn-source">
109
109
  <pre>
110
110
  <span class="ruby-comment cmt"># File lib/core/facets/exception/suppress.rb, line 7</span>
111
111
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">suppress</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">exception_classes</span>)
@@ -126,7 +126,7 @@ CREDIT: David Heinemeier Hansson, Thomas Sawyer
126
126
  <div class="sectiontitle">Public Instance methods</div>
127
127
  <div class="method">
128
128
  <div class="title">
129
- <a name="M000220"></a><b>detail</b>()
129
+ <a name="M000231"></a><b>detail</b>()
130
130
  </div>
131
131
  <div class="description">
132
132
  <p>
@@ -144,8 +144,8 @@ CREDIT: George Moschovitis
144
144
  </p>
145
145
  </div>
146
146
  <div class="sourcecode">
147
- <p class="source-link">[ <a href="javascript:toggleSource('M000220_source')" id="l_M000220_source">+</a> ]</p>
148
- <div id="M000220_source" class="dyn-source">
147
+ <p class="source-link">[ <a href="javascript:toggleSource('M000231_source')" id="l_M000231_source">+</a> ]</p>
148
+ <div id="M000231_source" class="dyn-source">
149
149
  <pre>
150
150
  <span class="ruby-comment cmt"># File lib/core/facets/exception/detail.rb, line 14</span>
151
151
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">detail</span>
@@ -90,19 +90,19 @@ Object
90
90
 
91
91
 
92
92
  <div class="sectiontitle">Methods</div>
93
- <span style="padding-right: 5px;"><a href="#M000243">append</a></span>
94
- <span style="padding-right: 5px;"><a href="#M000240">create</a></span>
95
- <span style="padding-right: 5px;"><a href="#M000239">null</a></span>
96
- <span style="padding-right: 5px;"><a href="#M000248">read_binary</a></span>
97
- <span style="padding-right: 5px;"><a href="#M000249">read_list</a></span>
98
- <span style="padding-right: 5px;"><a href="#M000245">rewrite</a></span>
99
- <span style="padding-right: 5px;"><a href="#M000246">rewrite!</a></span>
100
- <span style="padding-right: 5px;"><a href="#M000237">rootname</a></span>
101
- <span style="padding-right: 5px;"><a href="#M000247">sanitize</a></span>
102
- <span style="padding-right: 5px;"><a href="#M000244">split_all</a></span>
103
- <span style="padding-right: 5px;"><a href="#M000238">split_root</a></span>
104
- <span style="padding-right: 5px;"><a href="#M000241">write</a></span>
105
- <span style="padding-right: 5px;"><a href="#M000242">writelines</a></span>
93
+ <span style="padding-right: 5px;"><a href="#M000254">append</a></span>
94
+ <span style="padding-right: 5px;"><a href="#M000251">create</a></span>
95
+ <span style="padding-right: 5px;"><a href="#M000250">null</a></span>
96
+ <span style="padding-right: 5px;"><a href="#M000259">read_binary</a></span>
97
+ <span style="padding-right: 5px;"><a href="#M000260">read_list</a></span>
98
+ <span style="padding-right: 5px;"><a href="#M000256">rewrite</a></span>
99
+ <span style="padding-right: 5px;"><a href="#M000257">rewrite!</a></span>
100
+ <span style="padding-right: 5px;"><a href="#M000248">rootname</a></span>
101
+ <span style="padding-right: 5px;"><a href="#M000258">sanitize</a></span>
102
+ <span style="padding-right: 5px;"><a href="#M000255">split_all</a></span>
103
+ <span style="padding-right: 5px;"><a href="#M000249">split_root</a></span>
104
+ <span style="padding-right: 5px;"><a href="#M000252">write</a></span>
105
+ <span style="padding-right: 5px;"><a href="#M000253">writelines</a></span>
106
106
 
107
107
 
108
108
 
@@ -112,7 +112,7 @@ Object
112
112
  <div class="sectiontitle">Public Class methods</div>
113
113
  <div class="method">
114
114
  <div class="title">
115
- <a name="M000243"></a><b>append</b>( file, str )
115
+ <a name="M000254"></a><b>append</b>( file, str )
116
116
  </div>
117
117
  <div class="description">
118
118
  <p>
@@ -123,8 +123,8 @@ CREDIT: George Moschovitis
123
123
  </p>
124
124
  </div>
125
125
  <div class="sourcecode">
126
- <p class="source-link">[ <a href="javascript:toggleSource('M000243_source')" id="l_M000243_source">+</a> ]</p>
127
- <div id="M000243_source" class="dyn-source">
126
+ <p class="source-link">[ <a href="javascript:toggleSource('M000254_source')" id="l_M000254_source">+</a> ]</p>
127
+ <div id="M000254_source" class="dyn-source">
128
128
  <pre>
129
129
  <span class="ruby-comment cmt"># File lib/core/facets/file/append.rb, line 7</span>
130
130
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">append</span>( <span class="ruby-identifier">file</span>, <span class="ruby-identifier">str</span> )
@@ -138,7 +138,7 @@ CREDIT: George Moschovitis
138
138
  </div>
139
139
  <div class="method">
140
140
  <div class="title">
141
- <a name="M000240"></a><b>create</b>(path, str='', &amp;blk)
141
+ <a name="M000251"></a><b>create</b>(path, str='', &amp;blk)
142
142
  </div>
143
143
  <div class="description">
144
144
  <p>
@@ -155,8 +155,8 @@ CREDIT: George Moschovitis
155
155
  </p>
156
156
  </div>
157
157
  <div class="sourcecode">
158
- <p class="source-link">[ <a href="javascript:toggleSource('M000240_source')" id="l_M000240_source">+</a> ]</p>
159
- <div id="M000240_source" class="dyn-source">
158
+ <p class="source-link">[ <a href="javascript:toggleSource('M000251_source')" id="l_M000251_source">+</a> ]</p>
159
+ <div id="M000251_source" class="dyn-source">
160
160
  <pre>
161
161
  <span class="ruby-comment cmt"># File lib/core/facets/file/create.rb, line 13</span>
162
162
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">str</span>=<span class="ruby-value str">''</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
@@ -171,19 +171,19 @@ CREDIT: George Moschovitis
171
171
  </div>
172
172
  <div class="method">
173
173
  <div class="title">
174
- <a name="M000239"></a><b>null</b>()
174
+ <a name="M000250"></a><b>null</b>()
175
175
  </div>
176
176
  <div class="description">
177
177
  <p>
178
- Platform dependent <a href="File.html#M000239">null</a> device.
178
+ Platform dependent <a href="File.html#M000250">null</a> device.
179
179
  </p>
180
180
  <p>
181
181
  CREDIT: Daniel Burger
182
182
  </p>
183
183
  </div>
184
184
  <div class="sourcecode">
185
- <p class="source-link">[ <a href="javascript:toggleSource('M000239_source')" id="l_M000239_source">+</a> ]</p>
186
- <div id="M000239_source" class="dyn-source">
185
+ <p class="source-link">[ <a href="javascript:toggleSource('M000250_source')" id="l_M000250_source">+</a> ]</p>
186
+ <div id="M000250_source" class="dyn-source">
187
187
  <pre>
188
188
  <span class="ruby-comment cmt"># File lib/core/facets/file/null.rb, line 7</span>
189
189
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">null</span>
@@ -204,7 +204,7 @@ CREDIT: Daniel Burger
204
204
  </div>
205
205
  <div class="method">
206
206
  <div class="title">
207
- <a name="M000248"></a><b>read_binary</b>(fname)
207
+ <a name="M000259"></a><b>read_binary</b>(fname)
208
208
  </div>
209
209
  <div class="description">
210
210
  <p>
@@ -215,8 +215,8 @@ CREDIT: George Moschovitis
215
215
  </p>
216
216
  </div>
217
217
  <div class="sourcecode">
218
- <p class="source-link">[ <a href="javascript:toggleSource('M000248_source')" id="l_M000248_source">+</a> ]</p>
219
- <div id="M000248_source" class="dyn-source">
218
+ <p class="source-link">[ <a href="javascript:toggleSource('M000259_source')" id="l_M000259_source">+</a> ]</p>
219
+ <div id="M000259_source" class="dyn-source">
220
220
  <pre>
221
221
  <span class="ruby-comment cmt"># File lib/core/facets/file/read.rb, line 18</span>
222
222
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">read_binary</span>(<span class="ruby-identifier">fname</span>)
@@ -230,7 +230,7 @@ CREDIT: George Moschovitis
230
230
  </div>
231
231
  <div class="method">
232
232
  <div class="title">
233
- <a name="M000249"></a><b>read_list</b>(filepath, chomp_string='')
233
+ <a name="M000260"></a><b>read_list</b>(filepath, chomp_string='')
234
234
  </div>
235
235
  <div class="description">
236
236
  <p>
@@ -242,8 +242,8 @@ CREDIT: Trans
242
242
  </p>
243
243
  </div>
244
244
  <div class="sourcecode">
245
- <p class="source-link">[ <a href="javascript:toggleSource('M000249_source')" id="l_M000249_source">+</a> ]</p>
246
- <div id="M000249_source" class="dyn-source">
245
+ <p class="source-link">[ <a href="javascript:toggleSource('M000260_source')" id="l_M000260_source">+</a> ]</p>
246
+ <div id="M000260_source" class="dyn-source">
247
247
  <pre>
248
248
  <span class="ruby-comment cmt"># File lib/core/facets/file/read.rb, line 30</span>
249
249
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">read_list</span>(<span class="ruby-identifier">filepath</span>, <span class="ruby-identifier">chomp_string</span>=<span class="ruby-value str">''</span>)
@@ -261,7 +261,7 @@ CREDIT: Trans
261
261
  </div>
262
262
  <div class="method">
263
263
  <div class="title">
264
- <a name="M000245"></a><b>rewrite</b>(name, mode = &quot;&quot;) {|| ...}
264
+ <a name="M000256"></a><b>rewrite</b>(name, mode = &quot;&quot;) {|| ...}
265
265
  </div>
266
266
  <div class="description">
267
267
  <p>
@@ -279,7 +279,7 @@ exception.
279
279
  <p>
280
280
  Mode can either be &quot;b&quot; or &quot;+&quot; and specifies to open the
281
281
  file in binary mode (no mapping of the plattform&#8216;s newlines to
282
- &quot;\n&quot; is done) or to <a href="File.html#M000243">append</a> to it.
282
+ &quot;\n&quot; is done) or to <a href="File.html#M000254">append</a> to it.
283
283
  </p>
284
284
  <pre>
285
285
  # Reverse contents of &quot;message&quot;
@@ -290,7 +290,7 @@ file in binary mode (no mapping of the plattform&#8216;s newlines to
290
290
  </pre>
291
291
  <p>
292
292
  IMPORTANT: The old version of this method required in place modification of
293
- the file string. The new version will <a href="File.html#M000241">write</a>
293
+ the file string. The new version will <a href="File.html#M000252">write</a>
294
294
  whatever the block returns instead!!!
295
295
  </p>
296
296
  <p>
@@ -298,8 +298,8 @@ CREDIT: George Moschovitis
298
298
  </p>
299
299
  </div>
300
300
  <div class="sourcecode">
301
- <p class="source-link">[ <a href="javascript:toggleSource('M000245_source')" id="l_M000245_source">+</a> ]</p>
302
- <div id="M000245_source" class="dyn-source">
301
+ <p class="source-link">[ <a href="javascript:toggleSource('M000256_source')" id="l_M000256_source">+</a> ]</p>
302
+ <div id="M000256_source" class="dyn-source">
303
303
  <pre>
304
304
  <span class="ruby-comment cmt"># File lib/core/facets/file/rewrite.rb, line 28</span>
305
305
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rewrite</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">mode</span> = <span class="ruby-value str">&quot;&quot;</span>) <span class="ruby-comment cmt">#:yield:</span>
@@ -332,11 +332,11 @@ CREDIT: George Moschovitis
332
332
  </div>
333
333
  <div class="method">
334
334
  <div class="title">
335
- <a name="M000246"></a><b>rewrite!</b>(name, mode = &quot;&quot;) {|| ...}
335
+ <a name="M000257"></a><b>rewrite!</b>(name, mode = &quot;&quot;) {|| ...}
336
336
  </div>
337
337
  <div class="description">
338
338
  <p>
339
- In place version of <a href="File.html#M000245">rewrite</a>. This version
339
+ In place version of <a href="File.html#M000256">rewrite</a>. This version
340
340
  of method requires that the string be modified in place within the block.
341
341
  </p>
342
342
  <pre>
@@ -348,8 +348,8 @@ of method requires that the string be modified in place within the block.
348
348
  </pre>
349
349
  </div>
350
350
  <div class="sourcecode">
351
- <p class="source-link">[ <a href="javascript:toggleSource('M000246_source')" id="l_M000246_source">+</a> ]</p>
352
- <div id="M000246_source" class="dyn-source">
351
+ <p class="source-link">[ <a href="javascript:toggleSource('M000257_source')" id="l_M000257_source">+</a> ]</p>
352
+ <div id="M000257_source" class="dyn-source">
353
353
  <pre>
354
354
  <span class="ruby-comment cmt"># File lib/core/facets/file/rewrite.rb, line 62</span>
355
355
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rewrite!</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">mode</span> = <span class="ruby-value str">&quot;&quot;</span>) <span class="ruby-comment cmt">#:yield:</span>
@@ -382,7 +382,7 @@ of method requires that the string be modified in place within the block.
382
382
  </div>
383
383
  <div class="method">
384
384
  <div class="title">
385
- <a name="M000237"></a><b>rootname</b>(path)
385
+ <a name="M000248"></a><b>rootname</b>(path)
386
386
  </div>
387
387
  <div class="description">
388
388
  <p>
@@ -398,8 +398,8 @@ CREDIT: Trans
398
398
  </p>
399
399
  </div>
400
400
  <div class="sourcecode">
401
- <p class="source-link">[ <a href="javascript:toggleSource('M000237_source')" id="l_M000237_source">+</a> ]</p>
402
- <div id="M000237_source" class="dyn-source">
401
+ <p class="source-link">[ <a href="javascript:toggleSource('M000248_source')" id="l_M000248_source">+</a> ]</p>
402
+ <div id="M000248_source" class="dyn-source">
403
403
  <pre>
404
404
  <span class="ruby-comment cmt"># File lib/core/facets/file/rootname.rb, line 12</span>
405
405
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rootname</span>(<span class="ruby-identifier">path</span>)
@@ -417,7 +417,7 @@ CREDIT: Trans
417
417
  </div>
418
418
  <div class="method">
419
419
  <div class="title">
420
- <a name="M000247"></a><b>sanitize</b>(filename)
420
+ <a name="M000258"></a><b>sanitize</b>(filename)
421
421
  </div>
422
422
  <div class="description">
423
423
  <p>
@@ -428,8 +428,8 @@ CREDIT: George Moschovitis
428
428
  </p>
429
429
  </div>
430
430
  <div class="sourcecode">
431
- <p class="source-link">[ <a href="javascript:toggleSource('M000247_source')" id="l_M000247_source">+</a> ]</p>
432
- <div id="M000247_source" class="dyn-source">
431
+ <p class="source-link">[ <a href="javascript:toggleSource('M000258_source')" id="l_M000258_source">+</a> ]</p>
432
+ <div id="M000258_source" class="dyn-source">
433
433
  <pre>
434
434
  <span class="ruby-comment cmt"># File lib/core/facets/file/read.rb, line 7</span>
435
435
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">sanitize</span>(<span class="ruby-identifier">filename</span>)
@@ -444,7 +444,7 @@ CREDIT: George Moschovitis
444
444
  </div>
445
445
  <div class="method">
446
446
  <div class="title">
447
- <a name="M000244"></a><b>split_all</b>(path)
447
+ <a name="M000255"></a><b>split_all</b>(path)
448
448
  </div>
449
449
  <div class="description">
450
450
  <p>
@@ -460,8 +460,8 @@ CREDIT: Trans
460
460
  </p>
461
461
  </div>
462
462
  <div class="sourcecode">
463
- <p class="source-link">[ <a href="javascript:toggleSource('M000244_source')" id="l_M000244_source">+</a> ]</p>
464
- <div id="M000244_source" class="dyn-source">
463
+ <p class="source-link">[ <a href="javascript:toggleSource('M000255_source')" id="l_M000255_source">+</a> ]</p>
464
+ <div id="M000255_source" class="dyn-source">
465
465
  <pre>
466
466
  <span class="ruby-comment cmt"># File lib/core/facets/file/split_all.rb, line 11</span>
467
467
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split_all</span>(<span class="ruby-identifier">path</span>)
@@ -476,7 +476,7 @@ CREDIT: Trans
476
476
  </div>
477
477
  <div class="method">
478
478
  <div class="title">
479
- <a name="M000238"></a><b>split_root</b>(path)
479
+ <a name="M000249"></a><b>split_root</b>(path)
480
480
  </div>
481
481
  <div class="description">
482
482
  <p>
@@ -487,8 +487,8 @@ Return the head of path from the rest of the path.
487
487
  </pre>
488
488
  </div>
489
489
  <div class="sourcecode">
490
- <p class="source-link">[ <a href="javascript:toggleSource('M000238_source')" id="l_M000238_source">+</a> ]</p>
491
- <div id="M000238_source" class="dyn-source">
490
+ <p class="source-link">[ <a href="javascript:toggleSource('M000249_source')" id="l_M000249_source">+</a> ]</p>
491
+ <div id="M000249_source" class="dyn-source">
492
492
  <pre>
493
493
  <span class="ruby-comment cmt"># File lib/core/facets/file/split_root.rb, line 7</span>
494
494
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split_root</span>(<span class="ruby-identifier">path</span>)
@@ -501,7 +501,7 @@ Return the head of path from the rest of the path.
501
501
  </div>
502
502
  <div class="method">
503
503
  <div class="title">
504
- <a name="M000241"></a><b>write</b>(path, data)
504
+ <a name="M000252"></a><b>write</b>(path, data)
505
505
  </div>
506
506
  <div class="description">
507
507
  <p>
@@ -516,8 +516,8 @@ CREDIT: Gavin Sinclair
516
516
  </p>
517
517
  </div>
518
518
  <div class="sourcecode">
519
- <p class="source-link">[ <a href="javascript:toggleSource('M000241_source')" id="l_M000241_source">+</a> ]</p>
520
- <div id="M000241_source" class="dyn-source">
519
+ <p class="source-link">[ <a href="javascript:toggleSource('M000252_source')" id="l_M000252_source">+</a> ]</p>
520
+ <div id="M000252_source" class="dyn-source">
521
521
  <pre>
522
522
  <span class="ruby-comment cmt"># File lib/core/facets/file/write.rb, line 15</span>
523
523
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">data</span>)
@@ -531,7 +531,7 @@ CREDIT: Gavin Sinclair
531
531
  </div>
532
532
  <div class="method">
533
533
  <div class="title">
534
- <a name="M000242"></a><b>writelines</b>(path, data)
534
+ <a name="M000253"></a><b>writelines</b>(path, data)
535
535
  </div>
536
536
  <div class="description">
537
537
  <p>
@@ -542,9 +542,9 @@ Ruby.
542
542
  <p>
543
543
  Note that <tt>readlines</tt> (the standard Ruby method) returns an array of
544
544
  lines <em>with newlines intact</em>, whereas <tt><a
545
- href="File.html#M000242">writelines</a></tt> uses <tt>puts</tt>, and so
545
+ href="File.html#M000253">writelines</a></tt> uses <tt>puts</tt>, and so
546
546
  appends newlines if necessary. In this small way, <tt>readlines</tt> and
547
- <tt><a href="File.html#M000242">writelines</a></tt> are not exact
547
+ <tt><a href="File.html#M000253">writelines</a></tt> are not exact
548
548
  opposites.
549
549
  </p>
550
550
  <p>
@@ -555,8 +555,8 @@ CREDIT: Noah Gibbs, Gavin Sinclair
555
555
  </p>
556
556
  </div>
557
557
  <div class="sourcecode">
558
- <p class="source-link">[ <a href="javascript:toggleSource('M000242_source')" id="l_M000242_source">+</a> ]</p>
559
- <div id="M000242_source" class="dyn-source">
558
+ <p class="source-link">[ <a href="javascript:toggleSource('M000253_source')" id="l_M000253_source">+</a> ]</p>
559
+ <div id="M000253_source" class="dyn-source">
560
560
  <pre>
561
561
  <span class="ruby-comment cmt"># File lib/core/facets/file/writelines.rb, line 16</span>
562
562
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">writelines</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">data</span>)