facets 2.5.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +113 -13
- data/MANIFEST +23 -19
- data/RELEASE +22 -22
- data/VERSION +1 -1
- data/doc/{archive → changelogs}/CHANGELOG-0.10.30 +0 -0
- data/doc/{archive → changelogs}/CHANGELOG-1.8.54 +0 -0
- data/doc/{archive → changelogs}/CHANGELOG-2.4.5 +0 -0
- data/doc/log/basic_stats/index.html +4 -4
- data/doc/rdoc/core/classes/Array.html +148 -148
- data/doc/rdoc/core/classes/Binding.html +45 -45
- data/doc/rdoc/core/classes/Class.html +38 -38
- data/doc/rdoc/core/classes/Comparable.html +26 -26
- data/doc/rdoc/core/classes/Enumerable.html +224 -139
- data/doc/rdoc/core/classes/Enumerable/Enumerator.html +126 -13
- data/doc/rdoc/core/classes/Enumerator.html +123 -13
- data/doc/rdoc/core/classes/Exception.html +8 -8
- data/doc/rdoc/core/classes/File.html +58 -58
- data/doc/rdoc/core/classes/FileTest.html +4 -4
- data/doc/rdoc/core/classes/Float.html +8 -8
- data/doc/rdoc/core/classes/Functor.html +12 -12
- data/doc/rdoc/core/classes/Hash.html +289 -266
- data/doc/rdoc/core/classes/Indexable.html +110 -110
- data/doc/rdoc/core/classes/Integer.html +2 -2
- data/doc/rdoc/core/classes/Kernel.html +329 -329
- data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
- data/doc/rdoc/core/classes/MatchData.html +15 -15
- data/doc/rdoc/core/classes/Module.html +161 -161
- data/doc/rdoc/core/classes/NilClass.html +23 -23
- data/doc/rdoc/core/classes/Numeric.html +27 -27
- data/doc/rdoc/core/classes/Object.html +8 -8
- data/doc/rdoc/core/classes/ObjectSpace.html +5 -5
- data/doc/rdoc/core/classes/Proc.html +22 -22
- data/doc/rdoc/core/classes/Regexp.html +1 -1
- data/doc/rdoc/core/classes/Stackable.html +31 -31
- data/doc/rdoc/core/classes/String.html +270 -270
- data/doc/rdoc/core/classes/Symbol.html +1 -1
- data/doc/rdoc/core/classes/TrueClass.html +8 -8
- data/doc/rdoc/core/classes/UnboundMethod.html +12 -12
- data/doc/rdoc/core/created.rid +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/dearray_values_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/to_hash_rb.html +2 -1
- data/doc/rdoc/core/fr_file_index.html +1 -0
- data/doc/rdoc/core/fr_method_index.html +401 -385
- data/doc/{archive → release-notes}/RELEASE-2.0.5 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.1.0 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.1.1 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.1.2 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.1.3 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.2.0 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.2.1 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.3.0 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.4.0 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.4.1 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.4.2 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.4.3 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.4.4 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.4.5 +0 -0
- data/doc/{archive → release-notes}/RELEASE-2.5.0 +0 -0
- data/lib/core/facets/hash/dearray_values.rb +46 -0
- data/lib/core/facets/to_hash.rb +109 -74
- data/task/setup.rake +17 -9
- data/test/core/hash/test_dearray_values.rb +19 -0
- data/test/core/test_to_hash.rb +116 -24
- metadata +26 -21
| @@ -85,11 +85,11 @@ Object | |
| 85 85 |  | 
| 86 86 |  | 
| 87 87 | 
             
              <div class="sectiontitle">Methods</div>
         | 
| 88 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 89 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 90 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 91 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 92 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 88 | 
            +
              <span style="padding-right: 5px;"><a href="#M000235">blank?</a></span>
         | 
| 89 | 
            +
              <span style="padding-right: 5px;"><a href="#M000234">ergo</a></span>
         | 
| 90 | 
            +
              <span style="padding-right: 5px;"><a href="#M000233">to_bool</a></span>
         | 
| 91 | 
            +
              <span style="padding-right: 5px;"><a href="#M000232">to_f</a></span>
         | 
| 92 | 
            +
              <span style="padding-right: 5px;"><a href="#M000231">to_h</a></span>
         | 
