facets 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +1 -1
- data/CHANGES +25 -5
- data/MANIFEST +67 -34
- data/METADATA +2 -2
- data/NEWS +54 -46
- data/doc/news/NEWS-2.4.0 +52 -0
- data/doc/rdoc/core/classes/Array.html +198 -198
- data/doc/rdoc/core/classes/Binding.html +86 -192
- data/doc/rdoc/core/classes/Class.html +136 -136
- data/doc/rdoc/core/classes/Comparable.html +45 -45
- data/doc/rdoc/core/classes/Dir.html +64 -64
- data/doc/rdoc/core/classes/Enumerable.html +287 -281
- data/doc/rdoc/core/classes/Exception.html +16 -16
- data/doc/rdoc/core/classes/FalseClass.html +8 -8
- data/doc/rdoc/core/classes/File.html +100 -100
- data/doc/rdoc/core/classes/FileTest.html +8 -8
- data/doc/rdoc/core/classes/Float.html +32 -32
- data/doc/rdoc/core/classes/Friend.html +8 -8
- data/doc/rdoc/core/classes/Functor.html +12 -12
- data/doc/rdoc/core/classes/Hash.html +439 -847
- data/doc/rdoc/{more → core}/classes/Indexable.html +115 -115
- data/doc/rdoc/core/classes/InstanceVariables.html +88 -88
- data/doc/rdoc/core/classes/Integer.html +142 -142
- data/doc/rdoc/core/classes/Kernel.html +602 -600
- data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
- data/doc/rdoc/core/classes/MatchData.html +30 -30
- data/doc/rdoc/core/classes/Module.html +379 -327
- data/doc/rdoc/core/classes/NilClass.html +32 -32
- data/doc/rdoc/core/classes/Numeric.html +46 -46
- data/doc/rdoc/core/classes/Object.html +4 -4
- data/doc/rdoc/core/classes/Proc.html +46 -134
- data/doc/rdoc/core/classes/Range.html +60 -60
- data/doc/rdoc/core/classes/Regexp.html +28 -28
- data/doc/rdoc/{more → core}/classes/Stackable.html +38 -38
- data/doc/rdoc/core/classes/String.html +844 -504
- data/doc/rdoc/core/classes/Symbol.html +62 -62
- data/doc/rdoc/core/classes/Time.html +112 -112
- data/doc/rdoc/core/classes/TrueClass.html +8 -8
- data/doc/rdoc/core/classes/UnboundMethod.html +22 -22
- data/doc/rdoc/core/created.rid +1 -1
- data/doc/rdoc/core/files/lib/core/facets/array_rb.html +4 -1
- data/doc/rdoc/core/files/lib/core/facets/binding_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/boolean_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/class/methodize_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/class/pathize_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/class_rb.html +5 -1
- data/doc/rdoc/core/files/lib/core/facets/dir_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/{class/to_methodname_rb.html → enumerable/commonality_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/enumerable/entropy_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/{class/to_pathname_rb.html → enumerable/frequency_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/enumerable/probability_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/enumerable_rb.html +6 -2
- data/doc/rdoc/core/files/lib/core/facets/file_rb.html +2 -1
- data/doc/rdoc/core/files/lib/core/facets/hash_rb.html +7 -1
- data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/indexable_rb.html +2 -2
- data/doc/rdoc/core/files/lib/core/facets/kernel/require_all_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel/require_local_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/kernel_rb.html +15 -2
- data/doc/rdoc/core/files/lib/core/facets/module/integrate_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/module/methodize_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/module/module_load_rb.html +1 -1
- data/doc/rdoc/core/files/lib/core/facets/module/pathize_rb.html +5 -1
- data/doc/rdoc/core/files/lib/core/facets/module/redefine_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/redirect_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/rename_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module/revise_rb.html +8 -1
- data/doc/rdoc/core/files/lib/core/facets/module/wrap_method_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/module_rb.html +8 -5
- data/doc/rdoc/core/files/lib/core/facets/numeric_rb.html +2 -1
- data/doc/rdoc/core/files/lib/core/facets/proc_rb.html +3 -5
- data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/stackable_rb.html +3 -4
- data/doc/rdoc/core/files/lib/core/facets/string/each_word_rb.html +96 -0
- data/doc/rdoc/core/files/lib/core/facets/{module/clone_rb.html → string/methodize_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/{kernel/load_rb.html → string/pathize_rb.html} +4 -4
- data/doc/rdoc/core/files/lib/core/facets/string/word_wrap_rb.html +92 -0
- data/doc/rdoc/core/files/lib/core/facets/string/words_rb.html +1 -5
- data/doc/rdoc/core/files/lib/core/facets/string_rb.html +8 -3
- data/doc/rdoc/core/files/lib/core/facets/symbol_rb.html +2 -1
- data/doc/rdoc/core/fr_class_index.html +2 -3
- data/doc/rdoc/core/fr_file_index.html +36 -16
- data/doc/rdoc/core/fr_method_index.html +778 -784
- data/doc/rdoc/lore/created.rid +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 +28 -28
- data/doc/rdoc/more/classes/Association/Kernel.html +8 -8
- data/doc/rdoc/more/classes/Autoarray.html +12 -12
- data/doc/rdoc/more/classes/BBCode.html +34 -34
- data/doc/rdoc/more/classes/BaseX.html +16 -16
- data/doc/rdoc/more/classes/BiCrypt.html +67 -67
- data/doc/rdoc/more/classes/BigDuration.html +30 -30
- 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 +201 -0
- data/doc/rdoc/more/classes/Buildable.html +4 -4
- data/doc/rdoc/more/classes/BuildingBlock.html +32 -32
- data/doc/rdoc/more/classes/CLI.html +108 -0
- data/doc/rdoc/more/classes/CLI/Arguments.html +76 -76
- data/doc/rdoc/more/classes/CLI/Command.html +22 -22
- data/doc/rdoc/more/classes/CLI/NoCommandError.html +4 -4
- data/doc/rdoc/more/classes/CLI/NoOptionError.html +4 -4
- data/doc/rdoc/more/classes/CacheDecorator.html +21 -21
- data/doc/rdoc/more/classes/Capsule.html +41 -41
- data/doc/rdoc/more/classes/Chain.html +17 -17
- data/doc/rdoc/more/classes/Cloneable.html +4 -4
- data/doc/rdoc/more/classes/ConsoleUtils.html +18 -18
- data/doc/rdoc/more/classes/Coroutine.html +28 -28
- data/doc/rdoc/more/classes/Crypt.html +16 -16
- data/doc/rdoc/more/classes/CssFilter.html +45 -45
- data/doc/rdoc/more/classes/CssTree.html +8 -8
- data/doc/rdoc/more/classes/Dictionary.html +228 -228
- data/doc/rdoc/more/classes/DictionaryMatcher.html +38 -38
- data/doc/rdoc/more/classes/DictionaryMatcher/MatchData.html +4 -4
- data/doc/rdoc/more/classes/Downloader.html +56 -56
- data/doc/rdoc/more/classes/Duration.html +68 -68
- data/doc/rdoc/more/classes/Enumerable.html +44 -44
- 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/EnumerablePass.html +15 -15
- data/doc/rdoc/more/classes/Equatable.html +16 -16
- data/doc/rdoc/more/classes/EventHook.html +8 -8
- data/doc/rdoc/more/classes/Expirable.html +17 -17
- data/doc/rdoc/more/classes/FileList.html +125 -125
- data/doc/rdoc/more/classes/FileShell.html +147 -147
- data/doc/rdoc/more/classes/Fileable.html +14 -14
- data/doc/rdoc/more/classes/Fileable/DSL.html +41 -41
- data/doc/rdoc/more/classes/Hash.html +306 -14
- data/doc/rdoc/more/classes/Hash2Xml.html +4 -4
- data/doc/rdoc/more/classes/HtmlFilter.html +9 -9
- data/doc/rdoc/more/classes/IORedirect.html +19 -19
- data/doc/rdoc/more/classes/InfinityClass.html +36 -36
- data/doc/rdoc/more/classes/InfinityClass/Numeric.html +23 -23
- data/doc/rdoc/more/classes/Ini.html +37 -37
- data/doc/rdoc/more/classes/Instantiable.html +9 -9
- data/doc/rdoc/more/classes/Instantise.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/Kernel.html +77 -77
- data/doc/rdoc/more/classes/LRUCache.html +38 -38
- data/doc/rdoc/more/classes/LinkedList.html +68 -68
- data/doc/rdoc/more/classes/LinkedList/Node.html +4 -4
- data/doc/rdoc/{core → more}/classes/MissingArgument.html +1 -2
- data/doc/rdoc/more/classes/Module.html +171 -171
- 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 +19 -19
- data/doc/rdoc/more/classes/NullClass.html +24 -24
- data/doc/rdoc/more/classes/ObjectReflection.html +12 -12
- data/doc/rdoc/more/classes/OpEsc.html +5 -5
- data/doc/rdoc/more/classes/OpenCascade.html +4 -4
- data/doc/rdoc/more/classes/OpenCollection.html +8 -8
- data/doc/rdoc/more/classes/OpenHash.html +9 -9
- data/doc/rdoc/more/classes/OpenObject.html +95 -95
- data/doc/rdoc/more/classes/PQueue.html +84 -84
- data/doc/rdoc/more/classes/Paramix.html +11 -11
- data/doc/rdoc/more/classes/Paramix/Delegator.html +16 -16
- data/doc/rdoc/more/classes/PathList.html +8 -8
- data/doc/rdoc/more/classes/PathList/Finder.html +8 -8
- data/doc/rdoc/more/classes/Platform.html +46 -46
- data/doc/rdoc/more/classes/Pool.html +18 -18
- data/doc/rdoc/more/classes/Proc.html +48 -4
- data/doc/rdoc/more/classes/ProgressBar.html +52 -52
- data/doc/rdoc/more/classes/Prototype.html +28 -28
- data/doc/rdoc/more/classes/RWDelegator.html +16 -16
- data/doc/rdoc/more/classes/Random.html +9 -9
- 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/Recorder.html +16 -16
- data/doc/rdoc/more/classes/Reference.html +19 -19
- data/doc/rdoc/more/classes/Registerable.html +13 -13
- data/doc/rdoc/more/classes/Semaphore.html +36 -36
- data/doc/rdoc/more/classes/Settings.html +28 -28
- data/doc/rdoc/more/classes/Settings/Setting.html +13 -13
- data/doc/rdoc/more/classes/Settings/SettingCollection.html +4 -4
- data/doc/rdoc/more/classes/SimpleStringIO.html +8 -8
- data/doc/rdoc/more/classes/Snapshot.html +16 -16
- data/doc/rdoc/more/classes/Snapshot/ValueHolder.html +12 -12
- data/doc/rdoc/more/classes/String/Style.html +113 -113
- data/doc/rdoc/{core → more}/classes/String/Words.html +78 -78
- data/doc/rdoc/more/classes/Struct.html +8 -8
- data/doc/rdoc/more/classes/SyncArray.html +4 -4
- data/doc/rdoc/more/classes/SyncHash.html +4 -4
- data/doc/rdoc/more/classes/SyncHash/Delegator.html +28 -28
- data/doc/rdoc/more/classes/SyncHash/Inheritor.html +28 -28
- 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/TracePoint.html +64 -62
- 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/UploadUtils.html +49 -49
- data/doc/rdoc/more/classes/VersionNumber.html +53 -53
- data/doc/rdoc/more/classes/Weekdays.html +28 -28
- data/doc/rdoc/more/classes/XOXO.html +9 -9
- data/doc/rdoc/more/classes/ZipUtils.html +58 -58
- data/doc/rdoc/more/classes/ZipUtils/DryRun.html +28 -28
- data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +28 -28
- data/doc/rdoc/more/classes/ZipUtils/Verbose.html +28 -28
- data/doc/rdoc/more/created.rid +1 -1
- data/doc/rdoc/more/files/lib/more/facets/ansicode_rb.html +1 -1
- data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/binding/opvars_rb.html +2 -2
- data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/hash/stringify_keys_rb.html +2 -2
- data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/hash/symbolize_keys_rb.html +2 -2
- data/doc/rdoc/{core/files/lib/core/facets/proc → more/files/lib/more/facets}/partial_rb.html +8 -7
- data/doc/rdoc/more/files/lib/more/facets/snapshot_rb.html +2 -2
- data/doc/rdoc/more/files/lib/more/facets/string/words_rb.html +96 -0
- data/doc/rdoc/more/files/lib/more/facets/tracepoint_rb.html +13 -8
- data/doc/rdoc/more/fr_class_index.html +4 -2
- data/doc/rdoc/more/fr_file_index.html +9 -2
- data/doc/rdoc/more/fr_method_index.html +1013 -1009
- data/doc/ri/CLI/cdesc-CLI.yaml +7 -2
- data/doc/ri/Enumerable/probability-i.yaml +1 -1
- data/doc/ri/Module/append_features-i.yaml +4 -3
- data/doc/ri/Module/cdesc-Module.yaml +4 -3
- data/doc/ri/Module/methodize-i.yaml +14 -0
- data/doc/ri/Module/redefine_method-i.yaml +1 -1
- data/doc/ri/Module/redirect_method-i.yaml +3 -1
- data/doc/ri/Module/rename_method-i.yaml +1 -1
- data/doc/ri/created.rid +1 -1
- data/lib/core/facets/array.rb +3 -0
- data/lib/core/facets/binding.rb +0 -1
- data/lib/core/facets/class.rb +4 -4
- data/lib/core/facets/class/{to_methodname.rb → methodize.rb} +5 -2
- data/lib/core/facets/class/pathize.rb +14 -0
- data/lib/core/facets/enumerable.rb +5 -2
- data/lib/core/facets/enumerable/commonality.rb +33 -0
- data/lib/core/facets/enumerable/entropy.rb +37 -0
- data/lib/core/facets/enumerable/frequency.rb +18 -0
- data/lib/core/facets/enumerable/probability.rb +1 -98
- data/lib/core/facets/file.rb +1 -1
- data/lib/core/facets/hash.rb +6 -0
- data/lib/{more → core}/facets/indexable.rb +0 -0
- data/lib/core/facets/kernel.rb +15 -1
- data/lib/core/facets/kernel/require_all.rb +21 -0
- data/lib/core/facets/kernel/{load.rb → require_local.rb} +6 -23
- data/lib/core/facets/module.rb +7 -3
- data/lib/core/facets/module/integrate.rb +2 -0
- data/lib/core/facets/module/methodize.rb +14 -0
- data/lib/core/facets/module/pathize.rb +10 -7
- data/lib/core/facets/module/redefine_method.rb +35 -0
- data/lib/core/facets/module/redirect_method.rb +45 -0
- data/lib/core/facets/module/rename_method.rb +20 -0
- data/lib/core/facets/module/revise.rb +7 -113
- data/lib/core/facets/module/wrap_method.rb +28 -0
- data/lib/core/facets/numeric.rb +1 -1
- data/lib/core/facets/proc.rb +2 -3
- data/lib/{more → core}/facets/stackable.rb +0 -0
- data/lib/core/facets/string.rb +8 -6
- data/lib/core/facets/string/each_word.rb +13 -0
- data/lib/core/facets/string/methodize.rb +12 -0
- data/lib/core/facets/string/pathize.rb +12 -0
- data/lib/core/facets/string/word_wrap.rb +34 -0
- data/lib/core/facets/string/words.rb +6 -167
- data/lib/core/facets/symbol.rb +1 -0
- data/lib/more/facets/ansicode.rb +4 -4
- data/lib/{core → more}/facets/binding/opvars.rb +0 -0
- data/lib/{core → more}/facets/hash/stringify_keys.rb +0 -0
- data/lib/{core → more}/facets/hash/symbolize_keys.rb +5 -6
- data/lib/{core/facets/proc → more/facets}/partial.rb +0 -0
- data/lib/more/facets/string/words.rb +173 -0
- data/test/core/dir/test_multiglob.rb +1 -0
- data/test/core/dir/test_recurse.rb +1 -0
- data/test/core/enumerable/test_commonality.rb +15 -0
- data/test/core/enumerable/test_entropy.rb +15 -0
- data/test/core/enumerable/test_frequency.rb +11 -0
- data/test/core/enumerable/test_probability.rb +1 -34
- data/test/core/string/test_each_word.rb +14 -0
- data/test/core/string/test_fold.rb +1 -1
- data/test/core/string/test_word_wrap.rb +35 -0
- data/test/core/string/test_words.rb +12 -61
- data/test/more/test_command.rb +7 -9
- data/test/more/test_paramix.rb +4 -1
- data/test/{core/proc → more}/test_partial.rb +1 -1
- metadata +75 -38
- data/doc/rdoc/core/classes/Module/CloneExtensions.html +0 -287
- data/doc/ri/Module/CloneExtensions/cdesc-CloneExtensions.yaml +0 -20
- data/doc/ri/Module/CloneExtensions/clone_removing-i.yaml +0 -14
- data/doc/ri/Module/CloneExtensions/clone_renaming-i.yaml +0 -14
- data/doc/ri/Module/CloneExtensions/clone_using-i.yaml +0 -14
- data/lib/core/facets/class/to_pathname.rb +0 -12
- data/lib/core/facets/module/clone.rb +0 -57
- data/test/core/module/test_clone.rb +0 -45
@@ -94,9 +94,9 @@ An Array that automatically expands dimensions as needed.
|
|
94
94
|
|
95
95
|
<div class="sectiontitle">Methods</div>
|
96
96
|
<ul>
|
97
|
-
<li><a href="#
|
98
|
-
<li><a href="#
|
99
|
-
<li><a href="#
|
97
|
+
<li><a href="#M000104">[]</a></li>
|
98
|
+
<li><a href="#M000105">[]=</a></li>
|
99
|
+
<li><a href="#M000103">new</a></li>
|
100
100
|
</ul>
|
101
101
|
|
102
102
|
|
@@ -107,11 +107,11 @@ An Array that automatically expands dimensions as needed.
|
|
107
107
|
<div class="sectiontitle">Public Class methods</div>
|
108
108
|
<div class="method">
|
109
109
|
<div class="title">
|
110
|
-
<a name="
|
110
|
+
<a name="M000103"></a><b>new</b>(size=0, default=nil, update = nil, update_index = nil)
|
111
111
|
</div>
|
112
112
|
<div class="sourcecode">
|
113
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
114
|
-
<div id="
|
113
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000103_source')" id="l_M000103_source">show source</a> ]</p>
|
114
|
+
<div id="M000103_source" class="dyn-source">
|
115
115
|
<pre>
|
116
116
|
<span class="ruby-comment cmt"># File lib/more/facets/autoarray.rb, line 44</span>
|
117
117
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">size</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">default</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">update</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">update_index</span> = <span class="ruby-keyword kw">nil</span>)
|
@@ -125,11 +125,11 @@ An Array that automatically expands dimensions as needed.
|
|
125
125
|
<div class="sectiontitle">Public Instance methods</div>
|
126
126
|
<div class="method">
|
127
127
|
<div class="title">
|
128
|
-
<a name="
|
128
|
+
<a name="M000104"></a><b>[]</b>(k)
|
129
129
|
</div>
|
130
130
|
<div class="sourcecode">
|
131
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
132
|
-
<div id="
|
131
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000104_source')" id="l_M000104_source">show source</a> ]</p>
|
132
|
+
<div id="M000104_source" class="dyn-source">
|
133
133
|
<pre>
|
134
134
|
<span class="ruby-comment cmt"># File lib/more/facets/autoarray.rb, line 49</span>
|
135
135
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">k</span>)
|
@@ -145,11 +145,11 @@ An Array that automatically expands dimensions as needed.
|
|
145
145
|
</div>
|
146
146
|
<div class="method">
|
147
147
|
<div class="title">
|
148
|
-
<a name="
|
148
|
+
<a name="M000105"></a><b>[]=</b>(k, v)
|
149
149
|
</div>
|
150
150
|
<div class="sourcecode">
|
151
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
152
|
-
<div id="
|
151
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000105_source')" id="l_M000105_source">show source</a> ]</p>
|
152
|
+
<div id="M000105_source" class="dyn-source">
|
153
153
|
<pre>
|
154
154
|
<span class="ruby-comment cmt"># File lib/more/facets/autoarray.rb, line 57</span>
|
155
155
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span>)
|
@@ -97,14 +97,14 @@ href="BBCode.html">BBCode</a> almost freely ;)
|
|
97
97
|
|
98
98
|
<div class="sectiontitle">Methods</div>
|
99
99
|
<ul>
|
100
|
-
<li><a href="#
|
101
|
-
<li><a href="#
|
102
|
-
<li><a href="#
|
103
|
-
<li><a href="#
|
104
|
-
<li><a href="#
|
105
|
-
<li><a href="#
|
106
|
-
<li><a href="#
|
107
|
-
<li><a href="#
|
100
|
+
<li><a href="#M000907">ansi</a></li>
|
101
|
+
<li><a href="#M000909">ansi_to_bbcode</a></li>
|
102
|
+
<li><a href="#M000913">ansi_to_html</a></li>
|
103
|
+
<li><a href="#M000910">bbcode_to_ansi</a></li>
|
104
|
+
<li><a href="#M000912">bbcode_to_html</a></li>
|
105
|
+
<li><a href="#M000914">html_to_ansi</a></li>
|
106
|
+
<li><a href="#M000911">html_to_bbcode</a></li>
|
107
|
+
<li><a href="#M000908">strip_bbcode</a></li>
|
108
108
|
</ul>
|
109
109
|
|
110
110
|
|
@@ -154,7 +154,7 @@ ANSInames => <a href="BBCode.html">BBCode</a> LUT
|
|
154
154
|
<div class="sectiontitle">Public Class methods</div>
|
155
155
|
<div class="method">
|
156
156
|
<div class="title">
|
157
|
-
<a name="
|
157
|
+
<a name="M000907"></a><b>ansi</b>(colorname)
|
158
158
|
</div>
|
159
159
|
<div class="description">
|
160
160
|
<p>
|
@@ -162,8 +162,8 @@ Returns the ANSI sequence for given color, if existant
|
|
162
162
|
</p>
|
163
163
|
</div>
|
164
164
|
<div class="sourcecode">
|
165
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
166
|
-
<div id="
|
165
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000907_source')" id="l_M000907_source">show source</a> ]</p>
|
166
|
+
<div id="M000907_source" class="dyn-source">
|
167
167
|
<pre>
|
168
168
|
<span class="ruby-comment cmt"># File lib/more/facets/bbcode.rb, line 116</span>
|
169
169
|
<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>)
|
@@ -176,17 +176,17 @@ Returns the ANSI sequence for given color, if existant
|
|
176
176
|
</div>
|
177
177
|
<div class="method">
|
178
178
|
<div class="title">
|
179
|
-
<a name="
|
179
|
+
<a name="M000909"></a><b>ansi_to_bbcode</b>(string)
|
180
180
|
</div>
|
181
181
|
<div class="description">
|
182
182
|
<p>
|
183
|
-
Returns the string with all <a href="BBCode.html#
|
183
|
+
Returns the string with all <a href="BBCode.html#M000907">ansi</a> escape
|
184
184
|
sequences converted to BBCodes
|
185
185
|
</p>
|
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('M000909_source')" id="l_M000909_source">show source</a> ]</p>
|
189
|
+
<div id="M000909_source" class="dyn-source">
|
190
190
|
<pre>
|
191
191
|
<span class="ruby-comment cmt"># File lib/more/facets/bbcode.rb, line 129</span>
|
192
192
|
<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>)
|
@@ -237,7 +237,7 @@ sequences converted to BBCodes
|
|
237
237
|
</div>
|
238
238
|
<div class="method">
|
239
239
|
<div class="title">
|
240
|
-
<a name="
|
240
|
+
<a name="M000913"></a><b>ansi_to_html</b>(string)
|
241
241
|
</div>
|
242
242
|
<div class="description">
|
243
243
|
<p>
|
@@ -246,8 +246,8 @@ ANSI code sequences converted to XHTML markup.
|
|
246
246
|
</p>
|
247
247
|
</div>
|
248
248
|
<div class="sourcecode">
|
249
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
250
|
-
<div id="
|
249
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000913_source')" id="l_M000913_source">show source</a> ]</p>
|
250
|
+
<div id="M000913_source" class="dyn-source">
|
251
251
|
<pre>
|
252
252
|
<span class="ruby-comment cmt"># File lib/more/facets/bbcode.rb, line 347</span>
|
253
253
|
<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>)
|
@@ -262,7 +262,7 @@ ANSI code sequences converted to XHTML markup.
|
|
262
262
|
</div>
|
263
263
|
<div class="method">
|
264
264
|
<div class="title">
|
265
|
-
<a name="
|
265
|
+
<a name="M000910"></a><b>bbcode_to_ansi</b>(string, usecolors = true)
|
266
266
|
</div>
|
267
267
|
<div class="description">
|
268
268
|
<p>
|
@@ -272,8 +272,8 @@ converted to ANSI code sequences / aligned with spaces to specified width.
|
|
272
272
|
</p>
|
273
273
|
</div>
|
274
274
|
<div class="sourcecode">
|
275
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
276
|
-
<div id="
|
275
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000910_source')" id="l_M000910_source">show source</a> ]</p>
|
276
|
+
<div id="M000910_source" class="dyn-source">
|
277
277
|
<pre>
|
278
278
|
<span class="ruby-comment cmt"># File lib/more/facets/bbcode.rb, line 175</span>
|
279
279
|
<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>)
|
@@ -327,7 +327,7 @@ converted to ANSI code sequences / aligned with spaces to specified width.
|
|
327
327
|
</div>
|
328
328
|
<div class="method">
|
329
329
|
<div class="title">
|
330
|
-
<a name="
|
330
|
+
<a name="M000912"></a><b>bbcode_to_html</b>(string)
|
331
331
|
</div>
|
332
332
|
<div class="description">
|
333
333
|
<p>
|
@@ -337,8 +337,8 @@ XHTML markups.
|
|
337
337
|
</p>
|
338
338
|
</div>
|
339
339
|
<div class="sourcecode">
|
340
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
341
|
-
<div id="
|
340
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000912_source')" id="l_M000912_source">show source</a> ]</p>
|
341
|
+
<div id="M000912_source" class="dyn-source">
|
342
342
|
<pre>
|
343
343
|
<span class="ruby-comment cmt"># File lib/more/facets/bbcode.rb, line 282</span>
|
344
344
|
<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>)
|
@@ -406,7 +406,7 @@ XHTML markups.
|
|
406
406
|
</div>
|
407
407
|
<div class="method">
|
408
408
|
<div class="title">
|
409
|
-
<a name="
|
409
|
+
<a name="M000914"></a><b>html_to_ansi</b>(string)
|
410
410
|
</div>
|
411
411
|
<div class="description">
|
412
412
|
<p>
|
@@ -414,8 +414,8 @@ Returns the (X)HTML markup code as ANSI sequences
|
|
414
414
|
</p>
|
415
415
|
</div>
|
416
416
|
<div class="sourcecode">
|
417
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
418
|
-
<div id="
|
417
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000914_source')" id="l_M000914_source">show source</a> ]</p>
|
418
|
+
<div id="M000914_source" class="dyn-source">
|
419
419
|
<pre>
|
420
420
|
<span class="ruby-comment cmt"># File lib/more/facets/bbcode.rb, line 355</span>
|
421
421
|
<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>)
|
@@ -430,7 +430,7 @@ Returns the (X)HTML markup code as ANSI sequences
|
|
430
430
|
</div>
|
431
431
|
<div class="method">
|
432
432
|
<div class="title">
|
433
|
-
<a name="
|
433
|
+
<a name="M000911"></a><b>html_to_bbcode</b>(string)
|
434
434
|
</div>
|
435
435
|
<div class="description">
|
436
436
|
<p>
|
@@ -440,8 +440,8 @@ href="BBCode.html">BBCode</a>
|
|
440
440
|
</p>
|
441
441
|
</div>
|
442
442
|
<div class="sourcecode">
|
443
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
444
|
-
<div id="
|
443
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000911_source')" id="l_M000911_source">show source</a> ]</p>
|
444
|
+
<div id="M000911_source" class="dyn-source">
|
445
445
|
<pre>
|
446
446
|
<span class="ruby-comment cmt"># File lib/more/facets/bbcode.rb, line 223</span>
|
447
447
|
<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>)
|
@@ -505,17 +505,17 @@ href="BBCode.html">BBCode</a>
|
|
505
505
|
</div>
|
506
506
|
<div class="method">
|
507
507
|
<div class="title">
|
508
|
-
<a name="
|
508
|
+
<a name="M000908"></a><b>strip_bbcode</b>(string)
|
509
509
|
</div>
|
510
510
|
<div class="description">
|
511
511
|
<p>
|
512
|
-
— <a href="BBCode.html#
|
512
|
+
— <a href="BBCode.html#M000908">strip_bbcode</a>( string ) Will strip
|
513
513
|
any <a href="BBCode.html">BBCode</a> tags from the given string.
|
514
514
|
</p>
|
515
515
|
</div>
|
516
516
|
<div class="sourcecode">
|
517
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
518
|
-
<div id="
|
517
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000908_source')" id="l_M000908_source">show source</a> ]</p>
|
518
|
+
<div id="M000908_source" class="dyn-source">
|
519
519
|
<pre>
|
520
520
|
<span class="ruby-comment cmt"># File lib/more/facets/bbcode.rb, line 123</span>
|
521
521
|
<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>)
|
@@ -80,10 +80,10 @@ Object
|
|
80
80
|
|
81
81
|
<div class="sectiontitle">Methods</div>
|
82
82
|
<ul>
|
83
|
-
<li><a href="#
|
84
|
-
<li><a href="#
|
85
|
-
<li><a href="#
|
86
|
-
<li><a href="#
|
83
|
+
<li><a href="#M000638">convert_base</a></li>
|
84
|
+
<li><a href="#M000637">decode</a></li>
|
85
|
+
<li><a href="#M000636">encode</a></li>
|
86
|
+
<li><a href="#M000635">new</a></li>
|
87
87
|
</ul>
|
88
88
|
|
89
89
|
|
@@ -112,11 +112,11 @@ Object
|
|
112
112
|
<div class="sectiontitle">Public Class methods</div>
|
113
113
|
<div class="method">
|
114
114
|
<div class="title">
|
115
|
-
<a name="
|
115
|
+
<a name="M000635"></a><b>new</b>(chars=BASE62)
|
116
116
|
</div>
|
117
117
|
<div class="sourcecode">
|
118
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
119
|
-
<div id="
|
118
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000635_source')" id="l_M000635_source">show source</a> ]</p>
|
119
|
+
<div id="M000635_source" class="dyn-source">
|
120
120
|
<pre>
|
121
121
|
<span class="ruby-comment cmt"># File lib/more/facets/basex.rb, line 7</span>
|
122
122
|
<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>)
|
@@ -131,11 +131,11 @@ Object
|
|
131
131
|
<div class="sectiontitle">Public Instance methods</div>
|
132
132
|
<div class="method">
|
133
133
|
<div class="title">
|
134
|
-
<a name="
|
134
|
+
<a name="M000638"></a><b>convert_base</b>(digits, from_base, to_base)
|
135
135
|
</div>
|
136
136
|
<div class="sourcecode">
|
137
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
138
|
-
<div id="
|
137
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000638_source')" id="l_M000638_source">show source</a> ]</p>
|
138
|
+
<div id="M000638_source" class="dyn-source">
|
139
139
|
<pre>
|
140
140
|
<span class="ruby-comment cmt"># File lib/more/facets/basex.rb, line 25</span>
|
141
141
|
<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>)
|
@@ -154,11 +154,11 @@ Object
|
|
154
154
|
</div>
|
155
155
|
<div class="method">
|
156
156
|
<div class="title">
|
157
|
-
<a name="
|
157
|
+
<a name="M000637"></a><b>decode</b>(encoded)
|
158
158
|
</div>
|
159
159
|
<div class="sourcecode">
|
160
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
161
|
-
<div id="
|
160
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000637_source')" id="l_M000637_source">show source</a> ]</p>
|
161
|
+
<div id="M000637_source" class="dyn-source">
|
162
162
|
<pre>
|
163
163
|
<span class="ruby-comment cmt"># File lib/more/facets/basex.rb, line 19</span>
|
164
164
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">decode</span>(<span class="ruby-identifier">encoded</span>)
|
@@ -172,11 +172,11 @@ Object
|
|
172
172
|
</div>
|
173
173
|
<div class="method">
|
174
174
|
<div class="title">
|
175
|
-
<a name="
|
175
|
+
<a name="M000636"></a><b>encode</b>(byte_string)
|
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('M000636_source')" id="l_M000636_source">show source</a> ]</p>
|
179
|
+
<div id="M000636_source" class="dyn-source">
|
180
180
|
<pre>
|
181
181
|
<span class="ruby-comment cmt"># File lib/more/facets/basex.rb, line 13</span>
|
182
182
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">encode</span>(<span class="ruby-identifier">byte_string</span>)
|
@@ -85,22 +85,22 @@ A simple two-way encryption class.
|
|
85
85
|
|
86
86
|
<div class="sectiontitle">Methods</div>
|
87
87
|
<ul>
|
88
|
-
<li><a href="#
|
89
|
-
<li><a href="#
|
90
|
-
<li><a href="#
|
91
|
-
<li><a href="#
|
92
|
-
<li><a href="#
|
93
|
-
<li><a href="#
|
94
|
-
<li><a href="#
|
95
|
-
<li><a href="#
|
96
|
-
<li><a href="#
|
97
|
-
<li><a href="#
|
98
|
-
<li><a href="#
|
99
|
-
<li><a href="#
|
100
|
-
<li><a href="#
|
101
|
-
<li><a href="#
|
102
|
-
<li><a href="#
|
103
|
-
<li><a href="#
|
88
|
+
<li><a href="#M000483">block_size</a></li>
|
89
|
+
<li><a href="#M000494">carefully_open_file</a></li>
|
90
|
+
<li><a href="#M000490">decrypt_block</a></li>
|
91
|
+
<li><a href="#M000496">decrypt_file</a></li>
|
92
|
+
<li><a href="#M000488">decrypt_pair</a></li>
|
93
|
+
<li><a href="#M000493">decrypt_stream</a></li>
|
94
|
+
<li><a href="#M000498">decrypt_string</a></li>
|
95
|
+
<li><a href="#M000489">encrypt_block</a></li>
|
96
|
+
<li><a href="#M000495">encrypt_file</a></li>
|
97
|
+
<li><a href="#M000487">encrypt_pair</a></li>
|
98
|
+
<li><a href="#M000492">encrypt_stream</a></li>
|
99
|
+
<li><a href="#M000497">encrypt_string</a></li>
|
100
|
+
<li><a href="#M000486">f</a></li>
|
101
|
+
<li><a href="#M000491">generate_initialization_vector</a></li>
|
102
|
+
<li><a href="#M000484">new</a></li>
|
103
|
+
<li><a href="#M000485">precalculate_S_table</a></li>
|
104
104
|
</ul>
|
105
105
|
|
106
106
|
|
@@ -119,11 +119,11 @@ A simple two-way encryption class.
|
|
119
119
|
<div class="sectiontitle">Public Class methods</div>
|
120
120
|
<div class="method">
|
121
121
|
<div class="title">
|
122
|
-
<a name="
|
122
|
+
<a name="M000484"></a><b>new</b>(userKey)
|
123
123
|
</div>
|
124
124
|
<div class="sourcecode">
|
125
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
126
|
-
<div id="
|
125
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000484_source')" id="l_M000484_source">show source</a> ]</p>
|
126
|
+
<div id="M000484_source" class="dyn-source">
|
127
127
|
<pre>
|
128
128
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 37</span>
|
129
129
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">userKey</span>)
|
@@ -168,11 +168,11 @@ A simple two-way encryption class.
|
|
168
168
|
<div class="sectiontitle">Public Instance methods</div>
|
169
169
|
<div class="method">
|
170
170
|
<div class="title">
|
171
|
-
<a name="
|
171
|
+
<a name="M000483"></a><b>block_size</b>()
|
172
172
|
</div>
|
173
173
|
<div class="sourcecode">
|
174
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
175
|
-
<div id="
|
174
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000483_source')" id="l_M000483_source">show source</a> ]</p>
|
175
|
+
<div id="M000483_source" class="dyn-source">
|
176
176
|
<pre>
|
177
177
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 33</span>
|
178
178
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">block_size</span>
|
@@ -184,11 +184,11 @@ A simple two-way encryption class.
|
|
184
184
|
</div>
|
185
185
|
<div class="method">
|
186
186
|
<div class="title">
|
187
|
-
<a name="
|
187
|
+
<a name="M000494"></a><b>carefully_open_file</b>(filename, mode)
|
188
188
|
</div>
|
189
189
|
<div class="sourcecode">
|
190
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
191
|
-
<div id="
|
190
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000494_source')" id="l_M000494_source">show source</a> ]</p>
|
191
|
+
<div id="M000494_source" class="dyn-source">
|
192
192
|
<pre>
|
193
193
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 217</span>
|
194
194
|
<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>)
|
@@ -207,11 +207,11 @@ A simple two-way encryption class.
|
|
207
207
|
</div>
|
208
208
|
<div class="method">
|
209
209
|
<div class="title">
|
210
|
-
<a name="
|
210
|
+
<a name="M000490"></a><b>decrypt_block</b>(block)
|
211
211
|
</div>
|
212
212
|
<div class="sourcecode">
|
213
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
214
|
-
<div id="
|
213
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000490_source')" id="l_M000490_source">show source</a> ]</p>
|
214
|
+
<div id="M000490_source" class="dyn-source">
|
215
215
|
<pre>
|
216
216
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 147</span>
|
217
217
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">decrypt_block</span>(<span class="ruby-identifier">block</span>)
|
@@ -226,11 +226,11 @@ A simple two-way encryption class.
|
|
226
226
|
</div>
|
227
227
|
<div class="method">
|
228
228
|
<div class="title">
|
229
|
-
<a name="
|
229
|
+
<a name="M000496"></a><b>decrypt_file</b>(cryptFilename, plainFilename)
|
230
230
|
</div>
|
231
231
|
<div class="sourcecode">
|
232
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
233
|
-
<div id="
|
232
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000496_source')" id="l_M000496_source">show source</a> ]</p>
|
233
|
+
<div id="M000496_source" class="dyn-source">
|
234
234
|
<pre>
|
235
235
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 238</span>
|
236
236
|
<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>)
|
@@ -246,11 +246,11 @@ A simple two-way encryption class.
|
|
246
246
|
</div>
|
247
247
|
<div class="method">
|
248
248
|
<div class="title">
|
249
|
-
<a name="
|
249
|
+
<a name="M000488"></a><b>decrypt_pair</b>(xl, xr)
|
250
250
|
</div>
|
251
251
|
<div class="sourcecode">
|
252
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
253
|
-
<div id="
|
252
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000488_source')" id="l_M000488_source">show source</a> ]</p>
|
253
|
+
<div id="M000488_source" class="dyn-source">
|
254
254
|
<pre>
|
255
255
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 117</span>
|
256
256
|
<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>)
|
@@ -280,11 +280,11 @@ A simple two-way encryption class.
|
|
280
280
|
</div>
|
281
281
|
<div class="method">
|
282
282
|
<div class="title">
|
283
|
-
<a name="
|
283
|
+
<a name="M000493"></a><b>decrypt_stream</b>(cryptStream, plainStream)
|
284
284
|
</div>
|
285
285
|
<div class="sourcecode">
|
286
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
287
|
-
<div id="
|
286
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000493_source')" id="l_M000493_source">show source</a> ]</p>
|
287
|
+
<div id="M000493_source" class="dyn-source">
|
288
288
|
<pre>
|
289
289
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 199</span>
|
290
290
|
<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>)
|
@@ -309,11 +309,11 @@ A simple two-way encryption class.
|
|
309
309
|
</div>
|
310
310
|
<div class="method">
|
311
311
|
<div class="title">
|
312
|
-
<a name="
|
312
|
+
<a name="M000498"></a><b>decrypt_string</b>(cryptText)
|
313
313
|
</div>
|
314
314
|
<div class="sourcecode">
|
315
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
316
|
-
<div id="
|
315
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000498_source')" id="l_M000498_source">show source</a> ]</p>
|
316
|
+
<div id="M000498_source" class="dyn-source">
|
317
317
|
<pre>
|
318
318
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 256</span>
|
319
319
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">decrypt_string</span>(<span class="ruby-identifier">cryptText</span>)
|
@@ -329,11 +329,11 @@ A simple two-way encryption class.
|
|
329
329
|
</div>
|
330
330
|
<div class="method">
|
331
331
|
<div class="title">
|
332
|
-
<a name="
|
332
|
+
<a name="M000489"></a><b>encrypt_block</b>(block)
|
333
333
|
</div>
|
334
334
|
<div class="sourcecode">
|
335
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
336
|
-
<div id="
|
335
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000489_source')" id="l_M000489_source">show source</a> ]</p>
|
336
|
+
<div id="M000489_source" class="dyn-source">
|
337
337
|
<pre>
|
338
338
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 139</span>
|
339
339
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">encrypt_block</span>(<span class="ruby-identifier">block</span>)
|
@@ -348,11 +348,11 @@ A simple two-way encryption class.
|
|
348
348
|
</div>
|
349
349
|
<div class="method">
|
350
350
|
<div class="title">
|
351
|
-
<a name="
|
351
|
+
<a name="M000495"></a><b>encrypt_file</b>(plainFilename, cryptFilename)
|
352
352
|
</div>
|
353
353
|
<div class="sourcecode">
|
354
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
355
|
-
<div id="
|
354
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000495_source')" id="l_M000495_source">show source</a> ]</p>
|
355
|
+
<div id="M000495_source" class="dyn-source">
|
356
356
|
<pre>
|
357
357
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 229</span>
|
358
358
|
<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>)
|
@@ -368,11 +368,11 @@ A simple two-way encryption class.
|
|
368
368
|
</div>
|
369
369
|
<div class="method">
|
370
370
|
<div class="title">
|
371
|
-
<a name="
|
371
|
+
<a name="M000487"></a><b>encrypt_pair</b>(xl, xr)
|
372
372
|
</div>
|
373
373
|
<div class="sourcecode">
|
374
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
375
|
-
<div id="
|
374
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000487_source')" id="l_M000487_source">show source</a> ]</p>
|
375
|
+
<div id="M000487_source" class="dyn-source">
|
376
376
|
<pre>
|
377
377
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 94</span>
|
378
378
|
<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>)
|
@@ -402,11 +402,11 @@ A simple two-way encryption class.
|
|
402
402
|
</div>
|
403
403
|
<div class="method">
|
404
404
|
<div class="title">
|
405
|
-
<a name="
|
405
|
+
<a name="M000492"></a><b>encrypt_stream</b>(plainStream, cryptStream)
|
406
406
|
</div>
|
407
407
|
<div class="sourcecode">
|
408
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
409
|
-
<div id="
|
408
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000492_source')" id="l_M000492_source">show source</a> ]</p>
|
409
|
+
<div id="M000492_source" class="dyn-source">
|
410
410
|
<pre>
|
411
411
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 168</span>
|
412
412
|
<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>)
|
@@ -444,11 +444,11 @@ A simple two-way encryption class.
|
|
444
444
|
</div>
|
445
445
|
<div class="method">
|
446
446
|
<div class="title">
|
447
|
-
<a name="
|
447
|
+
<a name="M000497"></a><b>encrypt_string</b>(plainText)
|
448
448
|
</div>
|
449
449
|
<div class="sourcecode">
|
450
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
451
|
-
<div id="
|
450
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000497_source')" id="l_M000497_source">show source</a> ]</p>
|
451
|
+
<div id="M000497_source" class="dyn-source">
|
452
452
|
<pre>
|
453
453
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 247</span>
|
454
454
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">encrypt_string</span>(<span class="ruby-identifier">plainText</span>)
|
@@ -464,11 +464,11 @@ A simple two-way encryption class.
|
|
464
464
|
</div>
|
465
465
|
<div class="method">
|
466
466
|
<div class="title">
|
467
|
-
<a name="
|
467
|
+
<a name="M000486"></a><b>f</b>(longWord)
|
468
468
|
</div>
|
469
469
|
<div class="sourcecode">
|
470
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
471
|
-
<div id="
|
470
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000486_source')" id="l_M000486_source">show source</a> ]</p>
|
471
|
+
<div id="M000486_source" class="dyn-source">
|
472
472
|
<pre>
|
473
473
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 88</span>
|
474
474
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">f</span>(<span class="ruby-identifier">longWord</span>)
|
@@ -482,20 +482,20 @@ A simple two-way encryption class.
|
|
482
482
|
</div>
|
483
483
|
<div class="method">
|
484
484
|
<div class="title">
|
485
|
-
<a name="
|
485
|
+
<a name="M000491"></a><b>generate_initialization_vector</b>(words)
|
486
486
|
</div>
|
487
487
|
<div class="description">
|
488
488
|
<p>
|
489
489
|
When this module is mixed in with an encryption class, the class must
|
490
490
|
provide three methods: <a
|
491
|
-
href="BiCrypt.html#
|
492
|
-
href="BiCrypt.html#
|
493
|
-
href="BiCrypt.html#
|
491
|
+
href="BiCrypt.html#M000489">encrypt_block</a>(block) and <a
|
492
|
+
href="BiCrypt.html#M000490">decrypt_block</a>(block) and <a
|
493
|
+
href="BiCrypt.html#M000483">block_size</a>()
|
494
494
|
</p>
|
495
495
|
</div>
|
496
496
|
<div class="sourcecode">
|
497
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
498
|
-
<div id="
|
497
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000491_source')" id="l_M000491_source">show source</a> ]</p>
|
498
|
+
<div id="M000491_source" class="dyn-source">
|
499
499
|
<pre>
|
500
500
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 158</span>
|
501
501
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_initialization_vector</span>(<span class="ruby-identifier">words</span>)
|
@@ -512,11 +512,11 @@ href="BiCrypt.html#M000473">block_size</a>()
|
|
512
512
|
</div>
|
513
513
|
<div class="method">
|
514
514
|
<div class="title">
|
515
|
-
<a name="
|
515
|
+
<a name="M000485"></a><b>precalculate_S_table</b>()
|
516
516
|
</div>
|
517
517
|
<div class="sourcecode">
|
518
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
519
|
-
<div id="
|
518
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000485_source')" id="l_M000485_source">show source</a> ]</p>
|
519
|
+
<div id="M000485_source" class="dyn-source">
|
520
520
|
<pre>
|
521
521
|
<span class="ruby-comment cmt"># File lib/more/facets/bicrypt.rb, line 74</span>
|
522
522
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">precalculate_S_table</span>()
|