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
@@ -86,7 +86,7 @@ look true to Ruby, even if the actual result object is nil or false.
|
|
86
86
|
</p>
|
87
87
|
<p>
|
88
88
|
If you want to test the result for truth, get the unwrapped result object
|
89
|
-
via <a href="../Kernel.html#
|
89
|
+
via <a href="../Kernel.html#M000607">Kernel.demand</a>.
|
90
90
|
</p>
|
91
91
|
</div>
|
92
92
|
|
@@ -85,12 +85,12 @@ Object
|
|
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="#
|
88
|
+
<li><a href="#M000276">match</a></li>
|
89
|
+
<li><a href="#M000279">match</a></li>
|
90
|
+
<li><a href="#M000280">matchset</a></li>
|
91
|
+
<li><a href="#M000277">matchset</a></li>
|
92
|
+
<li><a href="#M000278">matchtree</a></li>
|
93
|
+
<li><a href="#M000281">matchtree</a></li>
|
94
94
|
</ul>
|
95
95
|
|
96
96
|
|
@@ -101,11 +101,11 @@ Object
|
|
101
101
|
<div class="sectiontitle">Public Instance methods</div>
|
102
102
|
<div class="method">
|
103
103
|
<div class="title">
|
104
|
-
<a name="
|
104
|
+
<a name="M000276"></a><b>match</b>(index=0)
|
105
105
|
</div>
|
106
106
|
<div class="description">
|
107
107
|
<p>
|
108
|
-
Return the primary <a href="MatchData.html#
|
108
|
+
Return the primary <a href="MatchData.html#M000276">match</a> string. This
|
109
109
|
is equivalent to +md[0]+.
|
110
110
|
</p>
|
111
111
|
<pre>
|
@@ -116,8 +116,8 @@ is equivalent to +md[0]+.
|
|
116
116
|
</pre>
|
117
117
|
</div>
|
118
118
|
<div class="sourcecode">
|
119
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
120
|
-
<div id="
|
119
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000276_source')" id="l_M000276_source">show source</a> ]</p>
|
120
|
+
<div id="M000276_source" class="dyn-source">
|
121
121
|
<pre>
|
122
122
|
<span class="ruby-comment cmt"># File lib/core/facets/matchdata/match.rb, line 10</span>
|
123
123
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">match</span>(<span class="ruby-identifier">index</span>=<span class="ruby-value">0</span>)
|
@@ -129,11 +129,11 @@ is equivalent to +md[0]+.
|
|
129
129
|
</div>
|
130
130
|
<div class="method">
|
131
131
|
<div class="title">
|
132
|
-
<a name="
|
132
|
+
<a name="M000279"></a><b>match</b>(index=0)
|
133
133
|
</div>
|
134
134
|
<div class="description">
|
135
135
|
<p>
|
136
|
-
Return the primary <a href="MatchData.html#
|
136
|
+
Return the primary <a href="MatchData.html#M000276">match</a> string. This
|
137
137
|
is equivalent to +md[0]+.
|
138
138
|
</p>
|
139
139
|
<pre>
|
@@ -144,8 +144,8 @@ is equivalent to +md[0]+.
|
|
144
144
|
</pre>
|
145
145
|
</div>
|
146
146
|
<div class="sourcecode">
|
147
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
148
|
-
<div id="
|
147
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000279_source')" id="l_M000279_source">show source</a> ]</p>
|
148
|
+
<div id="M000279_source" class="dyn-source">
|
149
149
|
<pre>
|
150
150
|
<span class="ruby-comment cmt"># File lib/core/facets/matchdata/match.rb, line 10</span>
|
151
151
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">match</span>(<span class="ruby-identifier">index</span>=<span class="ruby-value">0</span>)
|
@@ -157,12 +157,12 @@ is equivalent to +md[0]+.
|
|
157
157
|
</div>
|
158
158
|
<div class="method">
|
159
159
|
<div class="title">
|
160
|
-
<a name="
|
160
|
+
<a name="M000280"></a><b>matchset</b>()
|
161
161
|
</div>
|
162
162
|
<div class="description">
|
163
163
|
<p>
|
164
|
-
Returns [ pre_match, <a href="MatchData.html#
|
165
|
-
post_match ]. (see <a href="MatchData.html#
|
164
|
+
Returns [ pre_match, <a href="MatchData.html#M000278">matchtree</a>,
|
165
|
+
post_match ]. (see <a href="MatchData.html#M000278">matchtree</a>)
|
166
166
|
</p>
|
167
167
|
<pre>
|
168
168
|
md = /(bb)(cc(dd))(ee)/.match "XXaabbccddeeffXX"
|
@@ -173,8 +173,8 @@ post_match ]. (see <a href="MatchData.html#M000296">matchtree</a>)
|
|
173
173
|
</pre>
|
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('M000280_source')" id="l_M000280_source">show source</a> ]</p>
|
177
|
+
<div id="M000280_source" class="dyn-source">
|
178
178
|
<pre>
|
179
179
|
<span class="ruby-comment cmt"># File lib/core/facets/matchdata/matchset.rb, line 11</span>
|
180
180
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">matchset</span>
|
@@ -186,12 +186,12 @@ post_match ]. (see <a href="MatchData.html#M000296">matchtree</a>)
|
|
186
186
|
</div>
|
187
187
|
<div class="method">
|
188
188
|
<div class="title">
|
189
|
-
<a name="
|
189
|
+
<a name="M000277"></a><b>matchset</b>()
|
190
190
|
</div>
|
191
191
|
<div class="description">
|
192
192
|
<p>
|
193
|
-
Returns [ pre_match, <a href="MatchData.html#
|
194
|
-
post_match ]. (see <a href="MatchData.html#
|
193
|
+
Returns [ pre_match, <a href="MatchData.html#M000278">matchtree</a>,
|
194
|
+
post_match ]. (see <a href="MatchData.html#M000278">matchtree</a>)
|
195
195
|
</p>
|
196
196
|
<pre>
|
197
197
|
md = /(bb)(cc(dd))(ee)/.match "XXaabbccddeeffXX"
|
@@ -202,8 +202,8 @@ post_match ]. (see <a href="MatchData.html#M000296">matchtree</a>)
|
|
202
202
|
</pre>
|
203
203
|
</div>
|
204
204
|
<div class="sourcecode">
|
205
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
206
|
-
<div id="
|
205
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000277_source')" id="l_M000277_source">show source</a> ]</p>
|
206
|
+
<div id="M000277_source" class="dyn-source">
|
207
207
|
<pre>
|
208
208
|
<span class="ruby-comment cmt"># File lib/core/facets/matchdata/matchset.rb, line 11</span>
|
209
209
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">matchset</span>
|
@@ -215,7 +215,7 @@ post_match ]. (see <a href="MatchData.html#M000296">matchtree</a>)
|
|
215
215
|
</div>
|
216
216
|
<div class="method">
|
217
217
|
<div class="title">
|
218
|
-
<a name="
|
218
|
+
<a name="M000278"></a><b>matchtree</b>(index=0)
|
219
219
|
</div>
|
220
220
|
<div class="description">
|
221
221
|
<p>
|
@@ -231,8 +231,8 @@ the regular expression.
|
|
231
231
|
</pre>
|
232
232
|
</div>
|
233
233
|
<div class="sourcecode">
|
234
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
235
|
-
<div id="
|
234
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000278_source')" id="l_M000278_source">show source</a> ]</p>
|
235
|
+
<div id="M000278_source" class="dyn-source">
|
236
236
|
<pre>
|
237
237
|
<span class="ruby-comment cmt"># File lib/core/facets/matchdata/matchset.rb, line 24</span>
|
238
238
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">matchtree</span>(<span class="ruby-identifier">index</span>=<span class="ruby-value">0</span>)
|
@@ -259,7 +259,7 @@ the regular expression.
|
|
259
259
|
</div>
|
260
260
|
<div class="method">
|
261
261
|
<div class="title">
|
262
|
-
<a name="
|
262
|
+
<a name="M000281"></a><b>matchtree</b>(index=0)
|
263
263
|
</div>
|
264
264
|
<div class="description">
|
265
265
|
<p>
|
@@ -275,8 +275,8 @@ the regular expression.
|
|
275
275
|
</pre>
|
276
276
|
</div>
|
277
277
|
<div class="sourcecode">
|
278
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
279
|
-
<div id="
|
278
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000281_source')" id="l_M000281_source">show source</a> ]</p>
|
279
|
+
<div id="M000281_source" class="dyn-source">
|
280
280
|
<pre>
|
281
281
|
<span class="ruby-comment cmt"># File lib/core/facets/matchdata/matchset.rb, line 24</span>
|
282
282
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">matchtree</span>(<span class="ruby-identifier">index</span>=<span class="ruby-value">0</span>)
|
@@ -63,9 +63,12 @@
|
|
63
63
|
<a href="../files/lib/core/facets/module/alias_rb.html">lib/core/facets/module/alias.rb</a>
|
64
64
|
<a href="../files/lib/core/facets/module/prepend_rb.html">lib/core/facets/module/prepend.rb</a>
|
65
65
|
<a href="../files/lib/core/facets/module/ancestor_rb.html">lib/core/facets/module/ancestor.rb</a>
|
66
|
+
<a href="../files/lib/core/facets/module/redirect_method_rb.html">lib/core/facets/module/redirect_method.rb</a>
|
67
|
+
<a href="../files/lib/core/facets/module/methodize_rb.html">lib/core/facets/module/methodize.rb</a>
|
66
68
|
<a href="../files/lib/core/facets/module/conflict_rb.html">lib/core/facets/module/conflict.rb</a>
|
67
69
|
<a href="../files/lib/core/facets/module/can_rb.html">lib/core/facets/module/can.rb</a>
|
68
70
|
<a href="../files/lib/core/facets/module/include_function_module_rb.html">lib/core/facets/module/include_function_module.rb</a>
|
71
|
+
<a href="../files/lib/core/facets/module/redefine_method_rb.html">lib/core/facets/module/redefine_method.rb</a>
|
69
72
|
<a href="../files/lib/core/facets/module/op_rb.html">lib/core/facets/module/op.rb</a>
|
70
73
|
<a href="../files/lib/core/facets/module/pathize_rb.html">lib/core/facets/module/pathize.rb</a>
|
71
74
|
<a href="../files/lib/core/facets/module/instance_methods_rb.html">lib/core/facets/module/instance_methods.rb</a>
|
@@ -75,16 +78,20 @@
|
|
75
78
|
<a href="../files/lib/core/facets/module/class_rb.html">lib/core/facets/module/class.rb</a>
|
76
79
|
<a href="../files/lib/core/facets/module/modspace_rb.html">lib/core/facets/module/modspace.rb</a>
|
77
80
|
<a href="../files/lib/core/facets/module/abstract_rb.html">lib/core/facets/module/abstract.rb</a>
|
78
|
-
<a href="../files/lib/core/facets/module/
|
81
|
+
<a href="../files/lib/core/facets/module/rename_method_rb.html">lib/core/facets/module/rename_method.rb</a>
|
79
82
|
<a href="../files/lib/core/facets/module/revise_rb.html">lib/core/facets/module/revise.rb</a>
|
80
83
|
<a href="../files/lib/core/facets/module/spacename_rb.html">lib/core/facets/module/spacename.rb</a>
|
84
|
+
<a href="../files/lib/core/facets/module/wrap_method_rb.html">lib/core/facets/module/wrap_method.rb</a>
|
81
85
|
<a href="../files/lib/core/facets/module/basename_rb.html">lib/core/facets/module/basename.rb</a>
|
82
86
|
<a href="../files/lib/core/facets/module/alias_rb.html">lib/core/facets/module/alias.rb</a>
|
83
87
|
<a href="../files/lib/core/facets/module/prepend_rb.html">lib/core/facets/module/prepend.rb</a>
|
84
88
|
<a href="../files/lib/core/facets/module/ancestor_rb.html">lib/core/facets/module/ancestor.rb</a>
|
89
|
+
<a href="../files/lib/core/facets/module/redirect_method_rb.html">lib/core/facets/module/redirect_method.rb</a>
|
90
|
+
<a href="../files/lib/core/facets/module/methodize_rb.html">lib/core/facets/module/methodize.rb</a>
|
85
91
|
<a href="../files/lib/core/facets/module/conflict_rb.html">lib/core/facets/module/conflict.rb</a>
|
86
92
|
<a href="../files/lib/core/facets/module/can_rb.html">lib/core/facets/module/can.rb</a>
|
87
93
|
<a href="../files/lib/core/facets/module/include_function_module_rb.html">lib/core/facets/module/include_function_module.rb</a>
|
94
|
+
<a href="../files/lib/core/facets/module/redefine_method_rb.html">lib/core/facets/module/redefine_method.rb</a>
|
88
95
|
<a href="../files/lib/core/facets/module/op_rb.html">lib/core/facets/module/op.rb</a>
|
89
96
|
<a href="../files/lib/core/facets/module/pathize_rb.html">lib/core/facets/module/pathize.rb</a>
|
90
97
|
<a href="../files/lib/core/facets/module/instance_methods_rb.html">lib/core/facets/module/instance_methods.rb</a>
|
@@ -94,9 +101,10 @@
|
|
94
101
|
<a href="../files/lib/core/facets/module/class_rb.html">lib/core/facets/module/class.rb</a>
|
95
102
|
<a href="../files/lib/core/facets/module/modspace_rb.html">lib/core/facets/module/modspace.rb</a>
|
96
103
|
<a href="../files/lib/core/facets/module/abstract_rb.html">lib/core/facets/module/abstract.rb</a>
|
97
|
-
<a href="../files/lib/core/facets/module/
|
104
|
+
<a href="../files/lib/core/facets/module/rename_method_rb.html">lib/core/facets/module/rename_method.rb</a>
|
98
105
|
<a href="../files/lib/core/facets/module/revise_rb.html">lib/core/facets/module/revise.rb</a>
|
99
106
|
<a href="../files/lib/core/facets/module/spacename_rb.html">lib/core/facets/module/spacename.rb</a>
|
107
|
+
<a href="../files/lib/core/facets/module/wrap_method_rb.html">lib/core/facets/module/wrap_method.rb</a>
|
100
108
|
<a href="../files/lib/core/facets/module/basename_rb.html">lib/core/facets/module/basename.rb</a>
|
101
109
|
</td>
|
102
110
|
</tr>
|
@@ -119,7 +127,7 @@ Object
|
|
119
127
|
|
120
128
|
<div class="description"><p>
|
121
129
|
It would nice if we could the following. Then the middle portion of the <a
|
122
|
-
href="Module.html#
|
130
|
+
href="Module.html#M000293">Comparable</a> method would not be needed. But I
|
123
131
|
fear it might break others code.
|
124
132
|
</p>
|
125
133
|
<pre>
|
@@ -139,88 +147,82 @@ fear it might break others code.
|
|
139
147
|
|
140
148
|
<div class="sectiontitle">Methods</div>
|
141
149
|
<ul>
|
142
|
-
<li><a href="#
|
143
|
-
<li><a href="#
|
144
|
-
<li><a href="#
|
145
|
-
<li><a href="#
|
146
|
-
<li><a href="#
|
147
|
-
<li><a href="#
|
148
|
-
<li><a href="#
|
149
|
-
<li><a href="#
|
150
|
-
<li><a href="#
|
151
|
-
<li><a href="#
|
152
|
-
<li><a href="#
|
153
|
-
<li><a href="#
|
154
|
-
<li><a href="#
|
155
|
-
<li><a href="#
|
156
|
-
<li><a href="#
|
157
|
-
<li><a href="#
|
158
|
-
<li><a href="#
|
159
|
-
<li><a href="#
|
160
|
-
<li><a href="#
|
161
|
-
<li><a href="#
|
162
|
-
<li><a href="#
|
163
|
-
<li><a href="#
|
164
|
-
<li><a href="#
|
165
|
-
<li><a href="#
|
166
|
-
<li><a href="#
|
167
|
-
<li><a href="#
|
168
|
-
<li><a href="#
|
169
|
-
<li><a href="#
|
170
|
-
<li><a href="#
|
171
|
-
<li><a href="#
|
172
|
-
<li><a href="#
|
173
|
-
<li><a href="#
|
174
|
-
<li><a href="#
|
175
|
-
<li><a href="#
|
176
|
-
<li><a href="#
|
177
|
-
<li><a href="#
|
178
|
-
<li><a href="#
|
179
|
-
<li><a href="#
|
180
|
-
<li><a href="#
|
181
|
-
<li><a href="#
|
182
|
-
<li><a href="#
|
183
|
-
<li><a href="#
|
184
|
-
<li><a href="#
|
185
|
-
<li><a href="#
|
186
|
-
<li><a href="#
|
187
|
-
<li><a href="#
|
188
|
-
<li><a href="#
|
189
|
-
<li><a href="#
|
190
|
-
<li><a href="#
|
191
|
-
<li><a href="#
|
192
|
-
<li><a href="#
|
193
|
-
<li><a href="#
|
194
|
-
<li><a href="#
|
195
|
-
<li><a href="#
|
196
|
-
<li><a href="#
|
197
|
-
<li><a href="#
|
198
|
-
<li><a href="#
|
199
|
-
<li><a href="#
|
200
|
-
<li><a href="#
|
201
|
-
<li><a href="#
|
202
|
-
<li><a href="#
|
203
|
-
<li><a href="#
|
204
|
-
<li><a href="#
|
150
|
+
<li><a href="#M000304">*</a></li>
|
151
|
+
<li><a href="#M000335">*</a></li>
|
152
|
+
<li><a href="#M000333">+</a></li>
|
153
|
+
<li><a href="#M000302">+</a></li>
|
154
|
+
<li><a href="#M000303">-</a></li>
|
155
|
+
<li><a href="#M000334">-</a></li>
|
156
|
+
<li><a href="#M000294">Comparable</a></li>
|
157
|
+
<li><a href="#M000293">Comparable</a></li>
|
158
|
+
<li><a href="#M000349">abstract</a></li>
|
159
|
+
<li><a href="#M000318">abstract</a></li>
|
160
|
+
<li><a href="#M000306">all_instance_methods</a></li>
|
161
|
+
<li><a href="#M000337">all_instance_methods</a></li>
|
162
|
+
<li><a href="#M000296">ancestor?</a></li>
|
163
|
+
<li><a href="#M000327">ancestor?</a></li>
|
164
|
+
<li><a href="#M000325">basename</a></li>
|
165
|
+
<li><a href="#M000356">basename</a></li>
|
166
|
+
<li><a href="#M000292">class_def</a></li>
|
167
|
+
<li><a href="#M000344">class_load</a></li>
|
168
|
+
<li><a href="#M000313">class_load</a></li>
|
169
|
+
<li><a href="#M000312">class_require</a></li>
|
170
|
+
<li><a href="#M000343">class_require</a></li>
|
171
|
+
<li><a href="#M000329">conflict?</a></li>
|
172
|
+
<li><a href="#M000298">conflict?</a></li>
|
173
|
+
<li><a href="#M000307">instance_method_defined?</a></li>
|
174
|
+
<li><a href="#M000338">instance_method_defined?</a></li>
|
175
|
+
<li><a href="#M000321">integrate</a></li>
|
176
|
+
<li><a href="#M000352">integrate</a></li>
|
177
|
+
<li><a href="#M000346">is</a></li>
|
178
|
+
<li><a href="#M000315">is</a></li>
|
179
|
+
<li><a href="#M000314">is?</a></li>
|
180
|
+
<li><a href="#M000345">is?</a></li>
|
181
|
+
<li><a href="#M000297">methodize</a></li>
|
182
|
+
<li><a href="#M000328">methodize</a></li>
|
183
|
+
<li><a href="#M000348">modspace</a></li>
|
184
|
+
<li><a href="#M000317">modspace</a></li>
|
185
|
+
<li><a href="#M000310">module_load</a></li>
|
186
|
+
<li><a href="#M000341">module_load</a></li>
|
187
|
+
<li><a href="#M000309">module_method_defined?</a></li>
|
188
|
+
<li><a href="#M000340">module_method_defined?</a></li>
|
189
|
+
<li><a href="#M000311">module_require</a></li>
|
190
|
+
<li><a href="#M000342">module_require</a></li>
|
191
|
+
<li><a href="#M000347">nesting</a></li>
|
192
|
+
<li><a href="#M000316">nesting</a></li>
|
193
|
+
<li><a href="#M000305">pathize</a></li>
|
194
|
+
<li><a href="#M000336">pathize</a></li>
|
195
|
+
<li><a href="#M000295">prepend</a></li>
|
196
|
+
<li><a href="#M000326">prepend</a></li>
|
197
|
+
<li><a href="#M000331">private_conflict?</a></li>
|
198
|
+
<li><a href="#M000300">private_conflict?</a></li>
|
199
|
+
<li><a href="#M000301">protected_conflict?</a></li>
|
200
|
+
<li><a href="#M000332">protected_conflict?</a></li>
|
201
|
+
<li><a href="#M000299">public_conflict?</a></li>
|
202
|
+
<li><a href="#M000330">public_conflict?</a></li>
|
203
|
+
<li><a href="#M000320">revisal</a></li>
|
204
|
+
<li><a href="#M000351">revisal</a></li>
|
205
|
+
<li><a href="#M000319">revise</a></li>
|
206
|
+
<li><a href="#M000350">revise</a></li>
|
207
|
+
<li><a href="#M000339">singleton_method_defined?</a></li>
|
208
|
+
<li><a href="#M000308">singleton_method_defined?</a></li>
|
209
|
+
<li><a href="#M000353">spacename</a></li>
|
210
|
+
<li><a href="#M000322">spacename</a></li>
|
211
|
+
<li><a href="#M000355">wrap</a></li>
|
212
|
+
<li><a href="#M000324">wrap</a></li>
|
213
|
+
<li><a href="#M000323">wrap_method</a></li>
|
214
|
+
<li><a href="#M000354">wrap_method</a></li>
|
205
215
|
</ul>
|
206
216
|
|
207
|
-
<div class="sectiontitle">Included Modules</div>
|
208
|
-
<ul>
|
209
|
-
<li><a href="Module/CloneExtensions.html">CloneExtensions</a></li>
|
210
|
-
<li><a href="Module/CloneExtensions.html">CloneExtensions</a></li>
|
211
|
-
</ul>
|
212
217
|
|
213
218
|
|
214
|
-
<div class="sectiontitle">Classes and Modules</div>
|
215
|
-
Module <a href="Module/CloneExtensions.html" class="link">Module::CloneExtensions</a><br />
|
216
|
-
|
217
219
|
|
218
220
|
|
219
221
|
|
220
222
|
<div class="sectiontitle">Public Instance methods</div>
|
221
223
|
<div class="method">
|
222
224
|
<div class="title">
|
223
|
-
<a name="
|
225
|
+
<a name="M000304"></a><b>*</b>(rename_map)
|
224
226
|
</div>
|
225
227
|
<div class="description">
|
226
228
|
<p>
|
@@ -242,8 +244,8 @@ Rename methods.
|
|
242
244
|
</pre>
|
243
245
|
</div>
|
244
246
|
<div class="sourcecode">
|
245
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
246
|
-
<div id="
|
247
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000304_source')" id="l_M000304_source">show source</a> ]</p>
|
248
|
+
<div id="M000304_source" class="dyn-source">
|
247
249
|
<pre>
|
248
250
|
<span class="ruby-comment cmt"># File lib/core/facets/module/op.rb, line 83</span>
|
249
251
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">*</span>(<span class="ruby-identifier">rename_map</span>)
|
@@ -262,7 +264,7 @@ Rename methods.
|
|
262
264
|
</div>
|
263
265
|
<div class="method">
|
264
266
|
<div class="title">
|
265
|
-
<a name="
|
267
|
+
<a name="M000335"></a><b>*</b>(rename_map)
|
266
268
|
</div>
|
267
269
|
<div class="description">
|
268
270
|
<p>
|
@@ -284,8 +286,8 @@ Rename methods.
|
|
284
286
|
</pre>
|
285
287
|
</div>
|
286
288
|
<div class="sourcecode">
|
287
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
288
|
-
<div id="
|
289
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000335_source')" id="l_M000335_source">show source</a> ]</p>
|
290
|
+
<div id="M000335_source" class="dyn-source">
|
289
291
|
<pre>
|
290
292
|
<span class="ruby-comment cmt"># File lib/core/facets/module/op.rb, line 83</span>
|
291
293
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">*</span>(<span class="ruby-identifier">rename_map</span>)
|
@@ -304,7 +306,7 @@ Rename methods.
|
|
304
306
|
</div>
|
305
307
|
<div class="method">
|
306
308
|
<div class="title">
|
307
|
-
<a name="
|
309
|
+
<a name="M000333"></a><b>+</b>(other)
|
308
310
|
</div>
|
309
311
|
<div class="description">
|
310
312
|
<p>
|
@@ -347,8 +349,8 @@ concept of modules has over traditional traits, inheritance.
|
|
347
349
|
</pre>
|
348
350
|
</div>
|
349
351
|
<div class="sourcecode">
|
350
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
351
|
-
<div id="
|
352
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000333_source')" id="l_M000333_source">show source</a> ]</p>
|
353
|
+
<div id="M000333_source" class="dyn-source">
|
352
354
|
<pre>
|
353
355
|
<span class="ruby-comment cmt"># File lib/core/facets/module/op.rb, line 36</span>
|
354
356
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">+</span>(<span class="ruby-identifier">other</span>)
|
@@ -364,7 +366,7 @@ concept of modules has over traditional traits, inheritance.
|
|
364
366
|
</div>
|
365
367
|
<div class="method">
|
366
368
|
<div class="title">
|
367
|
-
<a name="
|
369
|
+
<a name="M000302"></a><b>+</b>(other)
|
368
370
|
</div>
|
369
371
|
<div class="description">
|
370
372
|
<p>
|
@@ -407,8 +409,8 @@ concept of modules has over traditional traits, inheritance.
|
|
407
409
|
</pre>
|
408
410
|
</div>
|
409
411
|
<div class="sourcecode">
|
410
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
411
|
-
<div id="
|
412
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000302_source')" id="l_M000302_source">show source</a> ]</p>
|
413
|
+
<div id="M000302_source" class="dyn-source">
|
412
414
|
<pre>
|
413
415
|
<span class="ruby-comment cmt"># File lib/core/facets/module/op.rb, line 36</span>
|
414
416
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">+</span>(<span class="ruby-identifier">other</span>)
|
@@ -424,7 +426,7 @@ concept of modules has over traditional traits, inheritance.
|
|
424
426
|
</div>
|
425
427
|
<div class="method">
|
426
428
|
<div class="title">
|
427
|
-
<a name="
|
429
|
+
<a name="M000303"></a><b>-</b>(other)
|
428
430
|
</div>
|
429
431
|
<div class="description">
|
430
432
|
<p>
|
@@ -438,8 +440,8 @@ Subtract modules.
|
|
438
440
|
</pre>
|
439
441
|
</div>
|
440
442
|
<div class="sourcecode">
|
441
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
442
|
-
<div id="
|
443
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000303_source')" id="l_M000303_source">show source</a> ]</p>
|
444
|
+
<div id="M000303_source" class="dyn-source">
|
443
445
|
<pre>
|
444
446
|
<span class="ruby-comment cmt"># File lib/core/facets/module/op.rb, line 51</span>
|
445
447
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">other</span>)
|
@@ -463,7 +465,7 @@ Subtract modules.
|
|
463
465
|
</div>
|
464
466
|
<div class="method">
|
465
467
|
<div class="title">
|
466
|
-
<a name="
|
468
|
+
<a name="M000334"></a><b>-</b>(other)
|
467
469
|
</div>
|
468
470
|
<div class="description">
|
469
471
|
<p>
|
@@ -477,8 +479,8 @@ Subtract modules.
|
|
477
479
|
</pre>
|
478
480
|
</div>
|
479
481
|
<div class="sourcecode">
|
480
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
481
|
-
<div id="
|
482
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000334_source')" id="l_M000334_source">show source</a> ]</p>
|
483
|
+
<div id="M000334_source" class="dyn-source">
|
482
484
|
<pre>
|
483
485
|
<span class="ruby-comment cmt"># File lib/core/facets/module/op.rb, line 51</span>
|
484
486
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span>(<span class="ruby-identifier">other</span>)
|
@@ -502,7 +504,7 @@ Subtract modules.
|
|
502
504
|
</div>
|
503
505
|
<div class="method">
|
504
506
|
<div class="title">
|
505
|
-
<a name="
|
507
|
+
<a name="M000294"></a><b>Comparable</b>(*accessors)
|
506
508
|
</div>
|
507
509
|
<div class="description">
|
508
510
|
<p>
|
@@ -512,7 +514,7 @@ Automatically generate sorting defintions base on attribute fields.
|
|
512
514
|
include SortOn(:a, :b)
|
513
515
|
</pre>
|
514
516
|
<p>
|
515
|
-
<a href="Module.html#
|
517
|
+
<a href="Module.html#M000315">is</a> equivalent to including a module
|
516
518
|
containing:
|
517
519
|
</p>
|
518
520
|
<pre>
|
@@ -524,8 +526,8 @@ containing:
|
|
524
526
|
</pre>
|
525
527
|
</div>
|
526
528
|
<div class="sourcecode">
|
527
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
528
|
-
<div id="
|
529
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000294_source')" id="l_M000294_source">show source</a> ]</p>
|
530
|
+
<div id="M000294_source" class="dyn-source">
|
529
531
|
<pre>
|
530
532
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/comparable.rb, line 28</span>
|
531
533
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Comparable</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">accessors</span>)
|
@@ -546,7 +548,7 @@ containing:
|
|
546
548
|
</div>
|
547
549
|
<div class="method">
|
548
550
|
<div class="title">
|
549
|
-
<a name="
|
551
|
+
<a name="M000293"></a><b>Comparable</b>(*accessors)
|
550
552
|
</div>
|
551
553
|
<div class="description">
|
552
554
|
<p>
|
@@ -556,7 +558,7 @@ Automatically generate sorting defintions base on attribute fields.
|
|
556
558
|
include SortOn(:a, :b)
|
557
559
|
</pre>
|
558
560
|
<p>
|
559
|
-
<a href="Module.html#
|
561
|
+
<a href="Module.html#M000315">is</a> equivalent to including a module
|
560
562
|
containing:
|
561
563
|
</p>
|
562
564
|
<pre>
|
@@ -568,8 +570,8 @@ containing:
|
|
568
570
|
</pre>
|
569
571
|
</div>
|
570
572
|
<div class="sourcecode">
|
571
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
572
|
-
<div id="
|
573
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000293_source')" id="l_M000293_source">show source</a> ]</p>
|
574
|
+
<div id="M000293_source" class="dyn-source">
|
573
575
|
<pre>
|
574
576
|
<span class="ruby-comment cmt"># File lib/core/facets/comparable/comparable.rb, line 28</span>
|
575
577
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Comparable</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">accessors</span>)
|
@@ -590,12 +592,12 @@ containing:
|
|
590
592
|
</div>
|
591
593
|
<div class="method">
|
592
594
|
<div class="title">
|
593
|
-
<a name="
|
595
|
+
<a name="M000349"></a><b>abstract</b>( *sym )
|
594
596
|
</div>
|
595
597
|
<div class="description">
|
596
598
|
<p>
|
597
|
-
Create an <a href="Module.html#
|
598
|
-
href="Module.html#
|
599
|
+
Create an <a href="Module.html#M000318">abstract</a> method. If it <a
|
600
|
+
href="Module.html#M000315">is</a> not overridden, it will raise a TypeError
|
599
601
|
when called.
|
600
602
|
</p>
|
601
603
|
<pre>
|
@@ -610,8 +612,8 @@ when called.
|
|
610
612
|
</pre>
|
611
613
|
</div>
|
612
614
|
<div class="sourcecode">
|
613
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
614
|
-
<div id="
|
615
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000349_source')" id="l_M000349_source">show source</a> ]</p>
|
616
|
+
<div id="M000349_source" class="dyn-source">
|
615
617
|
<pre>
|
616
618
|
<span class="ruby-comment cmt"># File lib/core/facets/module/abstract.rb, line 15</span>
|
617
619
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">abstract</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">sym</span> )
|
@@ -625,12 +627,12 @@ when called.
|
|
625
627
|
</div>
|
626
628
|
<div class="method">
|
627
629
|
<div class="title">
|
628
|
-
<a name="
|
630
|
+
<a name="M000318"></a><b>abstract</b>( *sym )
|
629
631
|
</div>
|
630
632
|
<div class="description">
|
631
633
|
<p>
|
632
|
-
Create an <a href="Module.html#
|
633
|
-
href="Module.html#
|
634
|
+
Create an <a href="Module.html#M000318">abstract</a> method. If it <a
|
635
|
+
href="Module.html#M000315">is</a> not overridden, it will raise a TypeError
|
634
636
|
when called.
|
635
637
|
</p>
|
636
638
|
<pre>
|
@@ -645,8 +647,8 @@ when called.
|
|
645
647
|
</pre>
|
646
648
|
</div>
|
647
649
|
<div class="sourcecode">
|
648
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
649
|
-
<div id="
|
650
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000318_source')" id="l_M000318_source">show source</a> ]</p>
|
651
|
+
<div id="M000318_source" class="dyn-source">
|
650
652
|
<pre>
|
651
653
|
<span class="ruby-comment cmt"># File lib/core/facets/module/abstract.rb, line 15</span>
|
652
654
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">abstract</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">sym</span> )
|
@@ -660,7 +662,7 @@ when called.
|
|
660
662
|
</div>
|
661
663
|
<div class="method">
|
662
664
|
<div class="title">
|
663
|
-
<a name="
|
665
|
+
<a name="M000306"></a><b>all_instance_methods</b>(include_super=true)
|
664
666
|
</div>
|
665
667
|
<div class="description">
|
666
668
|
<p>
|
@@ -673,15 +675,15 @@ List all instance methods, equivalent to
|
|
673
675
|
</pre>
|
674
676
|
<p>
|
675
677
|
TODO: Better name for <a
|
676
|
-
href="Module.html#
|
678
|
+
href="Module.html#M000306">all_instance_methods</a>?
|
677
679
|
</p>
|
678
680
|
<pre>
|
679
681
|
CREDIT: Trans
|
680
682
|
</pre>
|
681
683
|
</div>
|
682
684
|
<div class="sourcecode">
|
683
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
684
|
-
<div id="
|
685
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000306_source')" id="l_M000306_source">show source</a> ]</p>
|
686
|
+
<div id="M000306_source" class="dyn-source">
|
685
687
|
<pre>
|
686
688
|
<span class="ruby-comment cmt"># File lib/core/facets/module/instance_methods.rb, line 13</span>
|
687
689
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">all_instance_methods</span>(<span class="ruby-identifier">include_super</span>=<span class="ruby-keyword kw">true</span>)
|
@@ -695,7 +697,7 @@ href="Module.html#M000325">all_instance_methods</a>?
|
|
695
697
|
</div>
|
696
698
|
<div class="method">
|
697
699
|
<div class="title">
|
698
|
-
<a name="
|
700
|
+
<a name="M000337"></a><b>all_instance_methods</b>(include_super=true)
|
699
701
|
</div>
|
700
702
|
<div class="description">
|
701
703
|
<p>
|
@@ -708,15 +710,15 @@ List all instance methods, equivalent to
|
|
708
710
|
</pre>
|
709
711
|
<p>
|
710
712
|
TODO: Better name for <a
|
711
|
-
href="Module.html#
|
713
|
+
href="Module.html#M000306">all_instance_methods</a>?
|
712
714
|
</p>
|
713
715
|
<pre>
|
714
716
|
CREDIT: Trans
|
715
717
|
</pre>
|
716
718
|
</div>
|
717
719
|
<div class="sourcecode">
|
718
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
719
|
-
<div id="
|
720
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000337_source')" id="l_M000337_source">show source</a> ]</p>
|
721
|
+
<div id="M000337_source" class="dyn-source">
|
720
722
|
<pre>
|
721
723
|
<span class="ruby-comment cmt"># File lib/core/facets/module/instance_methods.rb, line 13</span>
|
722
724
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">all_instance_methods</span>(<span class="ruby-identifier">include_super</span>=<span class="ruby-keyword kw">true</span>)
|
@@ -730,7 +732,7 @@ href="Module.html#M000325">all_instance_methods</a>?
|
|
730
732
|
</div>
|
731
733
|
<div class="method">
|
732
734
|
<div class="title">
|
733
|
-
<a name="
|
735
|
+
<a name="M000296"></a><b>ancestor?</b>( mod )
|
734
736
|
</div>
|
735
737
|
<div class="description">
|
736
738
|
<p>
|
@@ -744,8 +746,8 @@ Is a given class or module an ancestor of this class or module?
|
|
744
746
|
</pre>
|
745
747
|
</div>
|
746
748
|
<div class="sourcecode">
|
747
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
748
|
-
<div id="
|
749
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000296_source')" id="l_M000296_source">show source</a> ]</p>
|
750
|
+
<div id="M000296_source" class="dyn-source">
|
749
751
|
<pre>
|
750
752
|
<span class="ruby-comment cmt"># File lib/core/facets/module/ancestor.rb, line 11</span>
|
751
753
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ancestor?</span>( <span class="ruby-identifier">mod</span> )
|
@@ -757,7 +759,7 @@ Is a given class or module an ancestor of this class or module?
|
|
757
759
|
</div>
|
758
760
|
<div class="method">
|
759
761
|
<div class="title">
|
760
|
-
<a name="
|
762
|
+
<a name="M000327"></a><b>ancestor?</b>( mod )
|
761
763
|
</div>
|
762
764
|
<div class="description">
|
763
765
|
<p>
|
@@ -771,8 +773,8 @@ Is a given class or module an ancestor of this class or module?
|
|
771
773
|
</pre>
|
772
774
|
</div>
|
773
775
|
<div class="sourcecode">
|
774
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
775
|
-
<div id="
|
776
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000327_source')" id="l_M000327_source">show source</a> ]</p>
|
777
|
+
<div id="M000327_source" class="dyn-source">
|
776
778
|
<pre>
|
777
779
|
<span class="ruby-comment cmt"># File lib/core/facets/module/ancestor.rb, line 11</span>
|
778
780
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ancestor?</span>( <span class="ruby-identifier">mod</span> )
|
@@ -784,7 +786,7 @@ Is a given class or module an ancestor of this class or module?
|
|
784
786
|
</div>
|
785
787
|
<div class="method">
|
786
788
|
<div class="title">
|
787
|
-
<a name="
|
789
|
+
<a name="M000325"></a><b>basename</b>()
|
788
790
|
</div>
|
789
791
|
<div class="description">
|
790
792
|
<p>
|
@@ -801,7 +803,7 @@ Returns the root name of the module/class.
|
|
801
803
|
</pre>
|
802
804
|
<p>
|
803
805
|
For anonymous modules this will provide a <a
|
804
|
-
href="Module.html#
|
806
|
+
href="Module.html#M000325">basename</a> based on Module#inspect.
|
805
807
|
</p>
|
806
808
|
<pre>
|
807
809
|
m = Module.new
|
@@ -812,8 +814,8 @@ href="Module.html#M000344">basename</a> based on Module#inspect.
|
|
812
814
|
</pre>
|
813
815
|
</div>
|
814
816
|
<div class="sourcecode">
|
815
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
816
|
-
<div id="
|
817
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000325_source')" id="l_M000325_source">show source</a> ]</p>
|
818
|
+
<div id="M000325_source" class="dyn-source">
|
817
819
|
<pre>
|
818
820
|
<span class="ruby-comment cmt"># File lib/core/facets/module/basename.rb, line 22</span>
|
819
821
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">basename</span>
|
@@ -829,7 +831,7 @@ href="Module.html#M000344">basename</a> based on Module#inspect.
|
|
829
831
|
</div>
|
830
832
|
<div class="method">
|
831
833
|
<div class="title">
|
832
|
-
<a name="
|
834
|
+
<a name="M000356"></a><b>basename</b>()
|
833
835
|
</div>
|
834
836
|
<div class="description">
|
835
837
|
<p>
|
@@ -846,7 +848,7 @@ Returns the root name of the module/class.
|
|
846
848
|
</pre>
|
847
849
|
<p>
|
848
850
|
For anonymous modules this will provide a <a
|
849
|
-
href="Module.html#
|
851
|
+
href="Module.html#M000325">basename</a> based on Module#inspect.
|
850
852
|
</p>
|
851
853
|
<pre>
|
852
854
|
m = Module.new
|
@@ -857,8 +859,8 @@ href="Module.html#M000344">basename</a> based on Module#inspect.
|
|
857
859
|
</pre>
|
858
860
|
</div>
|
859
861
|
<div class="sourcecode">
|
860
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
861
|
-
<div id="
|
862
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000356_source')" id="l_M000356_source">show source</a> ]</p>
|
863
|
+
<div id="M000356_source" class="dyn-source">
|
862
864
|
<pre>
|
863
865
|
<span class="ruby-comment cmt"># File lib/core/facets/module/basename.rb, line 22</span>
|
864
866
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">basename</span>
|
@@ -874,7 +876,7 @@ href="Module.html#M000344">basename</a> based on Module#inspect.
|
|
874
876
|
</div>
|
875
877
|
<div class="method">
|
876
878
|
<div class="title">
|
877
|
-
<a name="
|
879
|
+
<a name="M000292"></a><b>class_def</b>(name, &blk)
|
878
880
|
</div>
|
879
881
|
<div class="description">
|
880
882
|
<p>
|
@@ -885,8 +887,8 @@ Defines an instance method within a class.
|
|
885
887
|
</pre>
|
886
888
|
</div>
|
887
889
|
<div class="sourcecode">
|
888
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
889
|
-
<div id="
|
890
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000292_source')" id="l_M000292_source">show source</a> ]</p>
|
891
|
+
<div id="M000292_source" class="dyn-source">
|
890
892
|
<pre>
|
891
893
|
<span class="ruby-comment cmt"># File lib/core/facets/metaid.rb, line 109</span>
|
892
894
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">class_def</span> <span class="ruby-identifier">name</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>
|
@@ -898,47 +900,47 @@ Defines an instance method within a class.
|
|
898
900
|
</div>
|
899
901
|
<div class="method">
|
900
902
|
<div class="title">
|
901
|
-
<a name="
|
903
|
+
<a name="M000344"></a><b>class_load</b>( path )
|
902
904
|
</div>
|
903
905
|
<div class="description">
|
904
906
|
<p>
|
905
|
-
Alias for <a href="Module.html#
|
907
|
+
Alias for <a href="Module.html#M000310">module_load</a>
|
906
908
|
</p>
|
907
909
|
</div>
|
908
910
|
</div>
|
909
911
|
<div class="method">
|
910
912
|
<div class="title">
|
911
|
-
<a name="
|
913
|
+
<a name="M000313"></a><b>class_load</b>( path )
|
912
914
|
</div>
|
913
915
|
<div class="description">
|
914
916
|
<p>
|
915
|
-
Alias for <a href="Module.html#
|
917
|
+
Alias for <a href="Module.html#M000310">module_load</a>
|
916
918
|
</p>
|
917
919
|
</div>
|
918
920
|
</div>
|
919
921
|
<div class="method">
|
920
922
|
<div class="title">
|
921
|
-
<a name="
|
923
|
+
<a name="M000312"></a><b>class_require</b>( path )
|
922
924
|
</div>
|
923
925
|
<div class="description">
|
924
926
|
<p>
|
925
|
-
Alias for <a href="Module.html#
|
927
|
+
Alias for <a href="Module.html#M000311">module_require</a>
|
926
928
|
</p>
|
927
929
|
</div>
|
928
930
|
</div>
|
929
931
|
<div class="method">
|
930
932
|
<div class="title">
|
931
|
-
<a name="
|
933
|
+
<a name="M000343"></a><b>class_require</b>( path )
|
932
934
|
</div>
|
933
935
|
<div class="description">
|
934
936
|
<p>
|
935
|
-
Alias for <a href="Module.html#
|
937
|
+
Alias for <a href="Module.html#M000311">module_require</a>
|
936
938
|
</p>
|
937
939
|
</div>
|
938
940
|
</div>
|
939
941
|
<div class="method">
|
940
942
|
<div class="title">
|
941
|
-
<a name="
|
943
|
+
<a name="M000329"></a><b>conflict?</b>(other)
|
942
944
|
</div>
|
943
945
|
<div class="description">
|
944
946
|
<p>
|
@@ -962,8 +964,8 @@ Detect conflicts.
|
|
962
964
|
</pre>
|
963
965
|
</div>
|
964
966
|
<div class="sourcecode">
|
965
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
966
|
-
<div id="
|
967
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000329_source')" id="l_M000329_source">show source</a> ]</p>
|
968
|
+
<div id="M000329_source" class="dyn-source">
|
967
969
|
<pre>
|
968
970
|
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line 21</span>
|
969
971
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">conflict?</span>(<span class="ruby-identifier">other</span>)
|
@@ -979,7 +981,7 @@ Detect conflicts.
|
|
979
981
|
</div>
|
980
982
|
<div class="method">
|
981
983
|
<div class="title">
|
982
|
-
<a name="
|
984
|
+
<a name="M000298"></a><b>conflict?</b>(other)
|
983
985
|
</div>
|
984
986
|
<div class="description">
|
985
987
|
<p>
|
@@ -1003,8 +1005,8 @@ Detect conflicts.
|
|
1003
1005
|
</pre>
|
1004
1006
|
</div>
|
1005
1007
|
<div class="sourcecode">
|
1006
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1007
|
-
<div id="
|
1008
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000298_source')" id="l_M000298_source">show source</a> ]</p>
|
1009
|
+
<div id="M000298_source" class="dyn-source">
|
1008
1010
|
<pre>
|
1009
1011
|
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line 21</span>
|
1010
1012
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">conflict?</span>(<span class="ruby-identifier">other</span>)
|
@@ -1020,11 +1022,11 @@ Detect conflicts.
|
|
1020
1022
|
</div>
|
1021
1023
|
<div class="method">
|
1022
1024
|
<div class="title">
|
1023
|
-
<a name="
|
1025
|
+
<a name="M000307"></a><b>instance_method_defined?</b>(meth)
|
1024
1026
|
</div>
|
1025
1027
|
<div class="description">
|
1026
1028
|
<p>
|
1027
|
-
Query whether an instance method <a href="Module.html#
|
1029
|
+
Query whether an instance method <a href="Module.html#M000315">is</a>
|
1028
1030
|
defined for the module.
|
1029
1031
|
</p>
|
1030
1032
|
<pre>
|
@@ -1033,8 +1035,8 @@ defined for the module.
|
|
1033
1035
|
</pre>
|
1034
1036
|
</div>
|
1035
1037
|
<div class="sourcecode">
|
1036
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1037
|
-
<div id="
|
1038
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000307_source')" id="l_M000307_source">show source</a> ]</p>
|
1039
|
+
<div id="M000307_source" class="dyn-source">
|
1038
1040
|
<pre>
|
1039
1041
|
<span class="ruby-comment cmt"># File lib/core/facets/module/instance_methods.rb, line 24</span>
|
1040
1042
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_method_defined?</span>(<span class="ruby-identifier">meth</span>)
|
@@ -1046,11 +1048,11 @@ defined for the module.
|
|
1046
1048
|
</div>
|
1047
1049
|
<div class="method">
|
1048
1050
|
<div class="title">
|
1049
|
-
<a name="
|
1051
|
+
<a name="M000338"></a><b>instance_method_defined?</b>(meth)
|
1050
1052
|
</div>
|
1051
1053
|
<div class="description">
|
1052
1054
|
<p>
|
1053
|
-
Query whether an instance method <a href="Module.html#
|
1055
|
+
Query whether an instance method <a href="Module.html#M000315">is</a>
|
1054
1056
|
defined for the module.
|
1055
1057
|
</p>
|
1056
1058
|
<pre>
|
@@ -1059,8 +1061,8 @@ defined for the module.
|
|
1059
1061
|
</pre>
|
1060
1062
|
</div>
|
1061
1063
|
<div class="sourcecode">
|
1062
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1063
|
-
<div id="
|
1064
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000338_source')" id="l_M000338_source">show source</a> ]</p>
|
1065
|
+
<div id="M000338_source" class="dyn-source">
|
1064
1066
|
<pre>
|
1065
1067
|
<span class="ruby-comment cmt"># File lib/core/facets/module/instance_methods.rb, line 24</span>
|
1066
1068
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">instance_method_defined?</span>(<span class="ruby-identifier">meth</span>)
|
@@ -1072,18 +1074,18 @@ defined for the module.
|
|
1072
1074
|
</div>
|
1073
1075
|
<div class="method">
|
1074
1076
|
<div class="title">
|
1075
|
-
<a name="
|
1077
|
+
<a name="M000321"></a><b>integrate</b>(mod, &block)
|
1076
1078
|
</div>
|
1077
1079
|
<div class="description">
|
1078
1080
|
<p>
|
1079
|
-
Using <a href="Module.html#
|
1080
|
-
href="Module.html#
|
1081
|
-
included <a href="Module.html#
|
1081
|
+
Using <a href="Module.html#M000321">integrate</a> <a
|
1082
|
+
href="Module.html#M000315">is</a> just like using include except the module
|
1083
|
+
included <a href="Module.html#M000315">is</a> a reconstruction of the one
|
1082
1084
|
given altered by the commands given in the block.
|
1083
1085
|
</p>
|
1084
1086
|
<p>
|
1085
1087
|
Convenient commands available are: rename, redef, remove, nodef and <a
|
1086
|
-
href="Module.html#
|
1088
|
+
href="Module.html#M000324">wrap</a>. But any module method can be used.
|
1087
1089
|
</p>
|
1088
1090
|
<pre>
|
1089
1091
|
module W
|
@@ -1102,9 +1104,9 @@ href="Module.html#M000342">wrap</a>. But any module method can be used.
|
|
1102
1104
|
x.y #=> missing method error
|
1103
1105
|
</pre>
|
1104
1106
|
<p>
|
1105
|
-
This <a href="Module.html#
|
1106
|
-
href="Module.html#
|
1107
|
-
href="Module.html#
|
1107
|
+
This <a href="Module.html#M000315">is</a> like <a
|
1108
|
+
href="Module.html#M000320">revisal</a>, but <a
|
1109
|
+
href="Module.html#M000320">revisal</a> only returns the reconstructred
|
1108
1110
|
module. It does not include it.
|
1109
1111
|
</p>
|
1110
1112
|
<pre>
|
@@ -1112,10 +1114,10 @@ module. It does not include it.
|
|
1112
1114
|
</pre>
|
1113
1115
|
</div>
|
1114
1116
|
<div class="sourcecode">
|
1115
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1116
|
-
<div id="
|
1117
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000321_source')" id="l_M000321_source">show source</a> ]</p>
|
1118
|
+
<div id="M000321_source" class="dyn-source">
|
1117
1119
|
<pre>
|
1118
|
-
<span class="ruby-comment cmt"># File lib/core/facets/module/revise.rb, line
|
1120
|
+
<span class="ruby-comment cmt"># File lib/core/facets/module/revise.rb, line 51</span>
|
1119
1121
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">integrate</span>(<span class="ruby-identifier">mod</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
1120
1122
|
<span class="ruby-comment cmt">#include mod.revisal( &blk )</span>
|
1121
1123
|
<span class="ruby-identifier">m</span> = <span class="ruby-constant">Module</span>.<span class="ruby-identifier">new</span>{ <span class="ruby-identifier">include</span> <span class="ruby-identifier">mod</span> }
|
@@ -1128,18 +1130,18 @@ module. It does not include it.
|
|
1128
1130
|
</div>
|
1129
1131
|
<div class="method">
|
1130
1132
|
<div class="title">
|
1131
|
-
<a name="
|
1133
|
+
<a name="M000352"></a><b>integrate</b>(mod, &block)
|
1132
1134
|
</div>
|
1133
1135
|
<div class="description">
|
1134
1136
|
<p>
|
1135
|
-
Using <a href="Module.html#
|
1136
|
-
href="Module.html#
|
1137
|
-
included <a href="Module.html#
|
1137
|
+
Using <a href="Module.html#M000321">integrate</a> <a
|
1138
|
+
href="Module.html#M000315">is</a> just like using include except the module
|
1139
|
+
included <a href="Module.html#M000315">is</a> a reconstruction of the one
|
1138
1140
|
given altered by the commands given in the block.
|
1139
1141
|
</p>
|
1140
1142
|
<p>
|
1141
1143
|
Convenient commands available are: rename, redef, remove, nodef and <a
|
1142
|
-
href="Module.html#
|
1144
|
+
href="Module.html#M000324">wrap</a>. But any module method can be used.
|
1143
1145
|
</p>
|
1144
1146
|
<pre>
|
1145
1147
|
module W
|
@@ -1158,9 +1160,9 @@ href="Module.html#M000342">wrap</a>. But any module method can be used.
|
|
1158
1160
|
x.y #=> missing method error
|
1159
1161
|
</pre>
|
1160
1162
|
<p>
|
1161
|
-
This <a href="Module.html#
|
1162
|
-
href="Module.html#
|
1163
|
-
href="Module.html#
|
1163
|
+
This <a href="Module.html#M000315">is</a> like <a
|
1164
|
+
href="Module.html#M000320">revisal</a>, but <a
|
1165
|
+
href="Module.html#M000320">revisal</a> only returns the reconstructred
|
1164
1166
|
module. It does not include it.
|
1165
1167
|
</p>
|
1166
1168
|
<pre>
|
@@ -1168,10 +1170,10 @@ module. It does not include it.
|
|
1168
1170
|
</pre>
|
1169
1171
|
</div>
|
1170
1172
|
<div class="sourcecode">
|
1171
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1172
|
-
<div id="
|
1173
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000352_source')" id="l_M000352_source">show source</a> ]</p>
|
1174
|
+
<div id="M000352_source" class="dyn-source">
|
1173
1175
|
<pre>
|
1174
|
-
<span class="ruby-comment cmt"># File lib/core/facets/module/revise.rb, line
|
1176
|
+
<span class="ruby-comment cmt"># File lib/core/facets/module/revise.rb, line 51</span>
|
1175
1177
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">integrate</span>(<span class="ruby-identifier">mod</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
1176
1178
|
<span class="ruby-comment cmt">#include mod.revisal( &blk )</span>
|
1177
1179
|
<span class="ruby-identifier">m</span> = <span class="ruby-constant">Module</span>.<span class="ruby-identifier">new</span>{ <span class="ruby-identifier">include</span> <span class="ruby-identifier">mod</span> }
|
@@ -1184,16 +1186,16 @@ module. It does not include it.
|
|
1184
1186
|
</div>
|
1185
1187
|
<div class="method">
|
1186
1188
|
<div class="title">
|
1187
|
-
<a name="
|
1189
|
+
<a name="M000346"></a><b>is</b>(*mods)
|
1188
1190
|
</div>
|
1189
1191
|
<div class="description">
|
1190
1192
|
<p>
|
1191
|
-
alias_method :<a href="Module.html#
|
1193
|
+
alias_method :<a href="Module.html#M000315">is</a>, :include
|
1192
1194
|
</p>
|
1193
1195
|
</div>
|
1194
1196
|
<div class="sourcecode">
|
1195
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1196
|
-
<div id="
|
1197
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000346_source')" id="l_M000346_source">show source</a> ]</p>
|
1198
|
+
<div id="M000346_source" class="dyn-source">
|
1197
1199
|
<pre>
|
1198
1200
|
<span class="ruby-comment cmt"># File lib/core/facets/module/is.rb, line 27</span>
|
1199
1201
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">mods</span>)
|
@@ -1215,16 +1217,16 @@ alias_method :<a href="Module.html#M000334">is</a>, :include
|
|
1215
1217
|
</div>
|
1216
1218
|
<div class="method">
|
1217
1219
|
<div class="title">
|
1218
|
-
<a name="
|
1220
|
+
<a name="M000315"></a><b>is</b>(*mods)
|
1219
1221
|
</div>
|
1220
1222
|
<div class="description">
|
1221
1223
|
<p>
|
1222
|
-
alias_method :<a href="Module.html#
|
1224
|
+
alias_method :<a href="Module.html#M000315">is</a>, :include
|
1223
1225
|
</p>
|
1224
1226
|
</div>
|
1225
1227
|
<div class="sourcecode">
|
1226
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1227
|
-
<div id="
|
1228
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000315_source')" id="l_M000315_source">show source</a> ]</p>
|
1229
|
+
<div id="M000315_source" class="dyn-source">
|
1228
1230
|
<pre>
|
1229
1231
|
<span class="ruby-comment cmt"># File lib/core/facets/module/is.rb, line 27</span>
|
1230
1232
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">mods</span>)
|
@@ -1246,7 +1248,7 @@ alias_method :<a href="Module.html#M000334">is</a>, :include
|
|
1246
1248
|
</div>
|
1247
1249
|
<div class="method">
|
1248
1250
|
<div class="title">
|
1249
|
-
<a name="
|
1251
|
+
<a name="M000314"></a><b>is?</b>(base)
|
1250
1252
|
</div>
|
1251
1253
|
<div class="description">
|
1252
1254
|
<p>
|
@@ -1262,8 +1264,8 @@ Is a given class or module an ancestor of this class or module?
|
|
1262
1264
|
</pre>
|
1263
1265
|
</div>
|
1264
1266
|
<div class="sourcecode">
|
1265
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1266
|
-
<div id="
|
1267
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000314_source')" id="l_M000314_source">show source</a> ]</p>
|
1268
|
+
<div id="M000314_source" class="dyn-source">
|
1267
1269
|
<pre>
|
1268
1270
|
<span class="ruby-comment cmt"># File lib/core/facets/module/is.rb, line 13</span>
|
1269
1271
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is?</span>(<span class="ruby-identifier">base</span>)
|
@@ -1275,7 +1277,7 @@ Is a given class or module an ancestor of this class or module?
|
|
1275
1277
|
</div>
|
1276
1278
|
<div class="method">
|
1277
1279
|
<div class="title">
|
1278
|
-
<a name="
|
1280
|
+
<a name="M000345"></a><b>is?</b>(base)
|
1279
1281
|
</div>
|
1280
1282
|
<div class="description">
|
1281
1283
|
<p>
|
@@ -1291,8 +1293,8 @@ Is a given class or module an ancestor of this class or module?
|
|
1291
1293
|
</pre>
|
1292
1294
|
</div>
|
1293
1295
|
<div class="sourcecode">
|
1294
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1295
|
-
<div id="
|
1296
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000345_source')" id="l_M000345_source">show source</a> ]</p>
|
1297
|
+
<div id="M000345_source" class="dyn-source">
|
1296
1298
|
<pre>
|
1297
1299
|
<span class="ruby-comment cmt"># File lib/core/facets/module/is.rb, line 13</span>
|
1298
1300
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is?</span>(<span class="ruby-identifier">base</span>)
|
@@ -1304,7 +1306,55 @@ Is a given class or module an ancestor of this class or module?
|
|
1304
1306
|
</div>
|
1305
1307
|
<div class="method">
|
1306
1308
|
<div class="title">
|
1307
|
-
<a name="
|
1309
|
+
<a name="M000297"></a><b>methodize</b>()
|
1310
|
+
</div>
|
1311
|
+
<div class="description">
|
1312
|
+
<p>
|
1313
|
+
Translate a module name to a suitable method name.
|
1314
|
+
</p>
|
1315
|
+
<pre>
|
1316
|
+
My::CoolClass.methodize => "my__cool_class"
|
1317
|
+
</pre>
|
1318
|
+
</div>
|
1319
|
+
<div class="sourcecode">
|
1320
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000297_source')" id="l_M000297_source">show source</a> ]</p>
|
1321
|
+
<div id="M000297_source" class="dyn-source">
|
1322
|
+
<pre>
|
1323
|
+
<span class="ruby-comment cmt"># File lib/core/facets/module/methodize.rb, line 9</span>
|
1324
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">methodize</span>
|
1325
|
+
<span class="ruby-identifier">name</span>.<span class="ruby-identifier">methodize</span>
|
1326
|
+
<span class="ruby-keyword kw">end</span>
|
1327
|
+
</pre>
|
1328
|
+
</div>
|
1329
|
+
</div>
|
1330
|
+
</div>
|
1331
|
+
<div class="method">
|
1332
|
+
<div class="title">
|
1333
|
+
<a name="M000328"></a><b>methodize</b>()
|
1334
|
+
</div>
|
1335
|
+
<div class="description">
|
1336
|
+
<p>
|
1337
|
+
Translate a module name to a suitable method name.
|
1338
|
+
</p>
|
1339
|
+
<pre>
|
1340
|
+
My::CoolClass.methodize => "my__cool_class"
|
1341
|
+
</pre>
|
1342
|
+
</div>
|
1343
|
+
<div class="sourcecode">
|
1344
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000328_source')" id="l_M000328_source">show source</a> ]</p>
|
1345
|
+
<div id="M000328_source" class="dyn-source">
|
1346
|
+
<pre>
|
1347
|
+
<span class="ruby-comment cmt"># File lib/core/facets/module/methodize.rb, line 9</span>
|
1348
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">methodize</span>
|
1349
|
+
<span class="ruby-identifier">name</span>.<span class="ruby-identifier">methodize</span>
|
1350
|
+
<span class="ruby-keyword kw">end</span>
|
1351
|
+
</pre>
|
1352
|
+
</div>
|
1353
|
+
</div>
|
1354
|
+
</div>
|
1355
|
+
<div class="method">
|
1356
|
+
<div class="title">
|
1357
|
+
<a name="M000348"></a><b>modspace</b>()
|
1308
1358
|
</div>
|
1309
1359
|
<div class="description">
|
1310
1360
|
<p>
|
@@ -1319,15 +1369,15 @@ Returns the module‘s container module.
|
|
1319
1369
|
Example::Demo.modspace #=> Example
|
1320
1370
|
</pre>
|
1321
1371
|
<p>
|
1322
|
-
See also <a href="Module.html#
|
1372
|
+
See also <a href="Module.html#M000325">Module#basename</a>.
|
1323
1373
|
</p>
|
1324
1374
|
<pre>
|
1325
1375
|
CREDIT: Trans
|
1326
1376
|
</pre>
|
1327
1377
|
</div>
|
1328
1378
|
<div class="sourcecode">
|
1329
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1330
|
-
<div id="
|
1379
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000348_source')" id="l_M000348_source">show source</a> ]</p>
|
1380
|
+
<div id="M000348_source" class="dyn-source">
|
1331
1381
|
<pre>
|
1332
1382
|
<span class="ruby-comment cmt"># File lib/core/facets/module/modspace.rb, line 16</span>
|
1333
1383
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">modspace</span>
|
@@ -1340,7 +1390,7 @@ See also <a href="Module.html#M000344">Module#basename</a>.
|
|
1340
1390
|
</div>
|
1341
1391
|
<div class="method">
|
1342
1392
|
<div class="title">
|
1343
|
-
<a name="
|
1393
|
+
<a name="M000317"></a><b>modspace</b>()
|
1344
1394
|
</div>
|
1345
1395
|
<div class="description">
|
1346
1396
|
<p>
|
@@ -1355,15 +1405,15 @@ Returns the module‘s container module.
|
|
1355
1405
|
Example::Demo.modspace #=> Example
|
1356
1406
|
</pre>
|
1357
1407
|
<p>
|
1358
|
-
See also <a href="Module.html#
|
1408
|
+
See also <a href="Module.html#M000325">Module#basename</a>.
|
1359
1409
|
</p>
|
1360
1410
|
<pre>
|
1361
1411
|
CREDIT: Trans
|
1362
1412
|
</pre>
|
1363
1413
|
</div>
|
1364
1414
|
<div class="sourcecode">
|
1365
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1366
|
-
<div id="
|
1415
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000317_source')" id="l_M000317_source">show source</a> ]</p>
|
1416
|
+
<div id="M000317_source" class="dyn-source">
|
1367
1417
|
<pre>
|
1368
1418
|
<span class="ruby-comment cmt"># File lib/core/facets/module/modspace.rb, line 16</span>
|
1369
1419
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">modspace</span>
|
@@ -1376,7 +1426,7 @@ See also <a href="Module.html#M000344">Module#basename</a>.
|
|
1376
1426
|
</div>
|
1377
1427
|
<div class="method">
|
1378
1428
|
<div class="title">
|
1379
|
-
<a name="
|
1429
|
+
<a name="M000310"></a><b>module_load</b>( path )
|
1380
1430
|
</div>
|
1381
1431
|
<div class="description">
|
1382
1432
|
<p>
|
@@ -1388,12 +1438,12 @@ Load file into module/class namespace.
|
|
1388
1438
|
</div>
|
1389
1439
|
<div class="aka">
|
1390
1440
|
This method is also aliased as
|
1391
|
-
<a href="Module.html#
|
1392
|
-
<a href="Module.html#
|
1441
|
+
<a href="Module.html#M000313">class_load</a>
|
1442
|
+
<a href="Module.html#M000344">class_load</a>
|
1393
1443
|
</div>
|
1394
1444
|
<div class="sourcecode">
|
1395
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1396
|
-
<div id="
|
1445
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000310_source')" id="l_M000310_source">show source</a> ]</p>
|
1446
|
+
<div id="M000310_source" class="dyn-source">
|
1397
1447
|
<pre>
|
1398
1448
|
<span class="ruby-comment cmt"># File lib/core/facets/module/module_load.rb, line 9</span>
|
1399
1449
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">module_load</span>( <span class="ruby-identifier">path</span> )
|
@@ -1415,7 +1465,7 @@ Load file into module/class namespace.
|
|
1415
1465
|
</div>
|
1416
1466
|
<div class="method">
|
1417
1467
|
<div class="title">
|
1418
|
-
<a name="
|
1468
|
+
<a name="M000341"></a><b>module_load</b>( path )
|
1419
1469
|
</div>
|
1420
1470
|
<div class="description">
|
1421
1471
|
<p>
|
@@ -1426,8 +1476,8 @@ Load file into module/class namespace.
|
|
1426
1476
|
</pre>
|
1427
1477
|
</div>
|
1428
1478
|
<div class="sourcecode">
|
1429
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1430
|
-
<div id="
|
1479
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000341_source')" id="l_M000341_source">show source</a> ]</p>
|
1480
|
+
<div id="M000341_source" class="dyn-source">
|
1431
1481
|
<pre>
|
1432
1482
|
<span class="ruby-comment cmt"># File lib/core/facets/module/module_load.rb, line 9</span>
|
1433
1483
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">module_load</span>( <span class="ruby-identifier">path</span> )
|
@@ -1449,7 +1499,7 @@ Load file into module/class namespace.
|
|
1449
1499
|
</div>
|
1450
1500
|
<div class="method">
|
1451
1501
|
<div class="title">
|
1452
|
-
<a name="
|
1502
|
+
<a name="M000309"></a><b>module_method_defined?</b>(meth)
|
1453
1503
|
</div>
|
1454
1504
|
<div class="description">
|
1455
1505
|
<p>
|
@@ -1459,7 +1509,7 @@ Alias for singleton_method_defined?
|
|
1459
1509
|
</div>
|
1460
1510
|
<div class="method">
|
1461
1511
|
<div class="title">
|
1462
|
-
<a name="
|
1512
|
+
<a name="M000340"></a><b>module_method_defined?</b>(meth)
|
1463
1513
|
</div>
|
1464
1514
|
<div class="description">
|
1465
1515
|
<p>
|
@@ -1469,7 +1519,7 @@ Alias for singleton_method_defined?
|
|
1469
1519
|
</div>
|
1470
1520
|
<div class="method">
|
1471
1521
|
<div class="title">
|
1472
|
-
<a name="
|
1522
|
+
<a name="M000311"></a><b>module_require</b>( path )
|
1473
1523
|
</div>
|
1474
1524
|
<div class="description">
|
1475
1525
|
<p>
|
@@ -1479,9 +1529,14 @@ Require file into module/class namespace.
|
|
1479
1529
|
CREDIT: Trans
|
1480
1530
|
</pre>
|
1481
1531
|
</div>
|
1532
|
+
<div class="aka">
|
1533
|
+
This method is also aliased as
|
1534
|
+
<a href="Module.html#M000312">class_require</a>
|
1535
|
+
<a href="Module.html#M000343">class_require</a>
|
1536
|
+
</div>
|
1482
1537
|
<div class="sourcecode">
|
1483
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1484
|
-
<div id="
|
1538
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000311_source')" id="l_M000311_source">show source</a> ]</p>
|
1539
|
+
<div id="M000311_source" class="dyn-source">
|
1485
1540
|
<pre>
|
1486
1541
|
<span class="ruby-comment cmt"># File lib/core/facets/module/module_load.rb, line 27</span>
|
1487
1542
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">module_require</span>( <span class="ruby-identifier">path</span> )
|
@@ -1513,7 +1568,7 @@ Require file into module/class namespace.
|
|
1513
1568
|
</div>
|
1514
1569
|
<div class="method">
|
1515
1570
|
<div class="title">
|
1516
|
-
<a name="
|
1571
|
+
<a name="M000342"></a><b>module_require</b>( path )
|
1517
1572
|
</div>
|
1518
1573
|
<div class="description">
|
1519
1574
|
<p>
|
@@ -1523,14 +1578,9 @@ Require file into module/class namespace.
|
|
1523
1578
|
CREDIT: Trans
|
1524
1579
|
</pre>
|
1525
1580
|
</div>
|
1526
|
-
<div class="aka">
|
1527
|
-
This method is also aliased as
|
1528
|
-
<a href="Module.html#M000331">class_require</a>
|
1529
|
-
<a href="Module.html#M000361">class_require</a>
|
1530
|
-
</div>
|
1531
1581
|
<div class="sourcecode">
|
1532
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1533
|
-
<div id="
|
1582
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000342_source')" id="l_M000342_source">show source</a> ]</p>
|
1583
|
+
<div id="M000342_source" class="dyn-source">
|
1534
1584
|
<pre>
|
1535
1585
|
<span class="ruby-comment cmt"># File lib/core/facets/module/module_load.rb, line 27</span>
|
1536
1586
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">module_require</span>( <span class="ruby-identifier">path</span> )
|
@@ -1562,11 +1612,11 @@ Require file into module/class namespace.
|
|
1562
1612
|
</div>
|
1563
1613
|
<div class="method">
|
1564
1614
|
<div class="title">
|
1565
|
-
<a name="
|
1615
|
+
<a name="M000347"></a><b>nesting</b>()
|
1566
1616
|
</div>
|
1567
1617
|
<div class="description">
|
1568
1618
|
<p>
|
1569
|
-
Show a modules <a href="Module.html#
|
1619
|
+
Show a modules <a href="Module.html#M000316">nesting</a> in module
|
1570
1620
|
namespaces.
|
1571
1621
|
</p>
|
1572
1622
|
<pre>
|
@@ -1576,8 +1626,8 @@ namespaces.
|
|
1576
1626
|
</pre>
|
1577
1627
|
</div>
|
1578
1628
|
<div class="sourcecode">
|
1579
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1580
|
-
<div id="
|
1629
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000347_source')" id="l_M000347_source">show source</a> ]</p>
|
1630
|
+
<div id="M000347_source" class="dyn-source">
|
1581
1631
|
<pre>
|
1582
1632
|
<span class="ruby-comment cmt"># File lib/core/facets/module/nesting.rb, line 9</span>
|
1583
1633
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nesting</span>
|
@@ -1593,11 +1643,11 @@ namespaces.
|
|
1593
1643
|
</div>
|
1594
1644
|
<div class="method">
|
1595
1645
|
<div class="title">
|
1596
|
-
<a name="
|
1646
|
+
<a name="M000316"></a><b>nesting</b>()
|
1597
1647
|
</div>
|
1598
1648
|
<div class="description">
|
1599
1649
|
<p>
|
1600
|
-
Show a modules <a href="Module.html#
|
1650
|
+
Show a modules <a href="Module.html#M000316">nesting</a> in module
|
1601
1651
|
namespaces.
|
1602
1652
|
</p>
|
1603
1653
|
<pre>
|
@@ -1607,8 +1657,8 @@ namespaces.
|
|
1607
1657
|
</pre>
|
1608
1658
|
</div>
|
1609
1659
|
<div class="sourcecode">
|
1610
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1611
|
-
<div id="
|
1660
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000316_source')" id="l_M000316_source">show source</a> ]</p>
|
1661
|
+
<div id="M000316_source" class="dyn-source">
|
1612
1662
|
<pre>
|
1613
1663
|
<span class="ruby-comment cmt"># File lib/core/facets/module/nesting.rb, line 9</span>
|
1614
1664
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nesting</span>
|
@@ -1624,7 +1674,7 @@ namespaces.
|
|
1624
1674
|
</div>
|
1625
1675
|
<div class="method">
|
1626
1676
|
<div class="title">
|
1627
|
-
<a name="
|
1677
|
+
<a name="M000305"></a><b>pathize</b>()
|
1628
1678
|
</div>
|
1629
1679
|
<div class="description">
|
1630
1680
|
<p>
|
@@ -1639,17 +1689,18 @@ Examples
|
|
1639
1689
|
</pre>
|
1640
1690
|
</div>
|
1641
1691
|
<div class="sourcecode">
|
1642
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1643
|
-
<div id="
|
1692
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000305_source')" id="l_M000305_source">show source</a> ]</p>
|
1693
|
+
<div id="M000305_source" class="dyn-source">
|
1644
1694
|
<pre>
|
1645
|
-
<span class="ruby-comment cmt"># File lib/core/facets/module/pathize.rb, line
|
1695
|
+
<span class="ruby-comment cmt"># File lib/core/facets/module/pathize.rb, line 11</span>
|
1646
1696
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pathize</span>
|
1647
|
-
<span class="ruby-identifier">
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1651
|
-
|
1652
|
-
|
1697
|
+
<span class="ruby-identifier">name</span>.<span class="ruby-identifier">pathize</span>
|
1698
|
+
<span class="ruby-comment cmt">#to_s.</span>
|
1699
|
+
<span class="ruby-comment cmt"># gsub(/::/, '/').</span>
|
1700
|
+
<span class="ruby-comment cmt"># gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').</span>
|
1701
|
+
<span class="ruby-comment cmt"># gsub(/([a-z\d])([A-Z])/,'\1_\2').</span>
|
1702
|
+
<span class="ruby-comment cmt"># tr("-", "_").</span>
|
1703
|
+
<span class="ruby-comment cmt"># downcase</span>
|
1653
1704
|
<span class="ruby-keyword kw">end</span>
|
1654
1705
|
</pre>
|
1655
1706
|
</div>
|
@@ -1657,7 +1708,7 @@ Examples
|
|
1657
1708
|
</div>
|
1658
1709
|
<div class="method">
|
1659
1710
|
<div class="title">
|
1660
|
-
<a name="
|
1711
|
+
<a name="M000336"></a><b>pathize</b>()
|
1661
1712
|
</div>
|
1662
1713
|
<div class="description">
|
1663
1714
|
<p>
|
@@ -1672,17 +1723,18 @@ Examples
|
|
1672
1723
|
</pre>
|
1673
1724
|
</div>
|
1674
1725
|
<div class="sourcecode">
|
1675
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1676
|
-
<div id="
|
1726
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000336_source')" id="l_M000336_source">show source</a> ]</p>
|
1727
|
+
<div id="M000336_source" class="dyn-source">
|
1677
1728
|
<pre>
|
1678
|
-
<span class="ruby-comment cmt"># File lib/core/facets/module/pathize.rb, line
|
1729
|
+
<span class="ruby-comment cmt"># File lib/core/facets/module/pathize.rb, line 11</span>
|
1679
1730
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pathize</span>
|
1680
|
-
<span class="ruby-identifier">
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1685
|
-
|
1731
|
+
<span class="ruby-identifier">name</span>.<span class="ruby-identifier">pathize</span>
|
1732
|
+
<span class="ruby-comment cmt">#to_s.</span>
|
1733
|
+
<span class="ruby-comment cmt"># gsub(/::/, '/').</span>
|
1734
|
+
<span class="ruby-comment cmt"># gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').</span>
|
1735
|
+
<span class="ruby-comment cmt"># gsub(/([a-z\d])([A-Z])/,'\1_\2').</span>
|
1736
|
+
<span class="ruby-comment cmt"># tr("-", "_").</span>
|
1737
|
+
<span class="ruby-comment cmt"># downcase</span>
|
1686
1738
|
<span class="ruby-keyword kw">end</span>
|
1687
1739
|
</pre>
|
1688
1740
|
</div>
|
@@ -1690,7 +1742,7 @@ Examples
|
|
1690
1742
|
</div>
|
1691
1743
|
<div class="method">
|
1692
1744
|
<div class="title">
|
1693
|
-
<a name="
|
1745
|
+
<a name="M000295"></a><b>prepend</b>(aspect)
|
1694
1746
|
</div>
|
1695
1747
|
<div class="description">
|
1696
1748
|
<p>
|
@@ -1713,8 +1765,8 @@ Prepend an <tt>aspect</tt> module to a module.
|
|
1713
1765
|
</pre>
|
1714
1766
|
</div>
|
1715
1767
|
<div class="sourcecode">
|
1716
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1717
|
-
<div id="
|
1768
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000295_source')" id="l_M000295_source">show source</a> ]</p>
|
1769
|
+
<div id="M000295_source" class="dyn-source">
|
1718
1770
|
<pre>
|
1719
1771
|
<span class="ruby-comment cmt"># File lib/core/facets/module/prepend.rb, line 19</span>
|
1720
1772
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">prepend</span>(<span class="ruby-identifier">aspect</span>)
|
@@ -1727,7 +1779,7 @@ Prepend an <tt>aspect</tt> module to a module.
|
|
1727
1779
|
</div>
|
1728
1780
|
<div class="method">
|
1729
1781
|
<div class="title">
|
1730
|
-
<a name="
|
1782
|
+
<a name="M000326"></a><b>prepend</b>(aspect)
|
1731
1783
|
</div>
|
1732
1784
|
<div class="description">
|
1733
1785
|
<p>
|
@@ -1750,8 +1802,8 @@ Prepend an <tt>aspect</tt> module to a module.
|
|
1750
1802
|
</pre>
|
1751
1803
|
</div>
|
1752
1804
|
<div class="sourcecode">
|
1753
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1754
|
-
<div id="
|
1805
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000326_source')" id="l_M000326_source">show source</a> ]</p>
|
1806
|
+
<div id="M000326_source" class="dyn-source">
|
1755
1807
|
<pre>
|
1756
1808
|
<span class="ruby-comment cmt"># File lib/core/facets/module/prepend.rb, line 19</span>
|
1757
1809
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">prepend</span>(<span class="ruby-identifier">aspect</span>)
|
@@ -1764,7 +1816,7 @@ Prepend an <tt>aspect</tt> module to a module.
|
|
1764
1816
|
</div>
|
1765
1817
|
<div class="method">
|
1766
1818
|
<div class="title">
|
1767
|
-
<a name="
|
1819
|
+
<a name="M000331"></a><b>private_conflict?</b>(other)
|
1768
1820
|
</div>
|
1769
1821
|
<div class="description">
|
1770
1822
|
<p>
|
@@ -1772,8 +1824,8 @@ Like conflict?, but checks only private methods.
|
|
1772
1824
|
</p>
|
1773
1825
|
</div>
|
1774
1826
|
<div class="sourcecode">
|
1775
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1776
|
-
<div id="
|
1827
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000331_source')" id="l_M000331_source">show source</a> ]</p>
|
1828
|
+
<div id="M000331_source" class="dyn-source">
|
1777
1829
|
<pre>
|
1778
1830
|
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line 43</span>
|
1779
1831
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">private_conflict?</span>(<span class="ruby-identifier">other</span>)
|
@@ -1786,7 +1838,7 @@ Like conflict?, but checks only private methods.
|
|
1786
1838
|
</div>
|
1787
1839
|
<div class="method">
|
1788
1840
|
<div class="title">
|
1789
|
-
<a name="
|
1841
|
+
<a name="M000300"></a><b>private_conflict?</b>(other)
|
1790
1842
|
</div>
|
1791
1843
|
<div class="description">
|
1792
1844
|
<p>
|
@@ -1794,8 +1846,8 @@ Like conflict?, but checks only private methods.
|
|
1794
1846
|
</p>
|
1795
1847
|
</div>
|
1796
1848
|
<div class="sourcecode">
|
1797
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1798
|
-
<div id="
|
1849
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000300_source')" id="l_M000300_source">show source</a> ]</p>
|
1850
|
+
<div id="M000300_source" class="dyn-source">
|
1799
1851
|
<pre>
|
1800
1852
|
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line 43</span>
|
1801
1853
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">private_conflict?</span>(<span class="ruby-identifier">other</span>)
|
@@ -1808,7 +1860,7 @@ Like conflict?, but checks only private methods.
|
|
1808
1860
|
</div>
|
1809
1861
|
<div class="method">
|
1810
1862
|
<div class="title">
|
1811
|
-
<a name="
|
1863
|
+
<a name="M000301"></a><b>protected_conflict?</b>(other)
|
1812
1864
|
</div>
|
1813
1865
|
<div class="description">
|
1814
1866
|
<p>
|
@@ -1816,8 +1868,8 @@ Like conflict?, but checks only protected methods.
|
|
1816
1868
|
</p>
|
1817
1869
|
</div>
|
1818
1870
|
<div class="sourcecode">
|
1819
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1820
|
-
<div id="
|
1871
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000301_source')" id="l_M000301_source">show source</a> ]</p>
|
1872
|
+
<div id="M000301_source" class="dyn-source">
|
1821
1873
|
<pre>
|
1822
1874
|
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line 50</span>
|
1823
1875
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">protected_conflict?</span>(<span class="ruby-identifier">other</span>)
|
@@ -1830,7 +1882,7 @@ Like conflict?, but checks only protected methods.
|
|
1830
1882
|
</div>
|
1831
1883
|
<div class="method">
|
1832
1884
|
<div class="title">
|
1833
|
-
<a name="
|
1885
|
+
<a name="M000332"></a><b>protected_conflict?</b>(other)
|
1834
1886
|
</div>
|
1835
1887
|
<div class="description">
|
1836
1888
|
<p>
|
@@ -1838,8 +1890,8 @@ Like conflict?, but checks only protected methods.
|
|
1838
1890
|
</p>
|
1839
1891
|
</div>
|
1840
1892
|
<div class="sourcecode">
|
1841
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1842
|
-
<div id="
|
1893
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000332_source')" id="l_M000332_source">show source</a> ]</p>
|
1894
|
+
<div id="M000332_source" class="dyn-source">
|
1843
1895
|
<pre>
|
1844
1896
|
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line 50</span>
|
1845
1897
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">protected_conflict?</span>(<span class="ruby-identifier">other</span>)
|
@@ -1852,7 +1904,7 @@ Like conflict?, but checks only protected methods.
|
|
1852
1904
|
</div>
|
1853
1905
|
<div class="method">
|
1854
1906
|
<div class="title">
|
1855
|
-
<a name="
|
1907
|
+
<a name="M000299"></a><b>public_conflict?</b>(other)
|
1856
1908
|
</div>
|
1857
1909
|
<div class="description">
|
1858
1910
|
<p>
|
@@ -1860,8 +1912,8 @@ Like conflict?, but checks only public methods.
|
|
1860
1912
|
</p>
|
1861
1913
|
</div>
|
1862
1914
|
<div class="sourcecode">
|
1863
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1864
|
-
<div id="
|
1915
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000299_source')" id="l_M000299_source">show source</a> ]</p>
|
1916
|
+
<div id="M000299_source" class="dyn-source">
|
1865
1917
|
<pre>
|
1866
1918
|
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line 36</span>
|
1867
1919
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">public_conflict?</span>(<span class="ruby-identifier">other</span>)
|
@@ -1874,7 +1926,7 @@ Like conflict?, but checks only public methods.
|
|
1874
1926
|
</div>
|
1875
1927
|
<div class="method">
|
1876
1928
|
<div class="title">
|
1877
|
-
<a name="
|
1929
|
+
<a name="M000330"></a><b>public_conflict?</b>(other)
|
1878
1930
|
</div>
|
1879
1931
|
<div class="description">
|
1880
1932
|
<p>
|
@@ -1882,8 +1934,8 @@ Like conflict?, but checks only public methods.
|
|
1882
1934
|
</p>
|
1883
1935
|
</div>
|
1884
1936
|
<div class="sourcecode">
|
1885
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1886
|
-
<div id="
|
1937
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000330_source')" id="l_M000330_source">show source</a> ]</p>
|
1938
|
+
<div id="M000330_source" class="dyn-source">
|
1887
1939
|
<pre>
|
1888
1940
|
<span class="ruby-comment cmt"># File lib/core/facets/module/conflict.rb, line 36</span>
|
1889
1941
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">public_conflict?</span>(<span class="ruby-identifier">other</span>)
|
@@ -1896,27 +1948,27 @@ Like conflict?, but checks only public methods.
|
|
1896
1948
|
</div>
|
1897
1949
|
<div class="method">
|
1898
1950
|
<div class="title">
|
1899
|
-
<a name="
|
1951
|
+
<a name="M000320"></a><b>revisal</b>(&blk)
|
1900
1952
|
</div>
|
1901
1953
|
<div class="description">
|
1902
1954
|
<p>
|
1903
|
-
Alias for <a href="Module.html#
|
1955
|
+
Alias for <a href="Module.html#M000319">revise</a>
|
1904
1956
|
</p>
|
1905
1957
|
</div>
|
1906
1958
|
</div>
|
1907
1959
|
<div class="method">
|
1908
1960
|
<div class="title">
|
1909
|
-
<a name="
|
1961
|
+
<a name="M000351"></a><b>revisal</b>(&blk)
|
1910
1962
|
</div>
|
1911
1963
|
<div class="description">
|
1912
1964
|
<p>
|
1913
|
-
Alias for <a href="Module.html#
|
1965
|
+
Alias for <a href="Module.html#M000319">revise</a>
|
1914
1966
|
</p>
|
1915
1967
|
</div>
|
1916
1968
|
</div>
|
1917
1969
|
<div class="method">
|
1918
1970
|
<div class="title">
|
1919
|
-
<a name="
|
1971
|
+
<a name="M000319"></a><b>revise</b>(&blk)
|
1920
1972
|
</div>
|
1921
1973
|
<div class="description">
|
1922
1974
|
<p>
|
@@ -1929,14 +1981,14 @@ into the new one.
|
|
1929
1981
|
</div>
|
1930
1982
|
<div class="aka">
|
1931
1983
|
This method is also aliased as
|
1932
|
-
<a href="Module.html#
|
1933
|
-
<a href="Module.html#
|
1984
|
+
<a href="Module.html#M000320">revisal</a>
|
1985
|
+
<a href="Module.html#M000351">revisal</a>
|
1934
1986
|
</div>
|
1935
1987
|
<div class="sourcecode">
|
1936
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1937
|
-
<div id="
|
1988
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000319_source')" id="l_M000319_source">show source</a> ]</p>
|
1989
|
+
<div id="M000319_source" class="dyn-source">
|
1938
1990
|
<pre>
|
1939
|
-
<span class="ruby-comment cmt"># File lib/core/facets/module/revise.rb, line
|
1991
|
+
<span class="ruby-comment cmt"># File lib/core/facets/module/revise.rb, line 13</span>
|
1940
1992
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">revise</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
1941
1993
|
<span class="ruby-identifier">base</span> = <span class="ruby-keyword kw">self</span>
|
1942
1994
|
<span class="ruby-identifier">nm</span> = <span class="ruby-constant">Module</span>.<span class="ruby-identifier">new</span>{ <span class="ruby-identifier">include</span> <span class="ruby-identifier">base</span> }
|
@@ -1949,7 +2001,7 @@ into the new one.
|
|
1949
2001
|
</div>
|
1950
2002
|
<div class="method">
|
1951
2003
|
<div class="title">
|
1952
|
-
<a name="
|
2004
|
+
<a name="M000350"></a><b>revise</b>(&blk)
|
1953
2005
|
</div>
|
1954
2006
|
<div class="description">
|
1955
2007
|
<p>
|
@@ -1961,10 +2013,10 @@ into the new one.
|
|
1961
2013
|
</pre>
|
1962
2014
|
</div>
|
1963
2015
|
<div class="sourcecode">
|
1964
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1965
|
-
<div id="
|
2016
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000350_source')" id="l_M000350_source">show source</a> ]</p>
|
2017
|
+
<div id="M000350_source" class="dyn-source">
|
1966
2018
|
<pre>
|
1967
|
-
<span class="ruby-comment cmt"># File lib/core/facets/module/revise.rb, line
|
2019
|
+
<span class="ruby-comment cmt"># File lib/core/facets/module/revise.rb, line 13</span>
|
1968
2020
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">revise</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
1969
2021
|
<span class="ruby-identifier">base</span> = <span class="ruby-keyword kw">self</span>
|
1970
2022
|
<span class="ruby-identifier">nm</span> = <span class="ruby-constant">Module</span>.<span class="ruby-identifier">new</span>{ <span class="ruby-identifier">include</span> <span class="ruby-identifier">base</span> }
|
@@ -1977,12 +2029,12 @@ into the new one.
|
|
1977
2029
|
</div>
|
1978
2030
|
<div class="method">
|
1979
2031
|
<div class="title">
|
1980
|
-
<a name="
|
2032
|
+
<a name="M000339"></a><b>singleton_method_defined?</b>(meth)
|
1981
2033
|
</div>
|
1982
2034
|
<div class="description">
|
1983
2035
|
<p>
|
1984
2036
|
Query whether a normal (singleton) method <a
|
1985
|
-
href="Module.html#
|
2037
|
+
href="Module.html#M000315">is</a> defined for the module.
|
1986
2038
|
</p>
|
1987
2039
|
<pre>
|
1988
2040
|
CREDIT: Gavin Sinclair
|
@@ -1990,8 +2042,8 @@ href="Module.html#M000334">is</a> defined for the module.
|
|
1990
2042
|
</pre>
|
1991
2043
|
</div>
|
1992
2044
|
<div class="sourcecode">
|
1993
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
1994
|
-
<div id="
|
2045
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000339_source')" id="l_M000339_source">show source</a> ]</p>
|
2046
|
+
<div id="M000339_source" class="dyn-source">
|
1995
2047
|
<pre>
|
1996
2048
|
<span class="ruby-comment cmt"># File lib/core/facets/module/instance_methods.rb, line 33</span>
|
1997
2049
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">singleton_method_defined?</span>(<span class="ruby-identifier">meth</span>)
|
@@ -2003,12 +2055,12 @@ href="Module.html#M000334">is</a> defined for the module.
|
|
2003
2055
|
</div>
|
2004
2056
|
<div class="method">
|
2005
2057
|
<div class="title">
|
2006
|
-
<a name="
|
2058
|
+
<a name="M000308"></a><b>singleton_method_defined?</b>(meth)
|
2007
2059
|
</div>
|
2008
2060
|
<div class="description">
|
2009
2061
|
<p>
|
2010
2062
|
Query whether a normal (singleton) method <a
|
2011
|
-
href="Module.html#
|
2063
|
+
href="Module.html#M000315">is</a> defined for the module.
|
2012
2064
|
</p>
|
2013
2065
|
<pre>
|
2014
2066
|
CREDIT: Gavin Sinclair
|
@@ -2017,12 +2069,12 @@ href="Module.html#M000334">is</a> defined for the module.
|
|
2017
2069
|
</div>
|
2018
2070
|
<div class="aka">
|
2019
2071
|
This method is also aliased as
|
2020
|
-
<a href="Module.html#
|
2021
|
-
<a href="Module.html#
|
2072
|
+
<a href="Module.html#M000309">module_method_defined?</a>
|
2073
|
+
<a href="Module.html#M000340">module_method_defined?</a>
|
2022
2074
|
</div>
|
2023
2075
|
<div class="sourcecode">
|
2024
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2025
|
-
<div id="
|
2076
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000308_source')" id="l_M000308_source">show source</a> ]</p>
|
2077
|
+
<div id="M000308_source" class="dyn-source">
|
2026
2078
|
<pre>
|
2027
2079
|
<span class="ruby-comment cmt"># File lib/core/facets/module/instance_methods.rb, line 33</span>
|
2028
2080
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">singleton_method_defined?</span>(<span class="ruby-identifier">meth</span>)
|
@@ -2034,7 +2086,7 @@ href="Module.html#M000334">is</a> defined for the module.
|
|
2034
2086
|
</div>
|
2035
2087
|
<div class="method">
|
2036
2088
|
<div class="title">
|
2037
|
-
<a name="
|
2089
|
+
<a name="M000353"></a><b>spacename</b>()
|
2038
2090
|
</div>
|
2039
2091
|
<div class="description">
|
2040
2092
|
<p>
|
@@ -2053,15 +2105,15 @@ Returns the name of module‘s container module.
|
|
2053
2105
|
This used to be called <tt>dirname</tt>.
|
2054
2106
|
</p>
|
2055
2107
|
<p>
|
2056
|
-
See also <a href="Module.html#
|
2108
|
+
See also <a href="Module.html#M000325">Module#basename</a>.
|
2057
2109
|
</p>
|
2058
2110
|
<pre>
|
2059
2111
|
CREDIT: Trans
|
2060
2112
|
</pre>
|
2061
2113
|
</div>
|
2062
2114
|
<div class="sourcecode">
|
2063
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2064
|
-
<div id="
|
2115
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000353_source')" id="l_M000353_source">show source</a> ]</p>
|
2116
|
+
<div id="M000353_source" class="dyn-source">
|
2065
2117
|
<pre>
|
2066
2118
|
<span class="ruby-comment cmt"># File lib/core/facets/module/spacename.rb, line 19</span>
|
2067
2119
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">spacename</span>
|
@@ -2074,7 +2126,7 @@ See also <a href="Module.html#M000344">Module#basename</a>.
|
|
2074
2126
|
</div>
|
2075
2127
|
<div class="method">
|
2076
2128
|
<div class="title">
|
2077
|
-
<a name="
|
2129
|
+
<a name="M000322"></a><b>spacename</b>()
|
2078
2130
|
</div>
|
2079
2131
|
<div class="description">
|
2080
2132
|
<p>
|
@@ -2093,15 +2145,15 @@ Returns the name of module‘s container module.
|
|
2093
2145
|
This used to be called <tt>dirname</tt>.
|
2094
2146
|
</p>
|
2095
2147
|
<p>
|
2096
|
-
See also <a href="Module.html#
|
2148
|
+
See also <a href="Module.html#M000325">Module#basename</a>.
|
2097
2149
|
</p>
|
2098
2150
|
<pre>
|
2099
2151
|
CREDIT: Trans
|
2100
2152
|
</pre>
|
2101
2153
|
</div>
|
2102
2154
|
<div class="sourcecode">
|
2103
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
2104
|
-
<div id="
|
2155
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000322_source')" id="l_M000322_source">show source</a> ]</p>
|
2156
|
+
<div id="M000322_source" class="dyn-source">
|
2105
2157
|
<pre>
|
2106
2158
|
<span class="ruby-comment cmt"># File lib/core/facets/module/spacename.rb, line 19</span>
|
2107
2159
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">spacename</span>
|
@@ -2114,32 +2166,32 @@ See also <a href="Module.html#M000344">Module#basename</a>.
|
|
2114
2166
|
</div>
|
2115
2167
|
<div class="method">
|
2116
2168
|
<div class="title">
|
2117
|
-
<a name="
|
2169
|
+
<a name="M000355"></a><b>wrap</b>( sym, &blk )
|
2118
2170
|
</div>
|
2119
2171
|
<div class="description">
|
2120
2172
|
<p>
|
2121
|
-
Alias for <a href="Module.html#
|
2173
|
+
Alias for <a href="Module.html#M000323">wrap_method</a>
|
2122
2174
|
</p>
|
2123
2175
|
</div>
|
2124
2176
|
</div>
|
2125
2177
|
<div class="method">
|
2126
2178
|
<div class="title">
|
2127
|
-
<a name="
|
2179
|
+
<a name="M000324"></a><b>wrap</b>( sym, &blk )
|
2128
2180
|
</div>
|
2129
2181
|
<div class="description">
|
2130
2182
|
<p>
|
2131
|
-
Alias for <a href="Module.html#
|
2183
|
+
Alias for <a href="Module.html#M000323">wrap_method</a>
|
2132
2184
|
</p>
|
2133
2185
|
</div>
|
2134
2186
|
</div>
|
2135
2187
|
<div class="method">
|
2136
2188
|
<div class="title">
|
2137
|
-
<a name="
|
2189
|
+
<a name="M000323"></a><b>wrap_method</b>( sym, &blk )
|
2138
2190
|
</div>
|
2139
2191
|
<div class="description">
|
2140
2192
|
<p>
|
2141
2193
|
Creates a new method wrapping the previous of the same name. Reference to
|
2142
|
-
the old method <a href="Module.html#
|
2194
|
+
the old method <a href="Module.html#M000315">is</a> passed into the new
|
2143
2195
|
definition block as the first parameter.
|
2144
2196
|
</p>
|
2145
2197
|
<pre>
|
@@ -2150,17 +2202,22 @@ definition block as the first parameter.
|
|
2150
2202
|
</pre>
|
2151
2203
|
<p>
|
2152
2204
|
Keep in mind that this can not be used to <a
|
2153
|
-
href="Module.html#
|
2205
|
+
href="Module.html#M000324">wrap</a> methods that take a block.
|
2154
2206
|
</p>
|
2155
2207
|
<pre>
|
2156
2208
|
CREDIT: Trans
|
2157
2209
|
</pre>
|
2158
2210
|