| 93 93 |  | 
| 94 94 |  | 
| 95 95 |  | 
| @@ -99,11 +99,11 @@ Object | |
| 99 99 | 
             
            <div class="sectiontitle">Public Instance methods</div>
         | 
| 100 100 | 
             
            <div class="method">
         | 
| 101 101 | 
             
              <div class="title">
         | 
| 102 | 
            -
                <a name=" | 
| 102 | 
            +
                <a name="M000235"></a><b>blank?</b>()
         | 
| 103 103 | 
             
              </div>
         | 
| 104 104 | 
             
            <div class="sourcecode">
         | 
| 105 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 106 | 
            -
              <div id=" | 
| 105 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000235_source')" id="l_M000235_source">+</a> ]</p>
         | 
| 106 | 
            +
              <div id="M000235_source" class="dyn-source">
         | 
| 107 107 | 
             
            <pre>
         | 
| 108 108 | 
             
            <span class="ruby-comment cmt"># File lib/core/facets/blank.rb, line 20</span>
         | 
| 109 109 | 
             
              <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blank?</span>
         | 
| @@ -115,11 +115,11 @@ Object | |
| 115 115 | 
             
            </div>
         | 
| 116 116 | 
             
            <div class="method">
         | 
| 117 117 | 
             
              <div class="title">
         | 
| 118 | 
            -
                <a name=" | 
| 118 | 
            +
                <a name="M000234"></a><b>ergo</b>()
         | 
| 119 119 | 
             
              </div>
         | 
| 120 120 | 
             
              <div class="description">
         | 
| 121 121 | 
             
              <p>
         | 
| 122 | 
            -
            Compliments <a href="Kernel.html# | 
| 122 | 
            +
            Compliments <a href="Kernel.html#M000386">Kernel#ergo</a>.
         | 
| 123 123 | 
             
            </p>
         | 
| 124 124 | 
             
            <pre>
         | 
| 125 125 | 
             
              "a".ergo{ |o| o.upcase } #=> "A"
         | 
| @@ -130,8 +130,8 @@ CREDIT: Daniel DeLorme | |
| 130 130 | 
             
            </p>
         | 
| 131 131 | 
             
              </div>
         | 
| 132 132 | 
             
            <div class="sourcecode">
         | 
| 133 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 134 | 
            -
              <div id=" | 
| 133 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000234_source')" id="l_M000234_source">+</a> ]</p>
         | 
| 134 | 
            +
              <div id="M000234_source" class="dyn-source">
         | 
| 135 135 | 
             
            <pre>
         | 
| 136 136 | 
             
            <span class="ruby-comment cmt"># File lib/core/facets/kernel/ergo.rb, line 36</span>
         | 
| 137 137 | 
             
              <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ergo</span>
         | 
| @@ -144,11 +144,11 @@ CREDIT: Daniel DeLorme | |
| 144 144 | 
             
            </div>
         | 
| 145 145 | 
             
            <div class="method">
         | 
| 146 146 | 
             
              <div class="title">
         | 
| 147 | 
            -
                <a name=" | 
| 147 | 
            +
                <a name="M000233"></a><b>to_bool</b>()
         | 
| 148 148 | 
             
              </div>
         | 
| 149 149 | 
             
            <div class="sourcecode">
         | 
| 150 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 151 | 
            -
              <div id=" | 
| 150 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000233_source')" id="l_M000233_source">+</a> ]</p>
         | 
| 151 | 
            +
              <div id="M000233_source" class="dyn-source">
         | 
| 152 152 | 
             
            <pre>
         | 
| 153 153 | 
             
            <span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 153</span>
         | 
| 154 154 | 
             
              <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_bool</span>
         | 
| @@ -160,11 +160,11 @@ CREDIT: Daniel DeLorme | |
| 160 160 | 
             
            </div>
         | 
| 161 161 | 
             
            <div class="method">
         | 
| 162 162 | 
             
              <div class="title">
         | 
| 163 | 
            -
                <a name=" | 
| 163 | 
            +
                <a name="M000232"></a><b>to_f</b>()
         | 
| 164 164 | 
             
              </div>
         | 
| 165 165 | 
             
              <div class="description">
         | 
| 166 166 | 
             
              <p>
         | 
| 167 | 
            -
            Allows <tt>nil</tt> to respond to <a href="NilClass.html# | 
