facets 2.5.0 → 2.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +1 -1
- data/CHANGES +28 -45
- data/MANIFEST +35 -4
- data/README +3 -14
- data/RELEASE +36 -70
- data/VERSION +1 -1
- data/doc/archive/RELEASE-2.5.0 +83 -0
- data/doc/log/basic_stats/index.html +4 -4
- data/doc/log/changelog.html +509 -2
- data/doc/log/changelog.txt +130 -1522
- data/doc/rdoc/core/classes/Array.html +366 -141
- 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 +174 -170
- data/doc/rdoc/core/classes/Enumerable/Enumerator.html +130 -0
- data/doc/rdoc/core/classes/Enumerator.html +132 -0
- 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 +447 -263
- 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 +176 -157
- 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 +332 -291
- 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 +18 -13
- data/doc/rdoc/core/created.rid +1 -1
- data/doc/rdoc/core/files/README.html +7 -29
- data/doc/rdoc/core/files/lib/core/facets/array/product_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/collect_rb.html +10 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable/compact_map_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/map_with_index_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/enumerable/split_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/collate_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/hash/group_by_value_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/hash/new_with_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/conflict_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/extend_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/align_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/string/file_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/string/xor_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/to_hash_rb.html +5 -1
- data/doc/rdoc/core/files/lib/core/facets/unboundmethod/name_rb.html +1 -1
- data/doc/rdoc/core/fr_class_index.html +2 -0
- data/doc/rdoc/core/fr_file_index.html +6 -0
- data/doc/rdoc/core/fr_method_index.html +386 -373
- data/doc/rdoc/lore/classes/OpenStruct.html +6 -4
- data/doc/rdoc/lore/created.rid +1 -1
- data/doc/rdoc/lore/files/README.html +7 -29
- data/doc/rdoc/lore/files/lib/lore/facets/ostruct_rb.html +1 -1
- data/doc/rdoc/more/classes/ANSICode.html +66 -66
- data/doc/rdoc/more/classes/Advisable.html +37 -37
- data/doc/rdoc/more/classes/Advisable/Method.html +20 -20
- data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +27 -27
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +28 -28
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +19 -19
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +31 -31
- data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +33 -33
- data/doc/rdoc/more/classes/Association.html +67 -53
- data/doc/rdoc/more/classes/Association/Kernel.html +11 -12
- data/doc/rdoc/more/classes/BBCode.html +36 -36
- data/doc/rdoc/more/classes/BaseX.html +16 -16
- data/doc/rdoc/more/classes/BiCrypt.html +67 -67
- data/doc/rdoc/more/classes/BinReadable.html +85 -85
- data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +25 -25
- data/doc/rdoc/more/classes/Binding.html +8 -8
- data/doc/rdoc/more/classes/Buildable.html +4 -4
- data/doc/rdoc/more/classes/Cloneable.html +4 -4
- data/doc/rdoc/more/classes/ConsoleUtils.html +18 -18
- data/doc/rdoc/more/classes/Crypt.html +16 -16
- data/doc/rdoc/more/classes/CssTree.html +8 -8
- data/doc/rdoc/more/classes/Dictionary.html +52 -45
- data/doc/rdoc/more/classes/Enumerable.html +50 -50
- data/doc/rdoc/more/classes/Enumerable/Elementor.html +16 -16
- data/doc/rdoc/more/classes/Enumerable/Enumerator.html +4 -4
- data/doc/rdoc/more/classes/Enumerable/Filterable.html +30 -30
- data/doc/rdoc/more/classes/EnumerablePass.html +15 -15
- data/doc/rdoc/more/classes/Equatable.html +16 -16
- data/doc/rdoc/more/classes/Expirable.html +17 -17
- data/doc/rdoc/more/classes/Fileable.html +14 -14
- data/doc/rdoc/more/classes/Fileable/DSL.html +41 -41
- data/doc/rdoc/more/classes/Hash2Xml.html +4 -4
- data/doc/rdoc/more/classes/Hook.html +162 -0
- data/doc/rdoc/more/classes/HtmlFilter.html +9 -9
- data/doc/rdoc/more/classes/Instantiable.html +9 -9
- data/doc/rdoc/more/classes/Instantize.html +8 -8
- data/doc/rdoc/more/classes/Interval.html +187 -187
- data/doc/rdoc/more/classes/It.html +12 -12
- data/doc/rdoc/more/classes/Matcher.html +38 -38
- data/doc/rdoc/more/classes/Matcher/MatchData.html +4 -4
- data/doc/rdoc/more/classes/Memoizer.html +21 -21
- data/doc/rdoc/more/classes/Multiton.html +12 -12
- data/doc/rdoc/more/classes/Multiton/MetaMethods.html +28 -28
- data/doc/rdoc/more/classes/Net/SMTP.html +8 -8
- data/doc/rdoc/more/classes/OpEsc.html +5 -5
- data/doc/rdoc/more/classes/OpenCascade.html +4 -4
- data/doc/rdoc/more/classes/OpenHash.html +9 -9
- data/doc/rdoc/more/classes/OpenStructable.html +36 -36
- data/doc/rdoc/more/classes/PQueue.html +84 -84
- data/doc/rdoc/more/classes/Paramix.html +16 -16
- data/doc/rdoc/more/classes/Paramix/Delegator.html +16 -16
- data/doc/rdoc/more/classes/RWDelegator.html +16 -16
- data/doc/rdoc/more/classes/Random.html +5 -5
- data/doc/rdoc/more/classes/Random/Array.html +37 -37
- data/doc/rdoc/more/classes/Random/Hash.html +52 -52
- data/doc/rdoc/more/classes/Random/Object.html +4 -4
- data/doc/rdoc/more/classes/Random/String.html +34 -34
- data/doc/rdoc/more/classes/Random/String/Self.html +9 -9
- data/doc/rdoc/more/classes/Registerable.html +13 -13
- data/doc/rdoc/more/classes/Stash.html +28 -28
- data/doc/rdoc/more/classes/String/Mask.html +72 -72
- data/doc/rdoc/more/classes/String/Words.html +31 -31
- data/doc/rdoc/more/classes/System.html +253 -253
- data/doc/rdoc/more/classes/Timer.html +48 -48
- data/doc/rdoc/more/classes/Timer/Dummy.html +9 -9
- data/doc/rdoc/more/classes/Tuple.html +170 -170
- data/doc/rdoc/more/classes/TypeCast/Class.html +4 -4
- data/doc/rdoc/more/classes/TypeCast/Object.html +4 -4
- data/doc/rdoc/more/classes/Uninheritable.html +6 -6
- data/doc/rdoc/more/classes/X.html +117 -0
- data/doc/rdoc/more/classes/XOXO.html +11 -11
- data/doc/rdoc/more/classes/ZipUtils.html +88 -88
- data/doc/rdoc/more/classes/ZipUtils/DryRun.html +68 -68
- data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +68 -68
- data/doc/rdoc/more/classes/ZipUtils/Verbose.html +60 -60
- data/doc/rdoc/more/created.rid +1 -1
- data/doc/rdoc/more/files/README.html +7 -29
- data/doc/rdoc/more/files/lib/more/facets/association_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/dictionary_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/hook_rb.html +96 -0
- data/doc/rdoc/more/files/lib/more/facets/paramix_rb.html +1 -1
- data/doc/rdoc/more/files/lib/more/facets/xoxo_rb.html +2 -2
- data/doc/rdoc/more/fr_class_index.html +2 -0
- data/doc/rdoc/more/fr_file_index.html +1 -0
- data/doc/rdoc/more/fr_method_index.html +686 -681
- data/lib/core/facets/array/product.rb +6 -23
- data/lib/core/facets/enumerable/collect.rb +3 -53
- data/lib/core/facets/enumerable/compact_map.rb +35 -0
- data/lib/core/facets/enumerable/map_with_index.rb +23 -0
- data/lib/core/facets/enumerable/split.rb +3 -3
- data/lib/core/facets/hash/collate.rb +45 -14
- data/lib/core/facets/hash/group_by_value.rb +65 -0
- data/lib/core/facets/hash/new_with.rb +15 -0
- data/lib/core/facets/module/extend.rb +11 -0
- data/lib/core/facets/string/align.rb +19 -18
- data/lib/core/facets/string/file.rb +17 -0
- data/lib/core/facets/string/xor.rb +9 -3
- data/lib/core/facets/to_hash.rb +274 -17
- data/lib/core/facets/unboundmethod/name.rb +4 -2
- data/lib/lore/facets/ostruct.rb +3 -0
- data/lib/more/facets/association.rb +28 -12
- data/lib/more/facets/dictionary.rb +10 -4
- data/lib/more/facets/hook.rb +65 -0
- data/lib/more/facets/paramix.rb +5 -5
- data/meta/abstract +13 -0
- data/meta/authors +1 -0
- data/meta/contact +1 -0
- data/meta/contributors +48 -0
- data/meta/created +1 -0
- data/meta/homepage +1 -0
- data/meta/license +1 -0
- data/meta/loadpath +3 -0
- data/meta/releases +14 -0
- data/meta/slogan +1 -0
- data/meta/summary +1 -0
- data/task/test.rake +116 -18
- data/test/core/array/test_product.rb +0 -6
- data/test/core/binding/test_local_variables.rb +9 -3
- data/test/core/enumerable/test_split.rb +19 -0
- data/test/core/module/test_conflict.rb +8 -3
- data/test/core/test_to_hash.rb +152 -0
- data/test/core/unboundmethod/test_arguments.rb +1 -1
- data/test/core/unboundmethod/test_name.rb +2 -2
- metadata +39 -8
- data/doc/log/bstats/stats.html +0 -39
- data/doc/log/stats.html +0 -25
- data/test/more/test_to_hash.rb +0 -58
@@ -77,8 +77,8 @@ Object extensions.
|
|
77
77
|
|
78
78
|
|
79
79
|
<div class="sectiontitle">Methods</div>
|
80
|
-
<span style="padding-right: 5px;"><a href="#
|
81
|
-
<span style="padding-right: 5px;"><a href="#
|
80
|
+
<span style="padding-right: 5px;"><a href="#M000543">>></a></span>
|
81
|
+
<span style="padding-right: 5px;"><a href="#M000544">associations</a></span>
|
82
82
|
|
83
83
|
|
84
84
|
|
@@ -88,7 +88,7 @@ Object extensions.
|
|
88
88
|
<div class="sectiontitle">Public Instance methods</div>
|
89
89
|
<div class="method">
|
90
90
|
<div class="title">
|
91
|
-
<a name="
|
91
|
+
<a name="M000543"></a><b>>></b>(to)
|
92
92
|
</div>
|
93
93
|
<div class="description">
|
94
94
|
<p>
|
@@ -96,12 +96,11 @@ Define an association with <tt>self</tt>.
|
|
96
96
|
</p>
|
97
97
|
</div>
|
98
98
|
<div class="sourcecode">
|
99
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
100
|
-
<div id="
|
99
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000543_source')" id="l_M000543_source">+</a> ]</p>
|
100
|
+
<div id="M000543_source" class="dyn-source">
|
101
101
|
<pre>
|
102
|
-
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line
|
102
|
+
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line 164</span>
|
103
103
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">>></span>(<span class="ruby-identifier">to</span>)
|
104
|
-
<span class="ruby-constant">REFERENCE</span>[<span class="ruby-keyword kw">self</span>] <span class="ruby-operator"><<</span> <span class="ruby-identifier">to</span>
|
105
104
|
<span class="ruby-constant">Association</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">to</span>)
|
106
105
|
<span class="ruby-keyword kw">end</span>
|
107
106
|
</pre>
|
@@ -110,15 +109,15 @@ Define an association with <tt>self</tt>.
|
|
110
109
|
</div>
|
111
110
|
<div class="method">
|
112
111
|
<div class="title">
|
113
|
-
<a name="
|
112
|
+
<a name="M000544"></a><b>associations</b>()
|
114
113
|
</div>
|
115
114
|
<div class="sourcecode">
|
116
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
117
|
-
<div id="
|
115
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000544_source')" id="l_M000544_source">+</a> ]</p>
|
116
|
+
<div id="M000544_source" class="dyn-source">
|
118
117
|
<pre>
|
119
|
-
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line
|
118
|
+
<span class="ruby-comment cmt"># File lib/more/facets/association.rb, line 168</span>
|
120
119
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">associations</span>
|
121
|
-
<span class="ruby-constant">
|
120
|
+
<span class="ruby-constant">Association</span>.<span class="ruby-identifier">reference</span>[<span class="ruby-keyword kw">self</span>]
|
122
121
|
<span class="ruby-keyword kw">end</span>
|
123
122
|
</pre>
|
124
123
|
</div>
|
@@ -96,14 +96,14 @@ href="BBCode.html">BBCode</a> almost freely ;)
|
|
96
96
|
|
97
97
|
|
98
98
|
<div class="sectiontitle">Methods</div>
|
99
|
-
<span style="padding-right: 5px;"><a href="#
|
100
|
-
<span style="padding-right: 5px;"><a href="#
|
101
|
-
<span style="padding-right: 5px;"><a href="#
|
102
|
-
<span style="padding-right: 5px;"><a href="#
|
103
|
-
<span style="padding-right: 5px;"><a href="#
|
104
|
-
<span style="padding-right: 5px;"><a href="#
|
105
|
-
<span style="padding-right: 5px;"><a href="#
|
106
|
-
<span style="padding-right: 5px;"><a href="#
|
99
|
+
<span style="padding-right: 5px;"><a href="#M000945">ansi</a></span>
|
100
|
+
<span style="padding-right: 5px;"><a href="#M000947">ansi_to_bbcode</a></span>
|
101
|
+
<span style="padding-right: 5px;"><a href="#M000951">ansi_to_html</a></span>
|
102
|
+
<span style="padding-right: 5px;"><a href="#M000948">bbcode_to_ansi</a></span>
|
103
|
+
<span style="padding-right: 5px;"><a href="#M000950">bbcode_to_html</a></span>
|
104
|
+
<span style="padding-right: 5px;"><a href="#M000952">html_to_ansi</a></span>
|
105
|
+
<span style="padding-right: 5px;"><a href="#M000949">html_to_bbcode</a></span>
|
106
|
+
<span style="padding-right: 5px;"><a href="#M000946">strip_bbcode</a></span>
|
107
107
|
|
108
108
|
|
109
109
|
|
@@ -152,7 +152,7 @@ ANSInames => <a href="BBCode.html">BBCode</a> LUT
|
|
152
152
|
<div class="sectiontitle">Public Class methods</div>
|
153
153
|
<div class="method">
|
154
154
|
<div class="title">
|
155
|
-
<a name="
|
155
|
+
<a name="M000945"></a><b>ansi</b>(colorname)
|
156
156
|
</div>
|
157
157
|
<div class="description">
|
158
158
|
<p>
|
@@ -160,8 +160,8 @@ Returns the ANSI sequence for given color, if existant
|
|
160
160
|
</p>
|
161
161
|
</div>
|
162
162
|
<div class="sourcecode">
|
163
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
164
|
-
<div id="
|
163
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000945_source')" id="l_M000945_source">+</a> ]</p>
|
164
|
+
<div id="M000945_source" class="dyn-source">
|
165
165
|
<pre>
|
166
166
|
<span class="ruby-comment cmt"># File lib/more/facets/bbcode.rb, line 116</span>
|
167
167
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">BBCode</span>.<span class="ruby-identifier">ansi</span>(<span class="ruby-identifier">colorname</span>)
|
@@ -174,17 +174,17 @@ Returns the ANSI sequence for given color, if existant
|
|
174
174
|
</div>
|
175
175
|
<div class="method">
|
176
176
|
<div class="title">
|
177
|
-
<a name="
|
177
|
+
<a name="M000947"></a><b>ansi_to_bbcode</b>(string)
|
178
178
|
</div>
|
179
179
|
<div class="description">
|
180
180
|
<p>
|
181
|
-
Returns the string with all <a href="BBCode.html#
|
181
|
+
Returns the string with all <a href="BBCode.html#M000945">ansi</a> escape
|
182
182
|
sequences converted to BBCodes
|
183
183
|
</p>
|
184
184
|
</div>
|
185
185
|
<div class="sourcecode">
|
186
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
187
|
-
<div id="
|
186
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000947_source')" id="l_M000947_source">+</a> ]</p>
|
187
|
+
<div id="M000947_source" class="dyn-source">
|
188
188
|
<pre>
|
189
189
|
<span class="ruby-comment cmt"># File lib/more/facets/bbcode.rb, line 129</span>
|
190
190
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">BBCode</span>.<span class="ruby-identifier">ansi_to_bbcode</span>(<span class="ruby-identifier">string</span>)
|
@@ -235,7 +235,7 @@ sequences converted to BBCodes
|
|
235
235
|
</div>
|
236
236
|
<div class="method">
|
237
237
|
<div class="title">
|
238
|
-
<a name="
|
238
|
+
<a name="M000951"></a><b>ansi_to_html</b>(string)
|
239
239
|
</div>
|
240
240
|
<div class="description">
|
241
241
|
<p>
|
@@ -244,8 +244,8 @@ ANSI code sequences converted to XHTML markup.
|
|
244
244
|
</p>
|
245
245
|
</div>
|
246
246
|
<div class="sourcecode">
|
247
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
248
|
-
<div id="
|
247
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000951_source')" id="l_M000951_source">+</a> ]</p>
|
248
|
+
<div id="M000951_source" class="dyn-source">
|
249
249
|
<pre>
|
250
250
|
<span class="ruby-comment cmt"># File lib/more/facets/bbcode.rb, line 347</span>
|
251
251
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">BBCode</span>.<span class="ruby-identifier">ansi_to_html</span>(<span class="ruby-identifier">string</span>)
|
@@ -260,7 +260,7 @@ ANSI code sequences converted to XHTML markup.
|
|
260
260
|
</div>
|
261
261
|
<div class="method">
|
262
262
|
<div class="title">
|
263
|
-
<a name="
|
263
|
+
<a name="M000948"></a><b>bbcode_to_ansi</b>(string, usecolors = true)
|
264
264
|
</div>
|
265
265
|
<div class="description">
|
266
266
|
<p>
|
@@ -270,8 +270,8 @@ converted to ANSI code sequences / aligned with spaces to specified width.
|
|
270
270
|
</p>
|
271
271
|
</div>
|
272
272
|
<div class="sourcecode">
|
273
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
274
|
-
<div id="
|
273
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000948_source')" id="l_M000948_source">+</a> ]</p>
|
274
|
+
<div id="M000948_source" class="dyn-source">
|
275
275
|
<pre>
|
276
276
|
<span class="ruby-comment cmt"># File lib/more/facets/bbcode.rb, line 175</span>
|
277
277
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">BBCode</span>.<span class="ruby-identifier">bbcode_to_ansi</span>(<span class="ruby-identifier">string</span>, <span class="ruby-identifier">usecolors</span> = <span class="ruby-keyword kw">true</span>)
|
@@ -325,7 +325,7 @@ converted to ANSI code sequences / aligned with spaces to specified width.
|
|
325
325
|
</div>
|
326
326
|
<div class="method">
|
327
327
|
<div class="title">
|
328
|
-
<a name="
|
328
|
+
<a name="M000950"></a><b>bbcode_to_html</b>(string)
|
329
329
|
</div>
|
330
330
|
<div class="description">
|
331
331
|
<p>
|
@@ -335,8 +335,8 @@ XHTML markups.
|
|
335
335
|
</p>
|
336
336
|
</div>
|
337
337
|
<div class="sourcecode">
|
338
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
339
|
-
<div id="
|
338
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000950_source')" id="l_M000950_source">+</a> ]</p>
|
339
|
+
<div id="M000950_source" class="dyn-source">
|
340
340
|
<pre>
|
341
341
|
<span class="ruby-comment cmt"># File lib/more/facets/bbcode.rb, line 282</span>
|
342
342
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">BBCode</span>.<span class="ruby-identifier">bbcode_to_html</span>(<span class="ruby-identifier">string</span>)
|
@@ -404,16 +404,16 @@ XHTML markups.
|
|
404
404
|
</div>
|
405
405
|
<div class="method">
|
406
406
|
<div class="title">
|
407
|
-
<a name="
|
407
|
+
<a name="M000952"></a><b>html_to_ansi</b>(string)
|
408
408
|
</div>
|
409
409
|
<div class="description">
|
410
410
|
<p>
|
411
|
-
Returns the (X)HTML markup code as ANSI sequences
|
411
|
+
Returns the (<a href="X.html">X</a>)HTML markup code as ANSI sequences
|
412
412
|
</p>
|
413
413
|
</div>
|
414
414
|
<div class="sourcecode">
|
415
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
416
|
-
<div id="
|
415
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000952_source')" id="l_M000952_source">+</a> ]</p>
|
416
|
+
<div id="M000952_source" class="dyn-source">
|
417
417
|
<pre>
|
418
418
|
<span class="ruby-comment cmt"># File lib/more/facets/bbcode.rb, line 355</span>
|
419
419
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">BBCode</span>.<span class="ruby-identifier">html_to_ansi</span>(<span class="ruby-identifier">string</span>)
|
@@ -428,18 +428,18 @@ Returns the (X)HTML markup code as ANSI sequences
|
|
428
428
|
</div>
|
429
429
|
<div class="method">
|
430
430
|
<div class="title">
|
431
|
-
<a name="
|
431
|
+
<a name="M000949"></a><b>html_to_bbcode</b>(string)
|
432
432
|
</div>
|
433
433
|
<div class="description">
|
434
434
|
<p>
|
435
435
|
Converts a HTML string into one with <a href="BBCode.html">BBCode</a>
|
436
|
-
markup (TODO) Returns the (X)HTML markup string as <a
|
436
|
+
markup (TODO) Returns the (<a href="X.html">X</a>)HTML markup string as <a
|
437
437
|
href="BBCode.html">BBCode</a>
|
438
438
|
</p>
|
439
439
|
</div>
|
440
440
|
<div class="sourcecode">
|
441
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
442
|
-
<div id="
|
441
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000949_source')" id="l_M000949_source">+</a> ]</p>
|
442
|
+
<div id="M000949_source" class="dyn-source">
|
443
443
|
<pre>
|
444
444
|
<span class="ruby-comment cmt"># File lib/more/facets/bbcode.rb, line 223</span>
|
445
445
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">BBCode</span>.<span class="ruby-identifier">html_to_bbcode</span>(<span class="ruby-identifier">string</span>)
|
@@ -503,17 +503,17 @@ href="BBCode.html">BBCode</a>
|
|
503
503
|
</div>
|
504
504
|
<div class="method">
|
505
505
|
<div class="title">
|
506
|
-
<a name="
|
506
|
+
<a name="M000946"></a><b>strip_bbcode</b>(string)
|
507
507
|
</div>
|
508
508
|
<div class="description">
|
509
509
|
<p>
|
510
|
-
— <a href="BBCode.html#
|
510
|
+
— <a href="BBCode.html#M000946">strip_bbcode</a>( string ) Will strip
|
511
511
|
any <a href="BBCode.html">BBCode</a> tags from the given string.
|
512
512
|
</p>
|
513
513
|
</div>
|
514
514
|
<div class="sourcecode">
|
515
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
516
|
-
<div id="
|
515
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000946_source')" id="l_M000946_source">+</a> ]</p>
|
516
|
+
<div id="M000946_source" class="dyn-source">
|
517
517
|
<pre>
|
518
518
|
<span class="ruby-comment cmt"># File lib/more/facets/bbcode.rb, line 123</span>
|
519
519
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">BBCode</span>.<span class="ruby-identifier">strip_bbcode</span>(<span class="ruby-identifier">string</span>)
|
@@ -79,10 +79,10 @@ Object
|
|
79
79
|
|
80
80
|
|
81
81
|
<div class="sectiontitle">Methods</div>
|
82
|
-
<span style="padding-right: 5px;"><a href="#
|
83
|
-
<span style="padding-right: 5px;"><a href="#
|
84
|
-
<span style="padding-right: 5px;"><a href="#
|
85
|
-
<span style="padding-right: 5px;"><a href="#
|
82
|
+
<span style="padding-right: 5px;"><a href="#M000710">convert_base</a></span>
|
83
|
+
<span style="padding-right: 5px;"><a href="#M000709">decode</a></span>
|
84
|
+
<span style="padding-right: 5px;"><a href="#M000708">encode</a></span>
|
85
|
+
<span style="padding-right: 5px;"><a href="#M000707">new</a></span>
|
86
86
|
|
87
87
|
|
88
88
|
|
@@ -110,11 +110,11 @@ Object
|
|
110
110
|
<div class="sectiontitle">Public Class methods</div>
|
111
111
|
<div class="method">
|
112
112
|
<div class="title">
|
113
|
-
<a name="
|
113
|
+
<a name="M000707"></a><b>new</b>(chars=BASE62)
|
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('M000707_source')" id="l_M000707_source">+</a> ]</p>
|
117
|
+
<div id="M000707_source" class="dyn-source">
|
118
118
|
<pre>
|
119
119
|
<span class="ruby-comment cmt"># File lib/more/facets/basex.rb, line 7</span>
|
120
120
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">chars</span>=<span class="ruby-constant">BASE62</span>)
|
@@ -129,11 +129,11 @@ Object
|
|
129
129
|
<div class="sectiontitle">Public Instance methods</div>
|
130
130
|
<div class="method">
|
131
131
|
<div class="title">
|
132
|
-
<a name="
|
132
|
+
<a name="M000710"></a><b>convert_base</b>(digits, from_base, to_base)
|
133
133
|
</div>
|
134
134
|
<div class="sourcecode">
|
135
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
136
|
-
<div id="
|
135
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000710_source')" id="l_M000710_source">+</a> ]</p>
|
136
|
+
<div id="M000710_source" class="dyn-source">
|
137
137
|
<pre>
|
138
138
|
<span class="ruby-comment cmt"># File lib/more/facets/basex.rb, line 25</span>
|
139
139
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert_base</span>(<span class="ruby-identifier">digits</span>, <span class="ruby-identifier">from_base</span>, <span class="ruby-identifier">to_base</span>)
|
@@ -152,11 +152,11 @@ Object
|
|
152
152
|
</div>
|
153
153
|
<div class="method">
|
154
154
|
<div class="title">
|
155
|
-
<a name="
|
155
|
+
<a name="M000709"></a><b>decode</b>(encoded)
|
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('M000709_source')" id="l_M000709_source">+</a> ]</p>
|
159
|
+
<div id="M000709_source" class="dyn-source">
|
160
160
|
<pre>
|
161
161
|
<span class="ruby-comment cmt"># File lib/more/facets/basex.rb, line 19</span>
|
162
162
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">decode</span>(<span class="ruby-identifier">encoded</span>)
|
@@ -170,11 +170,11 @@ Object
|
|
170
170
|
</div>
|
171
171
|
<div class="method">
|
172
172
|
<div class="title">
|
173
|
-
<a name="
|
173
|
+
<a name="M000708"></a><b>encode</b>(byte_string)
|
174
174
|
</div>
|
175
175
|
<div class="sourcecode">
|
176
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
177
|
-
<div id="
|
176
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000708_source')" id="l_M000708_source">+</a> ]</p>
|
177
|
+
<div id="M000708_source" class="dyn-source">
|
178
178
|
<pre>
|
179
179
|
<span class="ruby-comment cmt"># File lib/more/facets/basex.rb, line 13</span>
|
180
180
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">encode</span>(<span class="ruby-identifier">byte_string</span>)
|
@@ -84,22 +84,22 @@ A simple two-way encryption class.
|
|
84
84
|
|
85
85
|
|
86
86
|
<div class="sectiontitle">Methods</div>
|
87
|
-
<span style="padding-right: 5px;"><a href="#
|
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="#
|
94
|
-
<span style="padding-right: 5px;"><a href="#
|
95
|
-
<span style="padding-right: 5px;"><a href="#
|
96
|
-
<span style="padding-right: 5px;"><a href="#
|
97
|
-
<span style="padding-right: 5px;"><a href="#
|
98
|
-
<span style="padding-right: 5px;"><a href="#
|
99
|
-
<span style="padding-right: 5px;"><a href="#
|
100
|
-
<span style="padding-right: 5px;"><a href="#
|
101
|
-
<span style="padding-right: 5px;"><a href="#
|
102
|
-
<span style="padding-right: 5px;"><a href="#
|
87
|
+
<span style="padding-right: 5px;"><a href="#M000548">block_size</a></span>
|
88
|
+
<span style="padding-right: 5px;"><a href="#M000559">carefully_open_file</a></span>
|
89
|
+
<span style="padding-right: 5px;"><a href="#M000555">decrypt_block</a></span>
|
90
|
+
<span style="padding-right: 5px;"><a href="#M000561">decrypt_file</a></span>
|
91
|
+
<span style="padding-right: 5px;"><a href="#M000553">decrypt_pair</a></span>
|
92
|
+
<span style="padding-right: 5px;"><a href="#M000558">decrypt_stream</a></span>
|
93
|
+
<span style="padding-right: 5px;"><a href="#M000563">decrypt_string</a></span>
|
94
|
+
<span style="padding-right: 5px;"><a href="#M000554">encrypt_block</a></span>
|
95
|
+
<span style="padding-right: 5px;"><a href="#M000560">encrypt_file</a></span>
|
96
|
+
<span style="padding-right: 5px;"><a href="#M000552">encrypt_pair</a></span>
|
97
|
+
<span style="padding-right: 5px;"><a href="#M000557">encrypt_stream</a></span>
|
98
|
+
<span style="padding-right: 5px;"><a href="#M000562">encrypt_string</a></span>
|
99
|
+
<span style="padding-right: 5px;"><a href="#M000551">f</a></span>
|
100
|
+
<span style="padding-right: 5px;"><a href="#M000556">generate_initialization_vector</a></span>
|
101
|
+
<span style="padding-right: 5px;"><a href="#M000549">new</a></span>
|
102
|
+
<span style="padding-right: 5px;"><a href="#M000550">precalculate_S_table</a></span>
|
103
103
|
|
104
104
|
|
105
105
|
|
@@ -117,11 +117,11 @@ A simple two-way encryption class.
|
|
117
117
|
<div class="sectiontitle">Public Class methods</div>
|
118
118
|
<div class="method">
|
119
119
|
<div class="title">
|
120
|
-
<a name="
|
120
|
+
<a name="M000549"></a><b>new</b>(userKey)
|
121
121
|
</div>
|
122
122
|
<div class="sourcecode">
|
123
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
124
|
-
<div id="
|
123
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000549_source')" id="l_M000549_source">+</a> ]</p>
|
124
|
+
<div id="M000549_source" class="dyn-source">
|
125
125
|
<pre>
|
126
126
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 37</span>
|
127
127
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">userKey</span>)
|
@@ -166,11 +166,11 @@ A simple two-way encryption class.
|
|
166
166
|
<div class="sectiontitle">Public Instance methods</div>
|
167
167
|
<div class="method">
|
168
168
|
<div class="title">
|
169
|
-
<a name="
|
169
|
+
<a name="M000548"></a><b>block_size</b>()
|
170
170
|
</div>
|
171
171
|
<div class="sourcecode">
|
172
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
173
|
-
<div id="
|
172
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000548_source')" id="l_M000548_source">+</a> ]</p>
|
173
|
+
<div id="M000548_source" class="dyn-source">
|
174
174
|
<pre>
|
175
175
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 33</span>
|
176
176
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">block_size</span>
|
@@ -182,11 +182,11 @@ A simple two-way encryption class.
|
|
182
182
|
</div>
|
183
183
|
<div class="method">
|
184
184
|
<div class="title">
|
185
|
-
<a name="
|
185
|
+
<a name="M000559"></a><b>carefully_open_file</b>(filename, mode)
|
186
186
|
</div>
|
187
187
|
<div class="sourcecode">
|
188
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
189
|
-
<div id="
|
188
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000559_source')" id="l_M000559_source">+</a> ]</p>
|
189
|
+
<div id="M000559_source" class="dyn-source">
|
190
190
|
<pre>
|
191
191
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 217</span>
|
192
192
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">carefully_open_file</span>(<span class="ruby-identifier">filename</span>, <span class="ruby-identifier">mode</span>)
|
@@ -205,11 +205,11 @@ A simple two-way encryption class.
|
|
205
205
|
</div>
|
206
206
|
<div class="method">
|
207
207
|
<div class="title">
|
208
|
-
<a name="
|
208
|
+
<a name="M000555"></a><b>decrypt_block</b>(block)
|
209
209
|
</div>
|
210
210
|
<div class="sourcecode">
|
211
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
212
|
-
<div id="
|
211
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000555_source')" id="l_M000555_source">+</a> ]</p>
|
212
|
+
<div id="M000555_source" class="dyn-source">
|
213
213
|
<pre>
|
214
214
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 147</span>
|
215
215
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">decrypt_block</span>(<span class="ruby-identifier">block</span>)
|
@@ -224,11 +224,11 @@ A simple two-way encryption class.
|
|
224
224
|
</div>
|
225
225
|
<div class="method">
|
226
226
|
<div class="title">
|
227
|
-
<a name="
|
227
|
+
<a name="M000561"></a><b>decrypt_file</b>(cryptFilename, plainFilename)
|
228
228
|
</div>
|
229
229
|
<div class="sourcecode">
|
230
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
231
|
-
<div id="
|
230
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000561_source')" id="l_M000561_source">+</a> ]</p>
|
231
|
+
<div id="M000561_source" class="dyn-source">
|
232
232
|
<pre>
|
233
233
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 238</span>
|
234
234
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">decrypt_file</span>(<span class="ruby-identifier">cryptFilename</span>, <span class="ruby-identifier">plainFilename</span>)
|
@@ -244,11 +244,11 @@ A simple two-way encryption class.
|
|
244
244
|
</div>
|
245
245
|
<div class="method">
|
246
246
|
<div class="title">
|
247
|
-
<a name="
|
247
|
+
<a name="M000553"></a><b>decrypt_pair</b>(xl, xr)
|
248
248
|
</div>
|
249
249
|
<div class="sourcecode">
|
250
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
251
|
-
<div id="
|
250
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000553_source')" id="l_M000553_source">+</a> ]</p>
|
251
|
+
<div id="M000553_source" class="dyn-source">
|
252
252
|
<pre>
|
253
253
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 117</span>
|
254
254
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">decrypt_pair</span>(<span class="ruby-identifier">xl</span>, <span class="ruby-identifier">xr</span>)
|
@@ -278,11 +278,11 @@ A simple two-way encryption class.
|
|
278
278
|
</div>
|
279
279
|
<div class="method">
|
280
280
|
<div class="title">
|
281
|
-
<a name="
|
281
|
+
<a name="M000558"></a><b>decrypt_stream</b>(cryptStream, plainStream)
|
282
282
|
</div>
|
283
283
|
<div class="sourcecode">
|
284
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
285
|
-
<div id="
|
284
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000558_source')" id="l_M000558_source">+</a> ]</p>
|
285
|
+
<div id="M000558_source" class="dyn-source">
|
286
286
|
<pre>
|
287
287
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 199</span>
|
288
288
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">decrypt_stream</span>(<span class="ruby-identifier">cryptStream</span>, <span class="ruby-identifier">plainStream</span>)
|
@@ -307,11 +307,11 @@ A simple two-way encryption class.
|
|
307
307
|
</div>
|
308
308
|
<div class="method">
|
309
309
|
<div class="title">
|
310
|
-
<a name="
|
310
|
+
<a name="M000563"></a><b>decrypt_string</b>(cryptText)
|
311
311
|
</div>
|
312
312
|
<div class="sourcecode">
|
313
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
314
|
-
<div id="
|
313
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000563_source')" id="l_M000563_source">+</a> ]</p>
|
314
|
+
<div id="M000563_source" class="dyn-source">
|
315
315
|
<pre>
|
316
316
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 256</span>
|
317
317
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">decrypt_string</span>(<span class="ruby-identifier">cryptText</span>)
|
@@ -327,11 +327,11 @@ A simple two-way encryption class.
|
|
327
327
|
</div>
|
328
328
|
<div class="method">
|
329
329
|
<div class="title">
|
330
|
-
<a name="
|
330
|
+
<a name="M000554"></a><b>encrypt_block</b>(block)
|
331
331
|
</div>
|
332
332
|
<div class="sourcecode">
|
333
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
334
|
-
<div id="
|
333
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000554_source')" id="l_M000554_source">+</a> ]</p>
|
334
|
+
<div id="M000554_source" class="dyn-source">
|
335
335
|
<pre>
|
336
336
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 139</span>
|
337
337
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">encrypt_block</span>(<span class="ruby-identifier">block</span>)
|
@@ -346,11 +346,11 @@ A simple two-way encryption class.
|
|
346
346
|
</div>
|
347
347
|
<div class="method">
|
348
348
|
<div class="title">
|
349
|
-
<a name="
|
349
|
+
<a name="M000560"></a><b>encrypt_file</b>(plainFilename, cryptFilename)
|
350
350
|
</div>
|
351
351
|
<div class="sourcecode">
|
352
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
353
|
-
<div id="
|
352
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000560_source')" id="l_M000560_source">+</a> ]</p>
|
353
|
+
<div id="M000560_source" class="dyn-source">
|
354
354
|
<pre>
|
355
355
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 229</span>
|
356
356
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">encrypt_file</span>(<span class="ruby-identifier">plainFilename</span>, <span class="ruby-identifier">cryptFilename</span>)
|
@@ -366,11 +366,11 @@ A simple two-way encryption class.
|
|
366
366
|
</div>
|
367
367
|
<div class="method">
|
368
368
|
<div class="title">
|
369
|
-
<a name="
|
369
|
+
<a name="M000552"></a><b>encrypt_pair</b>(xl, xr)
|
370
370
|
</div>
|
371
371
|
<div class="sourcecode">
|
372
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
373
|
-
<div id="
|
372
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000552_source')" id="l_M000552_source">+</a> ]</p>
|
373
|
+
<div id="M000552_source" class="dyn-source">
|
374
374
|
<pre>
|
375
375
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 94</span>
|
376
376
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">encrypt_pair</span>(<span class="ruby-identifier">xl</span>, <span class="ruby-identifier">xr</span>)
|
@@ -400,11 +400,11 @@ A simple two-way encryption class.
|
|
400
400
|
</div>
|
401
401
|
<div class="method">
|
402
402
|
<div class="title">
|
403
|
-
<a name="
|
403
|
+
<a name="M000557"></a><b>encrypt_stream</b>(plainStream, cryptStream)
|
404
404
|
</div>
|
405
405
|
<div class="sourcecode">
|
406
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
407
|
-
<div id="
|
406
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000557_source')" id="l_M000557_source">+</a> ]</p>
|
407
|
+
<div id="M000557_source" class="dyn-source">
|
408
408
|
<pre>
|
409
409
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 168</span>
|
410
410
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">encrypt_stream</span>(<span class="ruby-identifier">plainStream</span>, <span class="ruby-identifier">cryptStream</span>)
|
@@ -442,11 +442,11 @@ A simple two-way encryption class.
|
|
442
442
|
</div>
|
443
443
|
<div class="method">
|
444
444
|
<div class="title">
|
445
|
-
<a name="
|
445
|
+
<a name="M000562"></a><b>encrypt_string</b>(plainText)
|
446
446
|
</div>
|
447
447
|
<div class="sourcecode">
|
448
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
449
|
-
<div id="
|
448
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000562_source')" id="l_M000562_source">+</a> ]</p>
|
449
|
+
<div id="M000562_source" class="dyn-source">
|
450
450
|
<pre>
|
451
451
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 247</span>
|
452
452
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">encrypt_string</span>(<span class="ruby-identifier">plainText</span>)
|
@@ -462,11 +462,11 @@ A simple two-way encryption class.
|
|
462
462
|
</div>
|
463
463
|
<div class="method">
|
464
464
|
<div class="title">
|
465
|
-
<a name="
|
465
|
+
<a name="M000551"></a><b>f</b>(longWord)
|
466
466
|
</div>
|
467
467
|
<div class="sourcecode">
|
468
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
469
|
-
<div id="
|
468
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000551_source')" id="l_M000551_source">+</a> ]</p>
|
469
|
+
<div id="M000551_source" class="dyn-source">
|
470
470
|
<pre>
|
471
471
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 88</span>
|
472
472
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">f</span>(<span class="ruby-identifier">longWord</span>)
|
@@ -480,20 +480,20 @@ A simple two-way encryption class.
|
|
480
480
|
</div>
|
481
481
|
<div class="method">
|
482
482
|
<div class="title">
|
483
|
-
<a name="
|
483
|
+
<a name="M000556"></a><b>generate_initialization_vector</b>(words)
|
484
484
|
</div>
|
485
485
|
<div class="description">
|
486
486
|
<p>
|
487
487
|
When this module is mixed in with an encryption class, the class must
|
488
488
|
provide three methods: <a
|
489
|
-
href="BiCrypt.html#
|
490
|
-
href="BiCrypt.html#
|
491
|
-
href="BiCrypt.html#
|
489
|
+
href="BiCrypt.html#M000554">encrypt_block</a>(block) and <a
|
490
|
+
href="BiCrypt.html#M000555">decrypt_block</a>(block) and <a
|
491
|
+
href="BiCrypt.html#M000548">block_size</a>()
|
492
492
|
</p>
|
493
493
|
</div>
|
494
494
|
<div class="sourcecode">
|
495
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
496
|
-
<div id="
|
495
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000556_source')" id="l_M000556_source">+</a> ]</p>
|
496
|
+
<div id="M000556_source" class="dyn-source">
|
497
497
|
<pre>
|
498
498
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 158</span>
|
499
499
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_initialization_vector</span>(<span class="ruby-identifier">words</span>)
|
@@ -510,11 +510,11 @@ href="BiCrypt.html#M000546">block_size</a>()
|
|
510
510
|
</div>
|
511
511
|
<div class="method">
|
512
512
|
<div class="title">
|
513
|
-
<a name="
|
513
|
+
<a name="M000550"></a><b>precalculate_S_table</b>()
|
514
514
|
</div>
|
515
515
|
<div class="sourcecode">
|
516
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
517
|
-
<div id="
|
516
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000550_source')" id="l_M000550_source">+</a> ]</p>
|
517
|
+
<div id="M000550_source" class="dyn-source">
|
518
518
|
<pre>
|
519
519
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 74</span>
|
520
520
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">precalculate_S_table</span>()
|