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
@@ -93,15 +93,15 @@ file is represented by a object which is populated with strings.
|
|
93
93
|
|
94
94
|
<div class="sectiontitle">Methods</div>
|
95
95
|
<ul>
|
96
|
-
<li><a href="#
|
97
|
-
<li><a href="#
|
98
|
-
<li><a href="#
|
99
|
-
<li><a href="#
|
100
|
-
<li><a href="#
|
101
|
-
<li><a href="#
|
102
|
-
<li><a href="#
|
103
|
-
<li><a href="#
|
104
|
-
<li><a href="#
|
96
|
+
<li><a href="#M000411">[]</a></li>
|
97
|
+
<li><a href="#M000412">[]=</a></li>
|
98
|
+
<li><a href="#M000410">new</a></li>
|
99
|
+
<li><a href="#M000416">read_comment_from_file</a></li>
|
100
|
+
<li><a href="#M000415">read_from_file</a></li>
|
101
|
+
<li><a href="#M000413">restore</a></li>
|
102
|
+
<li><a href="#M000418">to_s</a></li>
|
103
|
+
<li><a href="#M000414">update</a></li>
|
104
|
+
<li><a href="#M000417">write_to_file</a></li>
|
105
105
|
</ul>
|
106
106
|
|
107
107
|
|
@@ -137,11 +137,11 @@ holds the comments on the top of the file
|
|
137
137
|
<div class="sectiontitle">Public Class methods</div>
|
138
138
|
<div class="method">
|
139
139
|
<div class="title">
|
140
|
-
<a name="
|
140
|
+
<a name="M000410"></a><b>new</b>(path, load=nil)
|
141
141
|
</div>
|
142
142
|
<div class="description">
|
143
143
|
<p>
|
144
|
-
Creating a <a href="Ini.html#
|
144
|
+
Creating a <a href="Ini.html#M000410">new</a> <a href="Ini.html">Ini</a>
|
145
145
|
object
|
146
146
|
</p>
|
147
147
|
<p>
|
@@ -154,8 +154,8 @@ data if possible
|
|
154
154
|
</pre>
|
155
155
|
</div>
|
156
156
|
<div class="sourcecode">
|
157
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
158
|
-
<div id="
|
157
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000410_source')" id="l_M000410_source">show source</a> ]</p>
|
158
|
+
<div id="M000410_source" class="dyn-source">
|
159
159
|
<pre>
|
160
160
|
<span class="ruby-comment cmt"># File lib/more/facets/ini.rb, line 105</span>
|
161
161
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">load</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -172,7 +172,7 @@ data if possible
|
|
172
172
|
</div>
|
173
173
|
<div class="method">
|
174
174
|
<div class="title">
|
175
|
-
<a name="
|
175
|
+
<a name="M000416"></a><b>read_comment_from_file</b>(path)
|
176
176
|
</div>
|
177
177
|
<div class="description">
|
178
178
|
<p>
|
@@ -186,8 +186,8 @@ Returns a string with comments from the beginning of the ini file.
|
|
186
186
|
</p>
|
187
187
|
</div>
|
188
188
|
<div class="sourcecode">
|
189
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
190
|
-
<div id="
|
189
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000416_source')" id="l_M000416_source">show source</a> ]</p>
|
190
|
+
<div id="M000416_source" class="dyn-source">
|
191
191
|
<pre>
|
192
192
|
<span class="ruby-comment cmt"># File lib/more/facets/ini.rb, line 198</span>
|
193
193
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Ini</span>.<span class="ruby-identifier">read_comment_from_file</span>(<span class="ruby-identifier">path</span>)
|
@@ -208,7 +208,7 @@ Returns a string with comments from the beginning of the ini file.
|
|
208
208
|
</div>
|
209
209
|
<div class="method">
|
210
210
|
<div class="title">
|
211
|
-
<a name="
|
211
|
+
<a name="M000415"></a><b>read_from_file</b>(path)
|
212
212
|
</div>
|
213
213
|
<div class="description">
|
214
214
|
<p>
|
@@ -222,8 +222,8 @@ returns a hash which represents the data from the file
|
|
222
222
|
</p>
|
223
223
|
</div>
|
224
224
|
<div class="sourcecode">
|
225
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
226
|
-
<div id="
|
225
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000415_source')" id="l_M000415_source">show source</a> ]</p>
|
226
|
+
<div id="M000415_source" class="dyn-source">
|
227
227
|
<pre>
|
228
228
|
<span class="ruby-comment cmt"># File lib/more/facets/ini.rb, line 153</span>
|
229
229
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Ini</span>.<span class="ruby-identifier">read_from_file</span>(<span class="ruby-identifier">path</span>)
|
@@ -268,7 +268,7 @@ returns a hash which represents the data from the file
|
|
268
268
|
</div>
|
269
269
|
<div class="method">
|
270
270
|
<div class="title">
|
271
|
-
<a name="
|
271
|
+
<a name="M000418"></a><b>to_s</b>(inihash={})
|
272
272
|
</div>
|
273
273
|
<div class="description">
|
274
274
|
<p>
|
@@ -283,8 +283,8 @@ Returns a string in the ini file format.
|
|
283
283
|
</p>
|
284
284
|
</div>
|
285
285
|
<div class="sourcecode">
|
286
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
287
|
-
<div id="
|
286
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000418_source')" id="l_M000418_source">show source</a> ]</p>
|
287
|
+
<div id="M000418_source" class="dyn-source">
|
288
288
|
<pre>
|
289
289
|
<span class="ruby-comment cmt"># File lib/more/facets/ini.rb, line 243</span>
|
290
290
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Ini</span>.<span class="ruby-identifier">to_s</span>(<span class="ruby-identifier">inihash</span>={})
|
@@ -312,7 +312,7 @@ Returns a string in the ini file format.
|
|
312
312
|
</div>
|
313
313
|
<div class="method">
|
314
314
|
<div class="title">
|
315
|
-
<a name="
|
315
|
+
<a name="M000417"></a><b>write_to_file</b>(path, inihash={}, comment=nil)
|
316
316
|
</div>
|
317
317
|
<div class="description">
|
318
318
|
<p>
|
@@ -329,8 +329,8 @@ string with comments which appear on the
|
|
329
329
|
</pre>
|
330
330
|
</div>
|
331
331
|
<div class="sourcecode">
|
332
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
333
|
-
<div id="
|
332
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000417_source')" id="l_M000417_source">show source</a> ]</p>
|
333
|
+
<div id="M000417_source" class="dyn-source">
|
334
334
|
<pre>
|
335
335
|
<span class="ruby-comment cmt"># File lib/more/facets/ini.rb, line 220</span>
|
336
336
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Ini</span>.<span class="ruby-identifier">write_to_file</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">inihash</span>={}, <span class="ruby-identifier">comment</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -355,7 +355,7 @@ string with comments which appear on the
|
|
355
355
|
<div class="sectiontitle">Public Instance methods</div>
|
356
356
|
<div class="method">
|
357
357
|
<div class="title">
|
358
|
-
<a name="
|
358
|
+
<a name="M000411"></a><b>[]</b>(key)
|
359
359
|
</div>
|
360
360
|
<div class="description">
|
361
361
|
<p>
|
@@ -363,8 +363,8 @@ Retrive the ini data for the key <tt>key</tt>
|
|
363
363
|
</p>
|
364
364
|
</div>
|
365
365
|
<div class="sourcecode">
|
366
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
367
|
-
<div id="
|
366
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000411_source')" id="l_M000411_source">show source</a> ]</p>
|
367
|
+
<div id="M000411_source" class="dyn-source">
|
368
368
|
<pre>
|
369
369
|
<span class="ruby-comment cmt"># File lib/more/facets/ini.rb, line 117</span>
|
370
370
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
|
@@ -376,7 +376,7 @@ Retrive the ini data for the key <tt>key</tt>
|
|
376
376
|
</div>
|
377
377
|
<div class="method">
|
378
378
|
<div class="title">
|
379
|
-
<a name="
|
379
|
+
<a name="M000412"></a><b>[]=</b>(key, value)
|
380
380
|
</div>
|
381
381
|
<div class="description">
|
382
382
|
<p>
|
@@ -384,8 +384,8 @@ Set the ini data for the key <tt>key</tt>
|
|
384
384
|
</p>
|
385
385
|
</div>
|
386
386
|
<div class="sourcecode">
|
387
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
388
|
-
<div id="
|
387
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000412_source')" id="l_M000412_source">show source</a> ]</p>
|
388
|
+
<div id="M000412_source" class="dyn-source">
|
389
389
|
<pre>
|
390
390
|
<span class="ruby-comment cmt"># File lib/more/facets/ini.rb, line 124</span>
|
391
391
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
|
@@ -400,7 +400,7 @@ Set the ini data for the key <tt>key</tt>
|
|
400
400
|
</div>
|
401
401
|
<div class="method">
|
402
402
|
<div class="title">
|
403
|
-
<a name="
|
403
|
+
<a name="M000413"></a><b>restore</b>()
|
404
404
|
</div>
|
405
405
|
<div class="description">
|
406
406
|
<p>
|
@@ -408,8 +408,8 @@ Restores the data from file into the object
|
|
408
408
|
</p>
|
409
409
|
</div>
|
410
410
|
<div class="sourcecode">
|
411
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
412
|
-
<div id="
|
411
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000413_source')" id="l_M000413_source">show source</a> ]</p>
|
412
|
+
<div id="M000413_source" class="dyn-source">
|
413
413
|
<pre>
|
414
414
|
<span class="ruby-comment cmt"># File lib/more/facets/ini.rb, line 134</span>
|
415
415
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restore</span>()
|
@@ -422,7 +422,7 @@ Restores the data from file into the object
|
|
422
422
|
</div>
|
423
423
|
<div class="method">
|
424
424
|
<div class="title">
|
425
|
-
<a name="
|
425
|
+
<a name="M000414"></a><b>update</b>()
|
426
426
|
</div>
|
427
427
|
<div class="description">
|
428
428
|
<p>
|
@@ -430,8 +430,8 @@ Store data from the object in the file
|
|
430
430
|
</p>
|
431
431
|
</div>
|
432
432
|
<div class="sourcecode">
|
433
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
434
|
-
<div id="
|
433
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000414_source')" id="l_M000414_source">show source</a> ]</p>
|
434
|
+
<div id="M000414_source" class="dyn-source">
|
435
435
|
<pre>
|
436
436
|
<span class="ruby-comment cmt"># File lib/more/facets/ini.rb, line 142</span>
|
437
437
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>()
|
@@ -75,7 +75,7 @@ Initialize modules, almost as if they were classes.
|
|
75
75
|
</p>
|
76
76
|
<p>
|
77
77
|
Alows a module to be used much like a class, by defining a <a
|
78
|
-
href="Instantiable.html#
|
78
|
+
href="Instantiable.html#M000916">new</a> method that creates a class on
|
79
79
|
demand.
|
80
80
|
</p>
|
81
81
|
</div>
|
@@ -84,8 +84,8 @@ demand.
|
|
84
84
|
|
85
85
|
<div class="sectiontitle">Methods</div>
|
86
86
|
<ul>
|
87
|
-
<li><a href="#
|
88
|
-
<li><a href="#
|
87
|
+
<li><a href="#M000915">append_features</a></li>
|
88
|
+
<li><a href="#M000916">new</a></li>
|
89
89
|
</ul>
|
90
90
|
|
91
91
|
|
@@ -96,11 +96,11 @@ demand.
|
|
96
96
|
<div class="sectiontitle">Public Class methods</div>
|
97
97
|
<div class="method">
|
98
98
|
<div class="title">
|
99
|
-
<a name="
|
99
|
+
<a name="M000915"></a><b>append_features</b>(mod)
|
100
100
|
</div>
|
101
101
|
<div class="sourcecode">
|
102
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
103
|
-
<div id="
|
102
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000915_source')" id="l_M000915_source">show source</a> ]</p>
|
103
|
+
<div id="M000915_source" class="dyn-source">
|
104
104
|
<pre>
|
105
105
|
<span class="ruby-comment cmt"># File lib/more/facets/instantiable.rb, line 32</span>
|
106
106
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">append_features</span>(<span class="ruby-identifier">mod</span>)
|
@@ -113,7 +113,7 @@ demand.
|
|
113
113
|
<div class="sectiontitle">Public Instance methods</div>
|
114
114
|
<div class="method">
|
115
115
|
<div class="title">
|
116
|
-
<a name="
|
116
|
+
<a name="M000916"></a><b>new</b>(*args,&blk)
|
117
117
|
</div>
|
118
118
|
<div class="description">
|
119
119
|
<p>
|
@@ -121,8 +121,8 @@ Never use a class agian! ;)
|
|
121
121
|
</p>
|
122
122
|
</div>
|
123
123
|
<div class="sourcecode">
|
124
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
125
|
-
<div id="
|
124
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000916_source')" id="l_M000916_source">show source</a> ]</p>
|
125
|
+
<div id="M000916_source" class="dyn-source">
|
126
126
|
<pre>
|
127
127
|
<span class="ruby-comment cmt"># File lib/more/facets/instantiable.rb, line 38</span>
|
128
128
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
@@ -105,8 +105,8 @@ name is probably still out there.
|
|
105
105
|
|
106
106
|
<div class="sectiontitle">Methods</div>
|
107
107
|
<ul>
|
108
|
-
<li><a href="#
|
109
|
-
<li><a href="#
|
108
|
+
<li><a href="#M000853">append_features</a></li>
|
109
|
+
<li><a href="#M000854">singleton_method_added</a></li>
|
110
110
|
</ul>
|
111
111
|
|
112
112
|
|
@@ -117,11 +117,11 @@ name is probably still out there.
|
|
117
117
|
<div class="sectiontitle">Public Class methods</div>
|
118
118
|
<div class="method">
|
119
119
|
<div class="title">
|
120
|
-
<a name="
|
120
|
+
<a name="M000853"></a><b>append_features</b>(mod)
|
121
121
|
</div>
|
122
122
|
<div class="sourcecode">
|
123
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
124
|
-
<div id="
|
123
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000853_source')" id="l_M000853_source">show source</a> ]</p>
|
124
|
+
<div id="M000853_source" class="dyn-source">
|
125
125
|
<pre>
|
126
126
|
<span class="ruby-comment cmt"># File lib/more/facets/instantise.rb, line 77</span>
|
127
127
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">append_features</span>(<span class="ruby-identifier">mod</span>)
|
@@ -134,11 +134,11 @@ name is probably still out there.
|
|
134
134
|
<div class="sectiontitle">Public Instance methods</div>
|
135
135
|
<div class="method">
|
136
136
|
<div class="title">
|
137
|
-
<a name="
|
137
|
+
<a name="M000854"></a><b>singleton_method_added</b>( meth )
|
138
138
|
</div>
|
139
139
|
<div class="sourcecode">
|
140
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
141
|
-
<div id="
|
140
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000854_source')" id="l_M000854_source">show source</a> ]</p>
|
141
|
+
<div id="M000854_source" class="dyn-source">
|
142
142
|
<pre>
|
143
143
|
<span class="ruby-comment cmt"># File lib/more/facets/instantise.rb, line 81</span>
|
144
144
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">singleton_method_added</span>( <span class="ruby-identifier">meth</span> )
|
@@ -115,42 +115,42 @@ href="Interval.html">Interval</a> depends on #+ and #<=>, as well as
|
|
115
115
|
|
116
116
|
<div class="sectiontitle">Methods</div>
|
117
117
|
<ul>
|
118
|
-
<li><a href="#
|
119
|
-
<li><a href="#
|
120
|
-
<li><a href="#
|
121
|
-
<li><a href="#
|
122
|
-
<li><a href="#
|
123
|
-
<li><a href="#
|
124
|
-
<li><a href="#
|
125
|
-
<li><a href="#
|
126
|
-
<li><a href="#
|
127
|
-
<li><a href="#
|
128
|
-
<li><a href="#
|
129
|
-
<li><a href="#
|
130
|
-
<li><a href="#
|
131
|
-
<li><a href="#
|
132
|
-
<li><a href="#
|
133
|
-
<li><a href="#
|
134
|
-
<li><a href="#
|
135
|
-
<li><a href="#
|
136
|
-
<li><a href="#
|
137
|
-
<li><a href="#
|
138
|
-
<li><a href="#
|
139
|
-
<li><a href="#
|
140
|
-
<li><a href="#
|
141
|
-
<li><a href="#
|
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="#
|
118
|
+
<li><a href="#M000537">+@</a></li>
|
119
|
+
<li><a href="#M000538">-@</a></li>
|
120
|
+
<li><a href="#M000547">===</a></li>
|
121
|
+
<li><a href="#M000516">[]</a></li>
|
122
|
+
<li><a href="#M000523">begin</a></li>
|
123
|
+
<li><a href="#M000530">closed</a></li>
|
124
|
+
<li><a href="#M000527">degenerate?</a></li>
|
125
|
+
<li><a href="#M000529">direction</a></li>
|
126
|
+
<li><a href="#M000541">distance</a></li>
|
127
|
+
<li><a href="#M000549">each</a></li>
|
128
|
+
<li><a href="#M000524">end</a></li>
|
129
|
+
<li><a href="#M000551">eql?</a></li>
|
130
|
+
<li><a href="#M000525">exclude_begin?</a></li>
|
131
|
+
<li><a href="#M000526">exclude_end?</a></li>
|
132
|
+
<li><a href="#M000521">exclude_first?</a></li>
|
133
|
+
<li><a href="#M000522">exclude_last?</a></li>
|
134
|
+
<li><a href="#M000519">first</a></li>
|
135
|
+
<li><a href="#M000533">first_closed</a></li>
|
136
|
+
<li><a href="#M000535">first_opened</a></li>
|
137
|
+
<li><a href="#M000532">half_closed</a></li>
|
138
|
+
<li><a href="#M000546">include?</a></li>
|
139
|
+
<li><a href="#M000520">last</a></li>
|
140
|
+
<li><a href="#M000534">last_closed</a></li>
|
141
|
+
<li><a href="#M000536">last_opened</a></li>
|
142
|
+
<li><a href="#M000542">length</a></li>
|
143
|
+
<li><a href="#M000545">max</a></li>
|
144
|
+
<li><a href="#M000548">member?</a></li>
|
145
|
+
<li><a href="#M000544">min</a></li>
|
146
|
+
<li><a href="#M000517">new</a></li>
|
147
|
+
<li><a href="#M000528">null?</a></li>
|
148
|
+
<li><a href="#M000531">opened</a></li>
|
149
|
+
<li><a href="#M000540">reversed</a></li>
|
150
|
+
<li><a href="#M000518">sentinels</a></li>
|
151
|
+
<li><a href="#M000543">size</a></li>
|
152
|
+
<li><a href="#M000550">step</a></li>
|
153
|
+
<li><a href="#M000539">~</a></li>
|
154
154
|
</ul>
|
155
155
|
|
156
156
|
<div class="sectiontitle">Included Modules</div>
|
@@ -166,11 +166,11 @@ href="Interval.html">Interval</a> depends on #+ and #<=>, as well as
|
|
166
166
|
<div class="sectiontitle">Public Class methods</div>
|
167
167
|
<div class="method">
|
168
168
|
<div class="title">
|
169
|
-
<a name="
|
169
|
+
<a name="M000516"></a><b>[]</b>( *args )
|
170
170
|
</div>
|
171
171
|
<div class="sourcecode">
|
172
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
173
|
-
<div id="
|
172
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000516_source')" id="l_M000516_source">show source</a> ]</p>
|
173
|
+
<div id="M000516_source" class="dyn-source">
|
174
174
|
<pre>
|
175
175
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 89</span>
|
176
176
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-operator">[]</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">args</span> )
|
@@ -182,11 +182,11 @@ href="Interval.html">Interval</a> depends on #+ and #<=>, as well as
|
|
182
182
|
</div>
|
183
183
|
<div class="method">
|
184
184
|
<div class="title">
|
185
|
-
<a name="
|
185
|
+
<a name="M000517"></a><b>new</b>(first, last, exclude_first=false, exclude_last=false )
|
186
186
|
</div>
|
187
187
|
<div class="sourcecode">
|
188
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
189
|
-
<div id="
|
188
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000517_source')" id="l_M000517_source">show source</a> ]</p>
|
189
|
+
<div id="M000517_source" class="dyn-source">
|
190
190
|
<pre>
|
191
191
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 93</span>
|
192
192
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">first</span>, <span class="ruby-identifier">last</span>, <span class="ruby-identifier">exclude_first</span>=<span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">exclude_last</span>=<span class="ruby-keyword kw">false</span> )
|
@@ -204,19 +204,19 @@ href="Interval.html">Interval</a> depends on #+ and #<=>, as well as
|
|
204
204
|
<div class="sectiontitle">Public Instance methods</div>
|
205
205
|
<div class="method">
|
206
206
|
<div class="title">
|
207
|
-
<a name="
|
207
|
+
<a name="M000537"></a><b>+@</b>()
|
208
208
|
</div>
|
209
209
|
<div class="description">
|
210
210
|
<p>
|
211
|
-
Unary shorthands. These return a <a href="Interval.html#
|
212
|
-
interval exclusive of <a href="Interval.html#
|
213
|
-
href="Interval.html#
|
214
|
-
href="Interval.html#
|
211
|
+
Unary shorthands. These return a <a href="Interval.html#M000517">new</a>
|
212
|
+
interval exclusive of <a href="Interval.html#M000519">first</a>, <a
|
213
|
+
href="Interval.html#M000520">last</a> or both <a
|
214
|
+
href="Interval.html#M000518">sentinels</a>, repectively.
|
215
215
|
</p>
|
216
216
|
</div>
|
217
217
|
<div class="sourcecode">
|
218
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
219
|
-
<div id="
|
218
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000537_source')" id="l_M000537_source">show source</a> ]</p>
|
219
|
+
<div id="M000537_source" class="dyn-source">
|
220
220
|
<pre>
|
221
221
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 159</span>
|
222
222
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">+@</span> ; <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">first</span>, <span class="ruby-identifier">last</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">false</span>) ; <span class="ruby-keyword kw">end</span>
|
@@ -226,11 +226,11 @@ href="Interval.html#M000508">sentinels</a>, repectively.
|
|
226
226
|
</div>
|
227
227
|
<div class="method">
|
228
228
|
<div class="title">
|
229
|
-
<a name="
|
229
|
+
<a name="M000538"></a><b>-@</b>()
|
230
230
|
</div>
|
231
231
|
<div class="sourcecode">
|
232
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
233
|
-
<div id="
|
232
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000538_source')" id="l_M000538_source">show source</a> ]</p>
|
233
|
+
<div id="M000538_source" class="dyn-source">
|
234
234
|
<pre>
|
235
235
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 160</span>
|
236
236
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-@</span> ; <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">first</span>, <span class="ruby-identifier">last</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">true</span>) ; <span class="ruby-keyword kw">end</span>
|
@@ -240,7 +240,7 @@ href="Interval.html#M000508">sentinels</a>, repectively.
|
|
240
240
|
</div>
|
241
241
|
<div class="method">
|
242
242
|
<div class="title">
|
243
|
-
<a name="
|
243
|
+
<a name="M000547"></a><b>===</b>(x)
|
244
244
|
</div>
|
245
245
|
<div class="description">
|
246
246
|
<p>
|
@@ -250,27 +250,27 @@ Alias for include?
|
|
250
250
|
</div>
|
251
251
|
<div class="method">
|
252
252
|
<div class="title">
|
253
|
-
<a name="
|
253
|
+
<a name="M000523"></a><b>begin</b>()
|
254
254
|
</div>
|
255
255
|
<div class="description">
|
256
256
|
<p>
|
257
|
-
Alias for <a href="Interval.html#
|
257
|
+
Alias for <a href="Interval.html#M000519">first</a>
|
258
258
|
</p>
|
259
259
|
</div>
|
260
260
|
</div>
|
261
261
|
<div class="method">
|
262
262
|
<div class="title">
|
263
|
-
<a name="
|
263
|
+
<a name="M000530"></a><b>closed</b>()
|
264
264
|
</div>
|
265
265
|
<div class="description">
|
266
266
|
<p>
|
267
|
-
Returns a <a href="Interval.html#
|
268
|
-
both <a href="Interval.html#
|
267
|
+
Returns a <a href="Interval.html#M000517">new</a> interval inclusive of of
|
268
|
+
both <a href="Interval.html#M000518">sentinels</a>.
|
269
269
|
</p>
|
270
270
|
</div>
|
271
271
|
<div class="sourcecode">
|
272
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
273
|
-
<div id="
|
272
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000530_source')" id="l_M000530_source">show source</a> ]</p>
|
273
|
+
<div id="M000530_source" class="dyn-source">
|
274
274
|
<pre>
|
275
275
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 139</span>
|
276
276
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">closed</span>; <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@first</span>, <span class="ruby-ivar">@last</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">true</span>) ; <span class="ruby-keyword kw">end</span>
|
@@ -280,19 +280,19 @@ both <a href="Interval.html#M000508">sentinels</a>.
|
|
280
280
|
</div>
|
281
281
|
<div class="method">
|
282
282
|
<div class="title">
|
283
|
-
<a name="
|
283
|
+
<a name="M000527"></a><b>degenerate?</b>()
|
284
284
|
</div>
|
285
285
|
<div class="description">
|
286
286
|
<p>
|
287
287
|
Returns <tt>true</tt> if the start and <a
|
288
|
-
href="Interval.html#
|
289
|
-
href="Interval.html#
|
290
|
-
href="Interval.html#
|
288
|
+
href="Interval.html#M000524">end</a> <a
|
289
|
+
href="Interval.html#M000518">sentinels</a> are equal and the interval is <a
|
290
|
+
href="Interval.html#M000530">closed</a>; otherwise <tt>false</tt>.
|
291
291
|
</p>
|
292
292
|
</div>
|
293
293
|
<div class="sourcecode">
|
294
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
295
|
-
<div id="
|
294
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000527_source')" id="l_M000527_source">show source</a> ]</p>
|
295
|
+
<div id="M000527_source" class="dyn-source">
|
296
296
|
<pre>
|
297
297
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 125</span>
|
298
298
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">degenerate?</span> ; <span class="ruby-ivar">@direction</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">and</span> <span class="ruby-operator">!</span> (<span class="ruby-ivar">@exclusive_first</span> <span class="ruby-keyword kw">or</span> <span class="ruby-ivar">@exclusive_last</span>) ; <span class="ruby-keyword kw">end</span>
|
@@ -302,11 +302,11 @@ href="Interval.html#M000520">closed</a>; otherwise <tt>false</tt>.
|
|
302
302
|
</div>
|
303
303
|
<div class="method">
|
304
304
|
<div class="title">
|
305
|
-
<a name="
|
305
|
+
<a name="M000529"></a><b>direction</b>()
|
306
306
|
</div>
|
307
307
|
<div class="description">
|
308
308
|
<p>
|
309
|
-
Returns the <a href="Interval.html#
|
309
|
+
Returns the <a href="Interval.html#M000529">direction</a> of the interval
|
310
310
|
indicated by +1, 0 or -1.
|
311
311
|
</p>
|
312
312
|
<pre>
|
@@ -316,8 +316,8 @@ indicated by +1, 0 or -1.
|
|
316
316
|
</pre>
|
317
317
|
</div>
|
318
318
|
<div class="sourcecode">
|
319
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
320
|
-
<div id="
|
319
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000529_source')" id="l_M000529_source">show source</a> ]</p>
|
320
|
+
<div id="M000529_source" class="dyn-source">
|
321
321
|
<pre>
|
322
322
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 136</span>
|
323
323
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">direction</span> ; <span class="ruby-ivar">@direction</span> ; <span class="ruby-keyword kw">end</span>
|
@@ -327,28 +327,28 @@ indicated by +1, 0 or -1.
|
|
327
327
|
</div>
|
328
328
|
<div class="method">
|
329
329
|
<div class="title">
|
330
|
-
<a name="
|
330
|
+
<a name="M000541"></a><b>distance</b>()
|
331
331
|
</div>
|
332
332
|
<div class="description">
|
333
333
|
<p>
|
334
|
-
Returns the <a href="Interval.html#
|
335
|
-
the difference between the <a href="Interval.html#
|
336
|
-
href="Interval.html#
|
334
|
+
Returns the <a href="Interval.html#M000542">length</a> of the interval as
|
335
|
+
the difference between the <a href="Interval.html#M000519">first</a> and <a
|
336
|
+
href="Interval.html#M000520">last</a> elements. Returns <tt>nil</tt> if the
|
337
337
|
sentinal objects do not support <a
|
338
|
-
href="Interval.html#
|
339
|
-
href="Interval.html#
|
338
|
+
href="Interval.html#M000541">distance</a> comparison (<a
|
339
|
+
href="Interval.html#M000541">distance</a>). TODO: Add <tt>n</tt> parameter
|
340
340
|
to count segmentations like those produced by <a
|
341
|
-
href="Interval.html#
|
341
|
+
href="Interval.html#M000549">each</a>.
|
342
342
|
</p>
|
343
343
|
</div>
|
344
344
|
<div class="aka">
|
345
345
|
This method is also aliased as
|
346
|
-
<a href="Interval.html#
|
347
|
-
<a href="Interval.html#
|
346
|
+
<a href="Interval.html#M000542">length</a>
|
347
|
+
<a href="Interval.html#M000543">size</a>
|
348
348
|
</div>
|
349
349
|
<div class="sourcecode">
|
350
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
351
|
-
<div id="
|
350
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000541_source')" id="l_M000541_source">show source</a> ]</p>
|
351
|
+
<div id="M000541_source" class="dyn-source">
|
352
352
|
<pre>
|
353
353
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 175</span>
|
354
354
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">distance</span>
|
@@ -365,20 +365,20 @@ href="Interval.html#M000539">each</a>.
|
|
365
365
|
</div>
|
366
366
|
<div class="method">
|
367
367
|
<div class="title">
|
368
|
-
<a name="
|
368
|
+
<a name="M000549"></a><b>each</b>(n=1, d=nil) {|| ...}
|
369
369
|
</div>
|
370
370
|
<div class="description">
|
371
371
|
<p>
|
372
372
|
Iterates over the interval, passing <a
|
373
|
-
href="Interval.html#
|
373
|
+
href="Interval.html#M000549">each</a> _n_th element to the block. If n is
|
374
374
|
not given then n defaults to 1. Each _n_th <a
|
375
|
-
href="Interval.html#
|
376
|
-
n, depending on the <a href="Interval.html#
|
375
|
+
href="Interval.html#M000550">step</a> is determined by invoking +++ or +\-+
|
376
|
+
n, depending on the <a href="Interval.html#M000529">direction</a> of the
|
377
377
|
interval. If n is negative the iteration is preformed in reverse form <a
|
378
|
-
href="Interval.html#
|
378
|
+
href="Interval.html#M000524">end</a> sentinal to front sentinal. A second
|
379
379
|
parameter, d, can be given in which case the applied <a
|
380
|
-
href="Interval.html#
|
381
|
-
interval‘s <a href="Interval.html#
|
380
|
+
href="Interval.html#M000550">step</a> is calculated as a fraction of the
|
381
|
+
interval‘s <a href="Interval.html#M000542">length</a> times n / d.
|
382
382
|
This allows iteration over the whole interval in equal sized segments.
|
383
383
|
</p>
|
384
384
|
<pre>
|
@@ -389,11 +389,11 @@ This allows iteration over the whole interval in equal sized segments.
|
|
389
389
|
</div>
|
390
390
|
<div class="aka">
|
391
391
|
This method is also aliased as
|
392
|
-
<a href="Interval.html#
|
392
|
+
<a href="Interval.html#M000550">step</a>
|
393
393
|
</div>
|
394
394
|
<div class="sourcecode">
|
395
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
396
|
-
<div id="
|
395
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000549_source')" id="l_M000549_source">show source</a> ]</p>
|
396
|
+
<div id="M000549_source" class="dyn-source">
|
397
397
|
<pre>
|
398
398
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 239</span>
|
399
399
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">d</span>=<span class="ruby-keyword kw">nil</span>) <span class="ruby-comment cmt"># :yield:</span>
|
@@ -429,17 +429,17 @@ This allows iteration over the whole interval in equal sized segments.
|
|
429
429
|
</div>
|
430
430
|
<div class="method">
|
431
431
|
<div class="title">
|
432
|
-
<a name="
|
432
|
+
<a name="M000524"></a><b>end</b>()
|
433
433
|
</div>
|
434
434
|
<div class="description">
|
435
435
|
<p>
|
436
|
-
Alias for <a href="Interval.html#
|
436
|
+
Alias for <a href="Interval.html#M000520">last</a>
|
437
437
|
</p>
|
438
438
|
</div>
|
439
439
|
</div>
|
440
440
|
<div class="method">
|
441
441
|
<div class="title">
|
442
|
-
<a name="
|
442
|
+
<a name="M000551"></a><b>eql?</b>(other)
|
443
443
|
</div>
|
444
444
|
<div class="description">
|
445
445
|
<p>
|
@@ -447,8 +447,8 @@ Compares two intervals to see if they are equal
|
|
447
447
|
</p>
|
448
448
|
</div>
|
449
449
|
<div class="sourcecode">
|
450
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
451
|
-
<div id="
|
450
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000551_source')" id="l_M000551_source">show source</a> ]</p>
|
451
|
+
<div id="M000551_source" class="dyn-source">
|
452
452
|
<pre>
|
453
453
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 274</span>
|
454
454
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eql?</span>(<span class="ruby-identifier">other</span>)
|
@@ -464,7 +464,7 @@ Compares two intervals to see if they are equal
|
|
464
464
|
</div>
|
465
465
|
<div class="method">
|
466
466
|
<div class="title">
|
467
|
-
<a name="
|
467
|
+
<a name="M000525"></a><b>exclude_begin?</b>()
|
468
468
|
</div>
|
469
469
|
<div class="description">
|
470
470
|
<p>
|
@@ -474,7 +474,7 @@ Alias for exclude_first?
|
|
474
474
|
</div>
|
475
475
|
<div class="method">
|
476
476
|
<div class="title">
|
477
|
-
<a name="
|
477
|
+
<a name="M000526"></a><b>exclude_end?</b>()
|
478
478
|
</div>
|
479
479
|
<div class="description">
|
480
480
|
<p>
|
@@ -484,15 +484,15 @@ Alias for exclude_last?
|
|
484
484
|
</div>
|
485
485
|
<div class="method">
|
486
486
|
<div class="title">
|
487
|
-
<a name="
|
487
|
+
<a name="M000521"></a><b>exclude_first?</b>()
|
488
488
|
</div>
|
489
489
|
<div class="aka">
|
490
490
|
This method is also aliased as
|
491
|
-
<a href="Interval.html#
|
491
|
+
<a href="Interval.html#M000525">exclude_begin?</a>
|
492
492
|
</div>
|
493
493
|
<div class="sourcecode">
|
494
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
495
|
-
<div id="
|
494
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000521_source')" id="l_M000521_source">show source</a> ]</p>
|
495
|
+
<div id="M000521_source" class="dyn-source">
|
496
496
|
<pre>
|
497
497
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 115</span>
|
498
498
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exclude_first?</span> ; <span class="ruby-ivar">@exclude_first</span> ; <span class="ruby-keyword kw">end</span>
|
@@ -502,15 +502,15 @@ Alias for exclude_last?
|
|
502
502
|
</div>
|
503
503
|
<div class="method">
|
504
504
|
<div class="title">
|
505
|
-
<a name="
|
505
|
+
<a name="M000522"></a><b>exclude_last?</b>()
|
506
506
|
</div>
|
507
507
|
<div class="aka">
|
508
508
|
This method is also aliased as
|
509
|
-
<a href="Interval.html#
|
509
|
+
<a href="Interval.html#M000526">exclude_end?</a>
|
510
510
|
</div>
|
511
511
|
<div class="sourcecode">
|
512
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
513
|
-
<div id="
|
512
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000522_source')" id="l_M000522_source">show source</a> ]</p>
|
513
|
+
<div id="M000522_source" class="dyn-source">
|
514
514
|
<pre>
|
515
515
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 116</span>
|
516
516
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exclude_last?</span> ; <span class="ruby-ivar">@exclude_last</span> ; <span class="ruby-keyword kw">end</span>
|
@@ -520,21 +520,21 @@ Alias for exclude_last?
|
|
520
520
|
</div>
|
521
521
|
<div class="method">
|
522
522
|
<div class="title">
|
523
|
-
<a name="
|
523
|
+
<a name="M000519"></a><b>first</b>()
|
524
524
|
</div>
|
525
525
|
<div class="description">
|
526
526
|
<p>
|
527
|
-
Returns the <a href="Interval.html#
|
528
|
-
href="Interval.html#
|
527
|
+
Returns the <a href="Interval.html#M000519">first</a> or <a
|
528
|
+
href="Interval.html#M000520">last</a> sentinal of the interval.
|
529
529
|
</p>
|
530
530
|
</div>
|
531
531
|
<div class="aka">
|
532
532
|
This method is also aliased as
|
533
|
-
<a href="Interval.html#
|
533
|
+
<a href="Interval.html#M000523">begin</a>
|
534
534
|
</div>
|
535
535
|
<div class="sourcecode">
|
536
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
537
|
-
<div id="
|
536
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000519_source')" id="l_M000519_source">show source</a> ]</p>
|
537
|
+
<div id="M000519_source" class="dyn-source">
|
538
538
|
<pre>
|
539
539
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 111</span>
|
540
540
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first</span> ; <span class="ruby-ivar">@first</span> ; <span class="ruby-keyword kw">end</span>
|
@@ -544,19 +544,19 @@ href="Interval.html#M000510">last</a> sentinal of the interval.
|
|
544
544
|
</div>
|
545
545
|
<div class="method">
|
546
546
|
<div class="title">
|
547
|
-
<a name="
|
547
|
+
<a name="M000533"></a><b>first_closed</b>()
|
548
548
|
</div>
|
549
549
|
<div class="description">
|
550
550
|
<p>
|
551
|
-
Returns a <a href="Interval.html#
|
552
|
-
two <a href="Interval.html#
|
553
|
-
href="Interval.html#
|
554
|
-
href="Interval.html#
|
551
|
+
Returns a <a href="Interval.html#M000517">new</a> interval with one of the
|
552
|
+
two <a href="Interval.html#M000518">sentinels</a> <a
|
553
|
+
href="Interval.html#M000531">opened</a> or <a
|
554
|
+
href="Interval.html#M000530">closed</a>
|
555
555
|
</p>
|
556
556
|
</div>
|
557
557
|
<div class="sourcecode">
|
558
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
559
|
-
<div id="
|
558
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000533_source')" id="l_M000533_source">show source</a> ]</p>
|
559
|
+
<div id="M000533_source" class="dyn-source">
|
560
560
|
<pre>
|
561
561
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 152</span>
|
562
562
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first_closed</span> ; <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@first</span>, <span class="ruby-ivar">@last</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">true</span>) ; <span class="ruby-keyword kw">end</span>
|
@@ -566,11 +566,11 @@ href="Interval.html#M000520">closed</a>
|
|
566
566
|
</div>
|
567
567
|
<div class="method">
|
568
568
|
<div class="title">
|
569
|
-
<a name="
|
569
|
+
<a name="M000535"></a><b>first_opened</b>()
|
570
570
|
</div>
|
571
571
|
<div class="sourcecode">
|
572
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
573
|
-
<div id="
|
572
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000535_source')" id="l_M000535_source">show source</a> ]</p>
|
573
|
+
<div id="M000535_source" class="dyn-source">
|
574
574
|
<pre>
|
575
575
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 154</span>
|
576
576
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first_opened</span> ; <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@first</span>, <span class="ruby-ivar">@last</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">false</span>) ; <span class="ruby-keyword kw">end</span>
|
@@ -580,21 +580,21 @@ href="Interval.html#M000520">closed</a>
|
|
580
580
|
</div>
|
581
581
|
<div class="method">
|
582
582
|
<div class="title">
|
583
|
-
<a name="
|
583
|
+
<a name="M000532"></a><b>half_closed</b>(e=false)
|
584
584
|
</div>
|
585
585
|
<div class="description">
|
586
586
|
<p>
|
587
|
-
Returns a <a href="Interval.html#
|
588
|
-
<a href="Interval.html#
|
589
|
-
href="Interval.html#
|
590
|
-
is false, the deafult, then the <a href="Interval.html#
|
587
|
+
Returns a <a href="Interval.html#M000517">new</a> interval with either the
|
588
|
+
<a href="Interval.html#M000519">first</a> or the <a
|
589
|
+
href="Interval.html#M000520">last</a> sentinel exclusive. If the parameter
|
590
|
+
is false, the deafult, then the <a href="Interval.html#M000519">first</a>
|
591
591
|
sentinel is excluded; if the parameter is true, the <a
|
592
|
-
href="Interval.html#
|
592
|
+
href="Interval.html#M000520">last</a> sentinel is excluded.
|
593
593
|
</p>
|
594
594
|
</div>
|
595
595
|
<div class="sourcecode">
|
596
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
597
|
-
<div id="
|
596
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000532_source')" id="l_M000532_source">show source</a> ]</p>
|
597
|
+
<div id="M000532_source" class="dyn-source">
|
598
598
|
<pre>
|
599
599
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 147</span>
|
600
600
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">half_closed</span>(<span class="ruby-identifier">e</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -606,7 +606,7 @@ href="Interval.html#M000510">last</a> sentinel is excluded.
|
|
606
606
|
</div>
|
607
607
|
<div class="method">
|
608
608
|
<div class="title">
|
609
|
-
<a name="
|
609
|
+
<a name="M000546"></a><b>include?</b>(x)
|
610
610
|
</div>
|
611
611
|
<div class="description">
|
612
612
|
<p>
|
@@ -615,12 +615,12 @@ Returns true or false if the element is part of the interval.
|
|
615
615
|
</div>
|
616
616
|
<div class="aka">
|
617
617
|
This method is also aliased as
|
618
|
-
<a href="Interval.html#
|
619
|
-
<a href="Interval.html#
|
618
|
+
<a href="Interval.html#M000547">===</a>
|
619
|
+
<a href="Interval.html#M000548">member?</a>
|
620
620
|
</div>
|
621
621
|
<div class="sourcecode">
|
622
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
623
|
-
<div id="
|
622
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000546_source')" id="l_M000546_source">show source</a> ]</p>
|
623
|
+
<div id="M000546_source" class="dyn-source">
|
624
624
|
<pre>
|
625
625
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 197</span>
|
626
626
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">include?</span>(<span class="ruby-identifier">x</span>)
|
@@ -635,15 +635,15 @@ Returns true or false if the element is part of the interval.
|
|
635
635
|
</div>
|
636
636
|
<div class="method">
|
637
637
|
<div class="title">
|
638
|
-
<a name="
|
638
|
+
<a name="M000520"></a><b>last</b>()
|
639
639
|
</div>
|
640
640
|
<div class="aka">
|
641
641
|
This method is also aliased as
|
642
|
-
<a href="Interval.html#
|
642
|
+
<a href="Interval.html#M000524">end</a>
|
643
643
|
</div>
|
644
644
|
<div class="sourcecode">
|
645
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
646
|
-
<div id="
|
645
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000520_source')" id="l_M000520_source">show source</a> ]</p>
|
646
|
+
<div id="M000520_source" class="dyn-source">
|
647
647
|
<pre>
|
648
648
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 112</span>
|
649
649
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last</span> ; <span class="ruby-ivar">@last</span> ; <span class="ruby-keyword kw">end</span>
|
@@ -653,11 +653,11 @@ Returns true or false if the element is part of the interval.
|
|
653
653
|
</div>
|
654
654
|
<div class="method">
|
655
655
|
<div class="title">
|
656
|
-
<a name="
|
656
|
+
<a name="M000534"></a><b>last_closed</b>()
|
657
657
|
</div>
|
658
658
|
<div class="sourcecode">
|
659
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
660
|
-
<div id="
|
659
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000534_source')" id="l_M000534_source">show source</a> ]</p>
|
660
|
+
<div id="M000534_source" class="dyn-source">
|
661
661
|
<pre>
|
662
662
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 153</span>
|
663
663
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last_closed</span> ; <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@first</span>, <span class="ruby-ivar">@last</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">false</span>) ; <span class="ruby-keyword kw">end</span>
|
@@ -667,11 +667,11 @@ Returns true or false if the element is part of the interval.
|
|
667
667
|
</div>
|
668
668
|
<div class="method">
|
669
669
|
<div class="title">
|
670
|
-
<a name="
|
670
|
+
<a name="M000536"></a><b>last_opened</b>()
|
671
671
|
</div>
|
672
672
|
<div class="sourcecode">
|
673
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
674
|
-
<div id="
|
673
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000536_source')" id="l_M000536_source">show source</a> ]</p>
|
674
|
+
<div id="M000536_source" class="dyn-source">
|
675
675
|
<pre>
|
676
676
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 155</span>
|
677
677
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last_opened</span> ; <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@first</span>, <span class="ruby-ivar">@last</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">true</span>) ; <span class="ruby-keyword kw">end</span>
|
@@ -681,27 +681,27 @@ Returns true or false if the element is part of the interval.
|
|
681
681
|
</div>
|
682
682
|
<div class="method">
|
683
683
|
<div class="title">
|
684
|
-
<a name="
|
684
|
+
<a name="M000542"></a><b>length</b>()
|
685
685
|
</div>
|
686
686
|
<div class="description">
|
687
687
|
<p>
|
688
|
-
Alias for <a href="Interval.html#
|
688
|
+
Alias for <a href="Interval.html#M000541">distance</a>
|
689
689
|
</p>
|
690
690
|
</div>
|
691
691
|
</div>
|
692
692
|
<div class="method">
|
693
693
|
<div class="title">
|
694
|
-
<a name="
|
694
|
+
<a name="M000545"></a><b>max</b>()
|
695
695
|
</div>
|
696
696
|
<div class="description">
|
697
697
|
<p>
|
698
|
-
Returns the greater of the <a href="Interval.html#
|
699
|
-
href="Interval.html#
|
698
|
+
Returns the greater of the <a href="Interval.html#M000519">first</a> and <a
|
699
|
+
href="Interval.html#M000520">last</a> sentinals.
|
700
700
|
</p>
|
701
701
|
</div>
|
702
702
|
<div class="sourcecode">
|
703
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
704
|
-
<div id="
|
703
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000545_source')" id="l_M000545_source">show source</a> ]</p>
|
704
|
+
<div id="M000545_source" class="dyn-source">
|
705
705
|
<pre>
|
706
706
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 192</span>
|
707
707
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">max</span>
|
@@ -713,7 +713,7 @@ href="Interval.html#M000510">last</a> sentinals.
|
|
713
713
|
</div>
|
714
714
|
<div class="method">
|
715
715
|
<div class="title">
|
716
|
-
<a name="
|
716
|
+
<a name="M000548"></a><b>member?</b>(x)
|
717
717
|
</div>
|
718
718
|
<div class="description">
|
719
719
|
<p>
|
@@ -723,17 +723,17 @@ Alias for include?
|
|
723
723
|
</div>
|
724
724
|
<div class="method">
|
725
725
|
<div class="title">
|
726
|
-
<a name="
|
726
|
+
<a name="M000544"></a><b>min</b>()
|
727
727
|
</div>
|
728
728
|
<div class="description">
|
729
729
|
<p>
|
730
|
-
Returns the lesser of the <a href="Interval.html#
|
731
|
-
href="Interval.html#
|
730
|
+
Returns the lesser of the <a href="Interval.html#M000519">first</a> and <a
|
731
|
+
href="Interval.html#M000520">last</a> sentinals.
|
732
732
|
</p>
|
733
733
|
</div>
|
734
734
|
<div class="sourcecode">
|
735
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
736
|
-
<div id="
|
735
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000544_source')" id="l_M000544_source">show source</a> ]</p>
|
736
|
+
<div id="M000544_source" class="dyn-source">
|
737
737
|
<pre>
|
738
738
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 187</span>
|
739
739
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">min</span>
|
@@ -745,19 +745,19 @@ href="Interval.html#M000510">last</a> sentinals.
|
|
745
745
|
</div>
|
746
746
|
<div class="method">
|
747
747
|
<div class="title">
|
748
|
-
<a name="
|
748
|
+
<a name="M000528"></a><b>null?</b>()
|
749
749
|
</div>
|
750
750
|
<div class="description">
|
751
751
|
<p>
|
752
752
|
Returns <tt>true</tt> if the start and <a
|
753
|
-
href="Interval.html#
|
754
|
-
href="Interval.html#
|
753
|
+
href="Interval.html#M000524">end</a> <a
|
754
|
+
href="Interval.html#M000518">sentinels</a> are equal and the interval is
|
755
755
|
open; otherwise <tt>false</tt>.
|
756
756
|
</p>
|
757
757
|
</div>
|
758
758
|
<div class="sourcecode">
|
759
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
760
|
-
<div id="
|
759
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000528_source')" id="l_M000528_source">show source</a> ]</p>
|
760
|
+
<div id="M000528_source" class="dyn-source">
|
761
761
|
<pre>
|
762
762
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 128</span>
|
763
763
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">null?</span> ; <span class="ruby-ivar">@direction</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@exclusive_first</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@exclusive_last</span> ; <span class="ruby-keyword kw">end</span>
|
@@ -767,17 +767,17 @@ open; otherwise <tt>false</tt>.
|
|
767
767
|
</div>
|
768
768
|
<div class="method">
|
769
769
|
<div class="title">
|
770
|
-
<a name="
|
770
|
+
<a name="M000531"></a><b>opened</b>()
|
771
771
|
</div>
|
772
772
|
<div class="description">
|
773
773
|
<p>
|
774
|
-
Returns a <a href="Interval.html#
|
775
|
-
both <a href="Interval.html#
|
774
|
+
Returns a <a href="Interval.html#M000517">new</a> interval exclusive of
|
775
|
+
both <a href="Interval.html#M000518">sentinels</a>.
|
776
776
|
</p>
|
777
777
|
</div>
|
778
778
|
<div class="sourcecode">
|
779
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
780
|
-
<div id="
|
779
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000531_source')" id="l_M000531_source">show source</a> ]</p>
|
780
|
+
<div id="M000531_source" class="dyn-source">
|
781
781
|
<pre>
|
782
782
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 142</span>
|
783
783
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">opened</span>; <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@first</span>, <span class="ruby-ivar">@last</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">true</span>) ; <span class="ruby-keyword kw">end</span>
|
@@ -787,21 +787,21 @@ both <a href="Interval.html#M000508">sentinels</a>.
|
|
787
787
|
</div>
|
788
788
|
<div class="method">
|
789
789
|
<div class="title">
|
790
|
-
<a name="
|
790
|
+
<a name="M000540"></a><b>reversed</b>()
|
791
791
|
</div>
|
792
792
|
<div class="description">
|
793
793
|
<p>
|
794
|
-
Returns a <a href="Interval.html#
|
795
|
-
href="Interval.html#
|
796
|
-
href="Interval.html#
|
794
|
+
Returns a <a href="Interval.html#M000517">new</a> interval with the <a
|
795
|
+
href="Interval.html#M000518">sentinels</a> <a
|
796
|
+
href="Interval.html#M000540">reversed</a>.
|
797
797
|
</p>
|
798
798
|
<pre>
|
799
799
|
(0..10).reversed #=> 10..0
|
800
800
|
</pre>
|
801
801
|
</div>
|
802
802
|
<div class="sourcecode">
|
803
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
804
|
-
<div id="
|
803
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000540_source')" id="l_M000540_source">show source</a> ]</p>
|
804
|
+
<div id="M000540_source" class="dyn-source">
|
805
805
|
<pre>
|
806
806
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 167</span>
|
807
807
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reversed</span>
|
@@ -813,21 +813,21 @@ href="Interval.html#M000530">reversed</a>.
|
|
813
813
|
</div>
|
814
814
|
<div class="method">
|
815
815
|
<div class="title">
|
816
|
-
<a name="
|
816
|
+
<a name="M000518"></a><b>sentinels</b>()
|
817
817
|
</div>
|
818
818
|
<div class="description">
|
819
819
|
<p>
|
820
|
-
Returns a two element array of <a href="Interval.html#
|
821
|
-
and <a href="Interval.html#
|
822
|
-
href="Interval.html#
|
820
|
+
Returns a two element array of <a href="Interval.html#M000519">first</a>
|
821
|
+
and <a href="Interval.html#M000520">last</a> <a
|
822
|
+
href="Interval.html#M000518">sentinels</a>.
|
823
823
|
</p>
|
824
824
|
<pre>
|
825
825
|
(0..10).sentinels #=> [0,10]
|
826
826
|
</pre>
|
827
827
|
</div>
|
828
828
|
<div class="sourcecode">
|
829
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
830
|
-
<div id="
|
829
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000518_source')" id="l_M000518_source">show source</a> ]</p>
|
830
|
+
<div id="M000518_source" class="dyn-source">
|
831
831
|
<pre>
|
832
832
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 106</span>
|
833
833
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sentinels</span>
|
@@ -839,31 +839,31 @@ href="Interval.html#M000508">sentinels</a>.
|
|
839
839
|
</div>
|
840
840
|
<div class="method">
|
841
841
|
<div class="title">
|
842
|
-
<a name="
|
842
|
+
<a name="M000543"></a><b>size</b>()
|
843
843
|
</div>
|
844
844
|
<div class="description">
|
845
845
|
<p>
|
846
|
-
Alias for <a href="Interval.html#
|
846
|
+
Alias for <a href="Interval.html#M000541">distance</a>
|
847
847
|
</p>
|
848
848
|
</div>
|
849
849
|
</div>
|
850
850
|
<div class="method">
|
851
851
|
<div class="title">
|
852
|
-
<a name="
|
852
|
+
<a name="M000550"></a><b>step</b>(n=1, d=nil)
|
853
853
|
</div>
|
854
854
|
<div class="description">
|
855
855
|
<p>
|
856
|
-
Alias for <a href="Interval.html#
|
856
|
+
Alias for <a href="Interval.html#M000549">each</a>
|
857
857
|
</p>
|
858
858
|
</div>
|
859
859
|
</div>
|
860
860
|
<div class="method">
|
861
861
|
<div class="title">
|
862
|
-
<a name="
|
862
|
+
<a name="M000539"></a><b>~</b>()
|
863
863
|
</div>
|
864
864
|
<div class="sourcecode">
|
865
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
866
|
-
<div id="
|
865
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000539_source')" id="l_M000539_source">show source</a> ]</p>
|
866
|
+
<div id="M000539_source" class="dyn-source">
|
867
867
|
<pre>
|
868
868
|
<span class="ruby-comment cmt"># File lib/more/facets/interval.rb, line 161</span>
|
869
869
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">~@</span> ; <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">first</span>, <span class="ruby-identifier">last</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">true</span>) ; <span class="ruby-keyword kw">end</span>
|