| 167 | 
            +
            Allows <tt>nil</tt> to respond to <a href="NilClass.html#M000232">to_f</a>.
         | 
| 168 168 | 
             
            Always returns <tt>0</tt>.
         | 
| 169 169 | 
             
            </p>
         | 
| 170 170 | 
             
            <pre>
         | 
| @@ -175,8 +175,8 @@ CREDIT: Matz | |
| 175 175 | 
             
            </p>
         | 
| 176 176 | 
             
              </div>
         | 
| 177 177 | 
             
            <div class="sourcecode">
         | 
| 178 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 179 | 
            -
              <div id=" | 
| 178 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000232_source')" id="l_M000232_source">+</a> ]</p>
         | 
| 179 | 
            +
              <div id="M000232_source" class="dyn-source">
         | 
| 180 180 | 
             
            <pre>
         | 
| 181 181 | 
             
            <span class="ruby-comment cmt"># File lib/core/facets/nilclass/to_f.rb, line 12</span>
         | 
| 182 182 | 
             
                <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_f</span>; <span class="ruby-value">0</span><span class="ruby-value">.0</span>; <span class="ruby-keyword kw">end</span>
         | 
| @@ -186,7 +186,7 @@ CREDIT: Matz | |
| 186 186 | 
             
            </div>
         | 
| 187 187 | 
             
            <div class="method">
         | 
| 188 188 | 
             
              <div class="title">
         | 
| 189 | 
            -
                <a name=" | 
| 189 | 
            +
                <a name="M000231"></a><b>to_h</b>()
         | 
| 190 190 | 
             
              </div>
         | 
| 191 191 | 
             
              <div class="description">
         | 
| 192 192 | 
             
              <p>
         | 
| @@ -200,10 +200,10 @@ CREDIT: Trans | |
| 200 200 | 
             
            </p>
         | 
| 201 201 | 
             
              </div>
         | 
| 202 202 | 
             
            <div class="sourcecode">
         | 
| 203 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 204 | 
            -
              <div id=" | 
| 203 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000231_source')" id="l_M000231_source">+</a> ]</p>
         | 
| 204 | 
            +
              <div id="M000231_source" class="dyn-source">
         | 
| 205 205 | 
             
            <pre>
         | 
| 206 | 
            -
            <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line  | 
| 206 | 
            +
            <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 265</span>
         | 
| 207 207 | 
             
              <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>; {}; <span class="ruby-keyword kw">end</span>
         | 
| 208 208 | 
             
            </pre>
         | 
| 209 209 | 
             
              </div>
         | 
| @@ -85,12 +85,12 @@ Object | |
| 85 85 |  | 
| 86 86 |  | 
| 87 87 | 
             
              <div class="sectiontitle">Methods</div>
         | 
| 88 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 89 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 90 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 91 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 92 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 93 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 88 | 
            +
              <span style="padding-right: 5px;"><a href="#M000228">approx?</a></span>
         | 
| 89 | 
            +
              <span style="padding-right: 5px;"><a href="#M000230">blank?</a></span>
         | 
| 90 | 
            +
              <span style="padding-right: 5px;"><a href="#M000225">distance</a></span>
         | 
| 91 | 
            +
              <span style="padding-right: 5px;"><a href="#M000226">round_at</a></span>
         | 
| 92 | 
            +
              <span style="padding-right: 5px;"><a href="#M000227">round_to</a></span>
         | 
| 93 | 
            +
              <span style="padding-right: 5px;"><a href="#M000229">to_b</a></span>
         | 
| 94 94 |  | 
| 95 95 |  | 
| 96 96 |  | 
| @@ -100,7 +100,7 @@ Object | |
| 100 100 | 
             
            <div class="sectiontitle">Public Instance methods</div>
         | 
| 101 101 | 
             
            <div class="method">
         | 
| 102 102 | 
             
              <div class="title">
         | 
| 103 | 
            -
                <a name=" | 
| 103 | 
            +
                <a name="M000228"></a><b>approx?</b>(x, n=0.01)
         | 
| 104 104 | 
             
              </div>
         | 
| 105 105 | 
             
              <div class="description">
         | 
| 106 106 | 
             
              <p>
         | 
| @@ -112,8 +112,8 @@ CREDIT: Trans | |
| 112 112 | 
             
            </p>
         | 
| 113 113 | 
             
              </div>
         | 
| 114 114 | 
             
            <div class="sourcecode">
         | 
| 115 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 116 | 
            -
              <div id=" | 
| 115 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000228_source')" id="l_M000228_source">+</a> ]</p>
         | 
| 116 | 
            +
              <div id="M000228_source" class="dyn-source">
         | 
| 117 117 | 
             
            <pre>
         | 
| 118 118 | 
             
            <span class="ruby-comment cmt"># File lib/core/facets/numeric/approx.rb, line 9</span>
         | 
| 119 119 | 
             
              <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">approx?</span>(<span class="ruby-identifier">x</span>, <span class="ruby-identifier">n</span>=<span class="ruby-value">0</span><span class="ruby-value">.01</span>)
         | 
| @@ -126,11 +126,11 @@ CREDIT: Trans | |
| 126 126 | 
             
            </div>
         | 
| 127 127 | 
             
            <div class="method">
         | 
| 128 128 | 
             
              <div class="title">
         | 
| 129 | 
            -
                <a name=" | 
| 129 | 
            +
                <a name="M000230"></a><b>blank?</b>()
         | 
| 130 130 | 
             
              </div>
         | 
| 131 131 | 
             
            <div class="sourcecode">
         | 
| 132 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 133 | 
            -
              <div id=" | 
| 132 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000230_source')" id="l_M000230_source">+</a> ]</p>
         | 
| 133 | 
            +
              <div id="M000230_source" class="dyn-source">
         | 
| 134 134 | 
             
            <pre>
         | 
| 135 135 | 
             
            <span class="ruby-comment cmt"># File lib/core/facets/blank.rb, line 56</span>
         | 
| 136 136 | 
             
              <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blank?</span>
         | 
| @@ -142,11 +142,11 @@ CREDIT: Trans | |
| 142 142 | 
             
            </div>
         | 
| 143 143 | 
             
            <div class="method">
         | 
| 144 144 | 
             
              <div class="title">
         | 
| 145 | 
            -
                <a name=" | 
| 145 | 
            +
                <a name="M000225"></a><b>distance</b>(other)
         | 
| 146 146 | 
             
              </div>
         | 
| 147 147 | 
             
              <div class="description">
         | 
| 148 148 | 
             
              <p>
         | 
| 149 | 
            -
            Returns the <a href="Numeric.html# | 
| 149 | 
            +
            Returns the <a href="Numeric.html#M000225">distance</a> between self an
         | 
| 150 150 | 
             
            another value. This is the same as #- but it provides an alternative for
         | 
| 151 151 | 
             
            common naming between variant classes.
         | 
| 152 152 | 
             
            </p>
         | 
| @@ -155,8 +155,8 @@ common naming between variant classes. | |
| 155 155 | 
             
            </pre>
         | 
| 156 156 | 
             
              </div>
         | 
| 157 157 | 
             
            <div class="sourcecode">
         | 
| 158 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 159 | 
            -
              <div id=" | 
| 158 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000225_source')" id="l_M000225_source">+</a> ]</p>
         | 
| 159 | 
            +
              <div id="M000225_source" class="dyn-source">
         | 
| 160 160 | 
             
            <pre>
         | 
| 161 161 | 
             
            <span class="ruby-comment cmt"># File lib/core/facets/numeric/distance.rb, line 9</span>
         | 
| 162 162 | 
             
              <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">distance</span>(<span class="ruby-identifier">other</span>)
         | 
| @@ -168,7 +168,7 @@ common naming between variant classes. | |
| 168 168 | 
             
            </div>
         | 
| 169 169 | 
             
            <div class="method">
         | 
| 170 170 | 
             
              <div class="title">
         | 
| 171 | 
            -
                <a name=" | 
| 171 | 
            +
                <a name="M000226"></a><b>round_at</b>(*args)
         | 
| 172 172 | 
             
              </div>
         | 
| 173 173 | 
             
              <div class="description">
         | 
| 174 174 | 
             
              <p>
         | 
| @@ -180,12 +180,12 @@ lib is in the numeric folder, but we‘ll add this here for | |
| 180 180 | 
             
            convenience.
         | 
| 181 181 | 
             
            </p>
         | 
| 182 182 | 
             
            <p>
         | 
| 183 | 
            -
            See <a href="Float.html# | 
| 183 | 
            +
            See <a href="Float.html#M000223">Float#round_at</a>.
         | 
| 184 184 | 
             
            </p>
         | 
| 185 185 | 
             
              </div>
         | 
| 186 186 | 
             
            <div class="sourcecode">
         | 
| 187 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 188 | 
            -
              <div id=" | 
| 187 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000226_source')" id="l_M000226_source">+</a> ]</p>
         | 
| 188 | 
            +
              <div id="M000226_source" class="dyn-source">
         | 
| 189 189 | 
             
            <pre>
         | 
| 190 190 | 
             
            <span class="ruby-comment cmt"># File lib/core/facets/numeric/round.rb, line 11</span>
         | 
| 191 191 | 
             
              <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_at</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
         | 
| @@ -197,16 +197,16 @@ See <a href="Float.html#M000217">Float#round_at</a>. | |
| 197 197 | 
             
            </div>
         | 
| 198 198 | 
             
            <div class="method">
         | 
| 199 199 | 
             
              <div class="title">
         | 
| 200 | 
            -
                <a name=" | 
| 200 | 
            +
                <a name="M000227"></a><b>round_to</b>(*args)
         | 
| 201 201 | 
             
              </div>
         | 
| 202 202 | 
             
              <div class="description">
         | 
| 203 203 | 
             
              <p>
         | 
| 204 | 
            -
            See <a href="Float.html# | 
| 204 | 
            +
            See <a href="Float.html#M000224">Float#round_to</a>.
         | 
| 205 205 | 
             
            </p>
         | 
| 206 206 | 
             
              </div>
         | 
| 207 207 | 
             
            <div class="sourcecode">
         | 
| 208 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 209 | 
            -
              <div id=" | 
| 208 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000227_source')" id="l_M000227_source">+</a> ]</p>
         | 
| 209 | 
            +
              <div id="M000227_source" class="dyn-source">
         | 
| 210 210 | 
             
            <pre>
         | 
| 211 211 | 
             
            <span class="ruby-comment cmt"># File lib/core/facets/numeric/round.rb, line 17</span>
         | 
| 212 212 | 
             
              <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_to</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
         | 
| @@ -218,7 +218,7 @@ See <a href="Float.html#M000218">Float#round_to</a>. | |
| 218 218 | 
             
            </div>
         | 
| 219 219 | 
             
            <div class="method">
         | 
| 220 220 | 
             
              <div class="title">
         | 
| 221 | 
            -
                <a name=" | 
| 221 | 
            +
                <a name="M000229"></a><b>to_b</b>()
         | 
| 222 222 | 
             
              </div>
         | 
| 223 223 | 
             
              <div class="description">
         | 
| 224 224 | 
             
              <p>
         | 
| @@ -232,8 +232,8 @@ true. | |
| 232 232 | 
             
            </pre>
         | 
| 233 233 | 
             
              </div>
         | 
| 234 234 | 
             
            <div class="sourcecode">
         | 
| 235 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 236 | 
            -
              <div id=" | 
| 235 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000229_source')" id="l_M000229_source">+</a> ]</p>
         | 
| 236 | 
            +
              <div id="M000229_source" class="dyn-source">
         | 
| 237 237 | 
             
            <pre>
         | 
| 238 238 | 
             
            <span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 76</span>
         | 
| 239 239 | 
             
              <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_b</span>
         | 
| @@ -82,8 +82,8 @@ Object | |
| 82 82 |  | 
| 83 83 |  | 
| 84 84 | 
             
              <div class="sectiontitle">Methods</div>
         | 
| 85 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 86 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 85 | 
            +
              <span style="padding-right: 5px;"><a href="#M000242">instance_exec</a></span>
         | 
| 86 | 
            +
              <span style="padding-right: 5px;"><a href="#M000241">to_bool</a></span>
         | 
| 87 87 |  | 
| 88 88 | 
             
            <div class="sectiontitle">Included Modules</div>
         | 
| 89 89 | 
             
            <ul>
         | 
| @@ -97,7 +97,7 @@ Object | |
| 97 97 | 
             
            <div class="sectiontitle">Public Instance methods</div>
         | 
| 98 98 | 
             
            <div class="method">
         | 
| 99 99 | 
             
              <div class="title">
         | 
| 100 | 
            -
                <a name=" | 
| 100 | 
            +
                <a name="M000242"></a><b>instance_exec</b>(*args, &block)
         | 
| 101 101 | 
             
              </div>
         | 
| 102 102 | 
             
              <div class="description">
         | 
| 103 103 | 
             
              <p>
         | 
| @@ -113,8 +113,8 @@ This version has been borrowed from Rails for compatibility sake. | |
| 113 113 | 
             
            </p>
         | 
| 114 114 | 
             
              </div>
         | 
| 115 115 | 
             
            <div class="sourcecode">
         | 
| 116 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 117 | 
            -
              <div id=" | 
| 116 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000242_source')" id="l_M000242_source">+</a> ]</p>
         | 
| 117 | 
            +
              <div id="M000242_source" class="dyn-source">
         | 
| 118 118 | 
             
            <pre>
         | 
| 119 119 | 
             
            <span class="ruby-comment cmt"># File lib/core/facets/kernel/instance_exec.rb, line 15</span>
         | 
| 120 120 | 
             
                <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_exec</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
         | 
| @@ -139,11 +139,11 @@ This version has been borrowed from Rails for compatibility sake. | |
| 139 139 | 
             
            </div>
         | 
| 140 140 | 
             
            <div class="method">
         | 
| 141 141 | 
             
              <div class="title">
         | 
| 142 | 
            -
                <a name=" | 
| 142 | 
            +
                <a name="M000241"></a><b>to_bool</b>()
         | 
| 143 143 | 
             
              </div>
         | 
| 144 144 | 
             
            <div class="sourcecode">
         | 
| 145 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 146 | 
            -
              <div id=" | 
| 145 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000241_source')" id="l_M000241_source">+</a> ]</p>
         | 
| 146 | 
            +
              <div id="M000241_source" class="dyn-source">
         | 
| 147 147 | 
             
            <pre>
         | 
| 148 148 | 
             
            <span class="ruby-comment cmt"># File lib/core/facets/boolean.rb, line 135</span>
         | 
| 149 149 | 
             
              <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_bool</span>
         | 
| @@ -73,7 +73,7 @@ | |
| 73 73 |  | 
| 74 74 |  | 
| 75 75 | 
             
              <div class="sectiontitle">Methods</div>
         | 
| 76 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 76 | 
            +
              <span style="padding-right: 5px;"><a href="#M000334">classes</a></span>
         | 
| 77 77 |  | 
| 78 78 |  | 
| 79 79 |  | 
| @@ -83,18 +83,18 @@ | |
| 83 83 | 
             
            <div class="sectiontitle">Public Class methods</div>
         | 
| 84 84 | 
             
            <div class="method">
         | 
| 85 85 | 
             
              <div class="title">
         | 
| 86 | 
            -
                <a name=" | 
| 86 | 
            +
                <a name="M000334"></a><b>classes</b>()
         | 
| 87 87 | 
             
              </div>
         | 
| 88 88 | 
             
              <div class="description">
         | 
| 89 89 | 
             
              <p>
         | 
| 90 90 | 
             
            @return <<a href="Array.html">Array</a>[<a
         | 
| 91 91 | 
             
            href="Class.html">Class</a>]> All the <a
         | 
| 92 | 
            -
            href="ObjectSpace.html# | 
| 92 | 
            +
            href="ObjectSpace.html#M000334">classes</a> in the object space.
         | 
| 93 93 | 
             
            </p>
         | 
| 94 94 | 
             
              </div>
         | 
| 95 95 | 
             
            <div class="sourcecode">
         | 
| 96 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 97 | 
            -
              <div id=" | 
| 96 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000334_source')" id="l_M000334_source">+</a> ]</p>
         | 
| 97 | 
            +
              <div id="M000334_source" class="dyn-source">
         | 
| 98 98 | 
             
            <pre>
         | 
| 99 99 | 
             
            <span class="ruby-comment cmt"># File lib/core/facets/objectspace/classes.rb, line 4</span>
         | 
| 100 100 | 
             
              <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">classes</span>
         | 
| @@ -85,11 +85,11 @@ Object | |
| 85 85 |  | 
| 86 86 |  | 
| 87 87 | 
             
              <div class="sectiontitle">Methods</div>
         | 
| 88 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 89 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 90 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 91 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 92 | 
            -
              <span style="padding-right: 5px;"><a href="# | 
| 88 | 
            +
              <span style="padding-right: 5px;"><a href="#M000170">*</a></span>
         | 
| 89 | 
            +
              <span style="padding-right: 5px;"><a href="#M000172">bind</a></span>
         | 
| 90 | 
            +
              <span style="padding-right: 5px;"><a href="#M000169">compose</a></span>
         | 
| 91 | 
            +
              <span style="padding-right: 5px;"><a href="#M000168">curry</a></span>
         | 
| 92 | 
            +
              <span style="padding-right: 5px;"><a href="#M000171">to_method</a></span>
         | 
| 93 93 |  | 
| 94 94 |  | 
| 95 95 |  | 
| @@ -99,11 +99,11 @@ Object | |
| 99 99 | 
             
            <div class="sectiontitle">Public Instance methods</div>
         | 
| 100 100 | 
             
            <div class="method">
         | 
| 101 101 | 
             
              <div class="title">
         | 
| 102 | 
            -
                <a name=" | 
| 102 | 
            +
                <a name="M000170"></a><b>*</b>(x)
         | 
| 103 103 | 
             
              </div>
         | 
| 104 104 | 
             
              <div class="description">
         | 
| 105 105 | 
             
              <p>
         | 
| 106 | 
            -
            Operator for <a href="Proc.html# | 
| 106 | 
            +
            Operator for <a href="Proc.html#M000169">Proc#compose</a> and <a
         | 
| 107 107 | 
             
            href="Integer.html#M000016">Integer#times_collect</a>/of.
         | 
| 108 108 | 
             
            </p>
         | 
| 109 109 | 
             
            <pre>
         | 
| @@ -118,8 +118,8 @@ CREDIT: Dave | |
| 118 118 | 
             
            </p>
         | 
| 119 119 | 
             
              </div>
         | 
| 120 120 | 
             
            <div class="sourcecode">
         | 
| 121 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 122 | 
            -
              <div id=" | 
| 121 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000170_source')" id="l_M000170_source">+</a> ]</p>
         | 
| 122 | 
            +
              <div id="M000170_source" class="dyn-source">
         | 
| 123 123 | 
             
            <pre>
         | 
| 124 124 | 
             
            <span class="ruby-comment cmt"># File lib/core/facets/proc/compose.rb, line 29</span>
         | 
| 125 125 | 
             
              <span class="ruby-keyword kw">def</span> <span class="ruby-operator">*</span>(<span class="ruby-identifier">x</span>)
         | 
| @@ -139,7 +139,7 @@ CREDIT: Dave | |
| 139 139 | 
             
            </div>
         | 
| 140 140 | 
             
            <div class="method">
         | 
| 141 141 | 
             
              <div class="title">
         | 
| 142 | 
            -
                <a name=" | 
| 142 | 
            +
                <a name="M000172"></a><b>bind</b>(object)
         | 
| 143 143 | 
             
              </div>
         | 
| 144 144 | 
             
              <div class="description">
         | 
| 145 145 | 
             
              <p>
         | 
| @@ -155,8 +155,8 @@ NOTE: This version comes from Rails. The old Facets | |
| 155 155 | 
             
            </pre>
         | 
| 156 156 | 
             
              </div>
         | 
| 157 157 | 
             
            <div class="sourcecode">
         | 
| 158 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 159 | 
            -
              <div id=" | 
| 158 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000172_source')" id="l_M000172_source">+</a> ]</p>
         | 
| 159 | 
            +
              <div id="M000172_source" class="dyn-source">
         | 
| 160 160 | 
             
            <pre>
         | 
| 161 161 | 
             
            <span class="ruby-comment cmt"># File lib/core/facets/proc/bind.rb, line 10</span>
         | 
| 162 162 | 
             
              <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bind</span>(<span class="ruby-identifier">object</span>)
         | 
| @@ -175,7 +175,7 @@ NOTE: This version comes from Rails. The old Facets | |
| 175 175 | 
             
            </div>
         | 
| 176 176 | 
             
            <div class="method">
         | 
| 177 177 | 
             
              <div class="title">
         | 
| 178 | 
            -
                <a name=" | 
| 178 | 
            +
                <a name="M000169"></a><b>compose</b>(g)
         | 
| 179 179 | 
             
              </div>
         | 
| 180 180 | 
             
              <div class="description">
         | 
| 181 181 | 
             
              <p>
         | 
| @@ -194,8 +194,8 @@ CREDIT: Dave | |
| 194 194 | 
             
            </p>
         | 
| 195 195 | 
             
              </div>
         | 
| 196 196 | 
             
            <div class="sourcecode">
         | 
| 197 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 198 | 
            -
              <div id=" | 
| 197 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000169_source')" id="l_M000169_source">+</a> ]</p>
         | 
| 198 | 
            +
              <div id="M000169_source" class="dyn-source">
         | 
| 199 199 | 
             
            <pre>
         | 
| 200 200 | 
             
            <span class="ruby-comment cmt"># File lib/core/facets/proc/compose.rb, line 14</span>
         | 
| 201 201 | 
             
              <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">compose</span>(<span class="ruby-identifier">g</span>)
         | 
| @@ -208,7 +208,7 @@ CREDIT: Dave | |
| 208 208 | 
             
            </div>
         | 
| 209 209 | 
             
            <div class="method">
         | 
| 210 210 | 
             
              <div class="title">
         | 
| 211 | 
            -
                <a name=" | 
| 211 | 
            +
                <a name="M000168"></a><b>curry</b>(*args)
         | 
| 212 212 | 
             
              </div>
         | 
| 213 213 | 
             
              <div class="description">
         | 
| 214 214 | 
             
              <p>
         | 
| @@ -216,13 +216,13 @@ Curry <a href="Proc.html">Proc</a> object into new <a | |
| 216 216 | 
             
            href="Proc.html">Proc</a> object.
         | 
| 217 217 | 
             
            </p>
         | 
| 218 218 | 
             
            <p>
         | 
| 219 | 
            -
            TODO: Utilize Ruby 1.9‘s <a href="Proc.html# | 
| 219 | 
            +
            TODO: Utilize Ruby 1.9‘s <a href="Proc.html#M000168">curry</a>
         | 
| 220 220 | 
             
            method.
         | 
| 221 221 | 
             
            </p>
         | 
| 222 222 | 
             
              </div>
         | 
| 223 223 | 
             
            <div class="sourcecode">
         | 
| 224 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 225 | 
            -
              <div id=" | 
| 224 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000168_source')" id="l_M000168_source">+</a> ]</p>
         | 
| 225 | 
            +
              <div id="M000168_source" class="dyn-source">
         | 
| 226 226 | 
             
            <pre>
         | 
| 227 227 | 
             
            <span class="ruby-comment cmt"># File lib/core/facets/proc/curry.rb, line 7</span>
         | 
| 228 228 | 
             
              <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">curry</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
         | 
| @@ -253,7 +253,7 @@ method. | |
| 253 253 | 
             
            </div>
         | 
| 254 254 | 
             
            <div class="method">
         | 
| 255 255 | 
             
              <div class="title">
         | 
| 256 | 
            -
                <a name=" | 
| 256 | 
            +
                <a name="M000171"></a><b>to_method</b>(object, name=nil)
         | 
| 257 257 | 
             
              </div>
         | 
| 258 258 | 
             
              <div class="description">
         | 
| 259 259 | 
             
              <p>
         | 
| @@ -266,8 +266,8 @@ Convert <a href="Proc.html">Proc</a> to method. | |
| 266 266 | 
             
            </pre>
         | 
| 267 267 | 
             
              </div>
         | 
| 268 268 | 
             
            <div class="sourcecode">
         | 
| 269 | 
            -
              <p class="source-link">[ <a href="javascript:toggleSource(' | 
| 270 | 
            -
              <div id=" | 
| 269 | 
            +
              <p class="source-link">[ <a href="javascript:toggleSource('M000171_source')" id="l_M000171_source">+</a> ]</p>
         | 
| 270 | 
            +
              <div id="M000171_source" class="dyn-source">
         | 
| 271 271 | 
             
            <pre>
         | 
| 272 272 | 
             
            <span class="ruby-comment cmt"># File lib/core/facets/proc/to_method.rb, line 11</span>
         | 
| 273 273 | 
             
              <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_method</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">name</span>=<span class="ruby-keyword kw">nil</span>)
         |