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
@@ -0,0 +1,108 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
<html>
|
6
|
+
<head>
|
7
|
+
<title>Module: CLI</title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
10
|
+
|
11
|
+
<script language="JavaScript" type="text/javascript">
|
12
|
+
// <![CDATA[
|
13
|
+
|
14
|
+
function toggleSource( id )
|
15
|
+
{
|
16
|
+
var elem
|
17
|
+
var link
|
18
|
+
|
19
|
+
if( document.getElementById )
|
20
|
+
{
|
21
|
+
elem = document.getElementById( id )
|
22
|
+
link = document.getElementById( "l_" + id )
|
23
|
+
}
|
24
|
+
else if ( document.all )
|
25
|
+
{
|
26
|
+
elem = eval( "document.all." + id )
|
27
|
+
link = eval( "document.all.l_" + id )
|
28
|
+
}
|
29
|
+
else
|
30
|
+
return false;
|
31
|
+
|
32
|
+
if( elem.style.display == "block" )
|
33
|
+
{
|
34
|
+
elem.style.display = "none"
|
35
|
+
link.innerHTML = "show source"
|
36
|
+
}
|
37
|
+
else
|
38
|
+
{
|
39
|
+
elem.style.display = "block"
|
40
|
+
link.innerHTML = "hide source"
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
function openCode( url )
|
45
|
+
{
|
46
|
+
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
+
}
|
48
|
+
// ]]>
|
49
|
+
</script>
|
50
|
+
</head>
|
51
|
+
|
52
|
+
<body>
|
53
|
+
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
+
<td class="file-title"><span class="file-title-prefix">Module</span><br />CLI</td>
|
55
|
+
<td align="right">
|
56
|
+
<table cellspacing="0" cellpadding="2">
|
57
|
+
<tr valign="top">
|
58
|
+
<td>In:</td>
|
59
|
+
<td>
|
60
|
+
<a href="../files/lib/more/facets/command_rb.html">lib/more/facets/command.rb</a>
|
61
|
+
<a href="../files/lib/more/facets/arguments_rb.html">lib/more/facets/arguments.rb</a>
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
</table>
|
65
|
+
</td>
|
66
|
+
</tr>
|
67
|
+
</table>
|
68
|
+
<!-- banner header -->
|
69
|
+
|
70
|
+
<div id="bodyContent">
|
71
|
+
<div id="content">
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div class="sectiontitle">Classes and Modules</div>
|
80
|
+
Class <a href="CLI/Arguments.html" class="link">CLI::Arguments</a><br />
|
81
|
+
Class <a href="CLI/Command.html" class="link">CLI::Command</a><br />
|
82
|
+
Class <a href="CLI/NoCommandError.html" class="link">CLI::NoCommandError</a><br />
|
83
|
+
Class <a href="CLI/NoOptionError.html" class="link">CLI::NoOptionError</a><br />
|
84
|
+
|
85
|
+
|
86
|
+
<div class="sectiontitle">Constants</div>
|
87
|
+
<table border='0' cellpadding='5'>
|
88
|
+
<tr valign='top'>
|
89
|
+
<td class="attr-name">MasterCommand</td>
|
90
|
+
<td>=</td>
|
91
|
+
<td class="attr-value">Command</td>
|
92
|
+
</tr>
|
93
|
+
<tr valign='top'>
|
94
|
+
<td> </td>
|
95
|
+
<td colspan="2" class="attr-desc">
|
96
|
+
Temporary backward compatability.
|
97
|
+
|
98
|
+
</td>
|
99
|
+
</tr>
|
100
|
+
</table>
|
101
|
+
|
102
|
+
|
103
|
+
</div>
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
</body>
|
108
|
+
</html>
|
@@ -78,7 +78,7 @@ Object
|
|
78
78
|
<div class="description"><h1><a href="Arguments.html">CLI::Arguments</a></h1>
|
79
79
|
<p>
|
80
80
|
<a href="Arguments.html">CLI::Arguments</a> provides a very simple means of
|
81
|
-
parsing command line <a href="Arguments.html#
|
81
|
+
parsing command line <a href="Arguments.html#M000678">arguments</a>.
|
82
82
|
</p>
|
83
83
|
<p>
|
84
84
|
Unlike other more complex libs this provides only the most basic and
|
@@ -104,20 +104,20 @@ particular "views" of the command line you want.
|
|
104
104
|
|
105
105
|
<div class="sectiontitle">Methods</div>
|
106
106
|
<ul>
|
107
|
-
<li><a href="#
|
108
|
-
<li><a href="#
|
109
|
-
<li><a href="#
|
110
|
-
<li><a href="#
|
111
|
-
<li><a href="#
|
112
|
-
<li><a href="#
|
113
|
-
<li><a href="#
|
114
|
-
<li><a href="#
|
115
|
-
<li><a href="#
|
116
|
-
<li><a href="#
|
117
|
-
<li><a href="#
|
118
|
-
<li><a href="#
|
119
|
-
<li><a href="#
|
120
|
-
<li><a href="#
|
107
|
+
<li><a href="#M000678">arguments</a></li>
|
108
|
+
<li><a href="#M000681">flags</a></li>
|
109
|
+
<li><a href="#M000676">new</a></li>
|
110
|
+
<li><a href="#M000677">operands</a></li>
|
111
|
+
<li><a href="#M000679">options</a></li>
|
112
|
+
<li><a href="#M000680">parameters</a></li>
|
113
|
+
<li><a href="#M000675">parameters</a></li>
|
114
|
+
<li><a href="#M000688">parameters_without_duplicates</a></li>
|
115
|
+
<li><a href="#M000687">preflags</a></li>
|
116
|
+
<li><a href="#M000686">preoptions</a></li>
|
117
|
+
<li><a href="#M000683">subcommand</a></li>
|
118
|
+
<li><a href="#M000685">subcommand_with_arguments</a></li>
|
119
|
+
<li><a href="#M000682">subcommand_with_parameters</a></li>
|
120
|
+
<li><a href="#M000684">subcommand_with_preoptions</a></li>
|
121
121
|
</ul>
|
122
122
|
|
123
123
|
|
@@ -152,19 +152,19 @@ particular "views" of the command line you want.
|
|
152
152
|
<div class="sectiontitle">Public Class methods</div>
|
153
153
|
<div class="method">
|
154
154
|
<div class="title">
|
155
|
-
<a name="
|
155
|
+
<a name="M000676"></a><b>new</b>(line=nil, arity=nil)
|
156
156
|
</div>
|
157
157
|
<div class="description">
|
158
158
|
<p>
|
159
159
|
Takes the command line string (or array) and <a
|
160
|
-
href="Arguments.html#
|
161
|
-
href="Arguments.html#
|
160
|
+
href="Arguments.html#M000679">options</a>. Options have <a
|
161
|
+
href="Arguments.html#M000681">flags</a> and end with a hash of option
|
162
162
|
arity.
|
163
163
|
</p>
|
164
164
|
</div>
|
165
165
|
<div class="sourcecode">
|
166
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
167
|
-
<div id="
|
166
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000676_source')" id="l_M000676_source">show source</a> ]</p>
|
167
|
+
<div id="M000676_source" class="dyn-source">
|
168
168
|
<pre>
|
169
169
|
<span class="ruby-comment cmt"># File lib/more/facets/arguments.rb, line 83</span>
|
170
170
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">line</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">arity</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -178,11 +178,11 @@ arity.
|
|
178
178
|
</div>
|
179
179
|
<div class="method">
|
180
180
|
<div class="title">
|
181
|
-
<a name="
|
181
|
+
<a name="M000675"></a><b>parameters</b>(*args)
|
182
182
|
</div>
|
183
183
|
<div class="sourcecode">
|
184
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
185
|
-
<div id="
|
184
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000675_source')" id="l_M000675_source">show source</a> ]</p>
|
185
|
+
<div id="M000675_source" class="dyn-source">
|
186
186
|
<pre>
|
187
187
|
<span class="ruby-comment cmt"># File lib/more/facets/arguments.rb, line 69</span>
|
188
188
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parameters</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -195,27 +195,27 @@ arity.
|
|
195
195
|
<div class="sectiontitle">Public Instance methods</div>
|
196
196
|
<div class="method">
|
197
197
|
<div class="title">
|
198
|
-
<a name="
|
198
|
+
<a name="M000678"></a><b>arguments</b>()
|
199
199
|
</div>
|
200
200
|
<div class="description">
|
201
201
|
<p>
|
202
|
-
Alias for <a href="Arguments.html#
|
202
|
+
Alias for <a href="Arguments.html#M000677">operands</a>
|
203
203
|
</p>
|
204
204
|
</div>
|
205
205
|
</div>
|
206
206
|
<div class="method">
|
207
207
|
<div class="title">
|
208
|
-
<a name="
|
208
|
+
<a name="M000681"></a><b>flags</b>()
|
209
209
|
</div>
|
210
210
|
<div class="description">
|
211
211
|
<p>
|
212
|
-
Return <a href="Arguments.html#
|
213
|
-
href="Arguments.html#
|
212
|
+
Return <a href="Arguments.html#M000681">flags</a>, which are true <a
|
213
|
+
href="Arguments.html#M000679">options</a>.
|
214
214
|
</p>
|
215
215
|
</div>
|
216
216
|
<div class="sourcecode">
|
217
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
218
|
-
<div id="
|
217
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000681_source')" id="l_M000681_source">show source</a> ]</p>
|
218
|
+
<div id="M000681_source" class="dyn-source">
|
219
219
|
<pre>
|
220
220
|
<span class="ruby-comment cmt"># File lib/more/facets/arguments.rb, line 115</span>
|
221
221
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">flags</span>
|
@@ -233,7 +233,7 @@ href="Arguments.html#M000651">options</a>.
|
|
233
233
|
</div>
|
234
234
|
<div class="method">
|
235
235
|
<div class="title">
|
236
|
-
<a name="
|
236
|
+
<a name="M000677"></a><b>operands</b>()
|
237
237
|
</div>
|
238
238
|
<div class="description">
|
239
239
|
<p>
|
@@ -242,11 +242,11 @@ Returns operand array.
|
|
242
242
|
</div>
|
243
243
|
<div class="aka">
|
244
244
|
This method is also aliased as
|
245
|
-
<a href="Arguments.html#
|
245
|
+
<a href="Arguments.html#M000678">arguments</a>
|
246
246
|
</div>
|
247
247
|
<div class="sourcecode">
|
248
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
249
|
-
<div id="
|
248
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000677_source')" id="l_M000677_source">show source</a> ]</p>
|
249
|
+
<div id="M000677_source" class="dyn-source">
|
250
250
|
<pre>
|
251
251
|
<span class="ruby-comment cmt"># File lib/more/facets/arguments.rb, line 93</span>
|
252
252
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">operands</span>
|
@@ -258,16 +258,16 @@ Returns operand array.
|
|
258
258
|
</div>
|
259
259
|
<div class="method">
|
260
260
|
<div class="title">
|
261
|
-
<a name="
|
261
|
+
<a name="M000679"></a><b>options</b>()
|
262
262
|
</div>
|
263
263
|
<div class="description">
|
264
264
|
<p>
|
265
|
-
Returns <a href="Arguments.html#
|
265
|
+
Returns <a href="Arguments.html#M000679">options</a> hash.
|
266
266
|
</p>
|
267
267
|
</div>
|
268
268
|
<div class="sourcecode">
|
269
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
270
|
-
<div id="
|
269
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000679_source')" id="l_M000679_source">show source</a> ]</p>
|
270
|
+
<div id="M000679_source" class="dyn-source">
|
271
271
|
<pre>
|
272
272
|
<span class="ruby-comment cmt"># File lib/more/facets/arguments.rb, line 102</span>
|
273
273
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">options</span>
|
@@ -279,18 +279,18 @@ Returns <a href="Arguments.html#M000651">options</a> hash.
|
|
279
279
|
</div>
|
280
280
|
<div class="method">
|
281
281
|
<div class="title">
|
282
|
-
<a name="
|
282
|
+
<a name="M000680"></a><b>parameters</b>()
|
283
283
|
</div>
|
284
284
|
<div class="description">
|
285
285
|
<p>
|
286
|
-
Returns [<a href="Arguments.html#
|
287
|
-
href="Arguments.html#
|
286
|
+
Returns [<a href="Arguments.html#M000677">operands</a>, <a
|
287
|
+
href="Arguments.html#M000679">options</a>], which is good for plugging
|
288
288
|
directly into a method.
|
289
289
|
</p>
|
290
290
|
</div>
|
291
291
|
<div class="sourcecode">
|
292
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
293
|
-
<div id="
|
292
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000680_source')" id="l_M000680_source">show source</a> ]</p>
|
293
|
+
<div id="M000680_source" class="dyn-source">
|
294
294
|
<pre>
|
295
295
|
<span class="ruby-comment cmt"># File lib/more/facets/arguments.rb, line 109</span>
|
296
296
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parameters</span>
|
@@ -302,17 +302,17 @@ directly into a method.
|
|
302
302
|
</div>
|
303
303
|
<div class="method">
|
304
304
|
<div class="title">
|
305
|
-
<a name="
|
305
|
+
<a name="M000688"></a><b>parameters_without_duplicates</b>()
|
306
306
|
</div>
|
307
307
|
<div class="description">
|
308
308
|
<p>
|
309
|
-
Like <a href="Arguments.html#
|
310
|
-
for duplicate <a href="Arguments.html#
|
309
|
+
Like <a href="Arguments.html#M000675">parameters</a> but without allowing
|
310
|
+
for duplicate <a href="Arguments.html#M000679">options</a>.
|
311
311
|
</p>
|
312
312
|
</div>
|
313
313
|
<div class="sourcecode">
|
314
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
315
|
-
<div id="
|
314
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000688_source')" id="l_M000688_source">show source</a> ]</p>
|
315
|
+
<div id="M000688_source" class="dyn-source">
|
316
316
|
<pre>
|
317
317
|
<span class="ruby-comment cmt"># File lib/more/facets/arguments.rb, line 190</span>
|
318
318
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parameters_without_duplicates</span>
|
@@ -332,18 +332,18 @@ for duplicate <a href="Arguments.html#M000651">options</a>.
|
|
332
332
|
</div>
|
333
333
|
<div class="method">
|
334
334
|
<div class="title">
|
335
|
-
<a name="
|
335
|
+
<a name="M000687"></a><b>preflags</b>()
|
336
336
|
</div>
|
337
337
|
<div class="description">
|
338
338
|
<p>
|
339
|
-
Same as <tt><a href="Arguments.html#
|
340
|
-
returns <a href="Arguments.html#
|
341
|
-
href="Arguments.html#
|
339
|
+
Same as <tt><a href="Arguments.html#M000681">flags</a></tt> but only
|
340
|
+
returns <a href="Arguments.html#M000681">flags</a> in the <a
|
341
|
+
href="Arguments.html#M000686">preoptions</a>.
|
342
342
|
</p>
|
343
343
|
</div>
|
344
344
|
<div class="sourcecode">
|
345
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
346
|
-
<div id="
|
345
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000687_source')" id="l_M000687_source">show source</a> ]</p>
|
346
|
+
<div id="M000687_source" class="dyn-source">
|
347
347
|
<pre>
|
348
348
|
<span class="ruby-comment cmt"># File lib/more/facets/arguments.rb, line 177</span>
|
349
349
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">preflags</span>
|
@@ -362,14 +362,14 @@ href="Arguments.html#M000658">preoptions</a>.
|
|
362
362
|
</div>
|
363
363
|
<div class="method">
|
364
364
|
<div class="title">
|
365
|
-
<a name="
|
365
|
+
<a name="M000686"></a><b>preoptions</b>()
|
366
366
|
</div>
|
367
367
|
<div class="description">
|
368
368
|
<p>
|
369
|
-
Returns a hash of <a href="Arguments.html#
|
369
|
+
Returns a hash of <a href="Arguments.html#M000679">options</a> that occur
|
370
370
|
before the first operand. This works well with <a
|
371
|
-
href="Arguments.html#
|
372
|
-
command‘s <a href="Arguments.html#
|
371
|
+
href="Arguments.html#M000683">subcommand</a> to get the main
|
372
|
+
command‘s <a href="Arguments.html#M000679">options</a>.
|
373
373
|
</p>
|
374
374
|
<pre>
|
375
375
|
line = "--trace stamp --file VERSION"
|
@@ -379,8 +379,8 @@ command‘s <a href="Arguments.html#M000651">options</a>.
|
|
379
379
|
</pre>
|
380
380
|
</div>
|
381
381
|
<div class="sourcecode">
|
382
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
383
|
-
<div id="
|
382
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000686_source')" id="l_M000686_source">show source</a> ]</p>
|
383
|
+
<div id="M000686_source" class="dyn-source">
|
384
384
|
<pre>
|
385
385
|
<span class="ruby-comment cmt"># File lib/more/facets/arguments.rb, line 169</span>
|
386
386
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">preoptions</span>
|
@@ -393,33 +393,33 @@ command‘s <a href="Arguments.html#M000651">options</a>.
|
|
393
393
|
</div>
|
394
394
|
<div class="method">
|
395
395
|
<div class="title">
|
396
|
-
<a name="
|
396
|
+
<a name="M000683"></a><b>subcommand</b>()
|
397
397
|
</div>
|
398
398
|
<div class="description">
|
399
399
|
<p>
|
400
|
-
Alias for <a href="Arguments.html#
|
400
|
+
Alias for <a href="Arguments.html#M000682">subcommand_with_parameters</a>
|
401
401
|
</p>
|
402
402
|
</div>
|
403
403
|
</div>
|
404
404
|
<div class="method">
|
405
405
|
<div class="title">
|
406
|
-
<a name="
|
406
|
+
<a name="M000685"></a><b>subcommand_with_arguments</b>()
|
407
407
|
</div>
|
408
408
|
<div class="description">
|
409
409
|
<p>
|
410
410
|
Assumes the first operand is a "<a
|
411
|
-
href="Arguments.html#
|
411
|
+
href="Arguments.html#M000683">subcommand</a>" and returns it and the
|
412
412
|
argments following it as another <a href="Arguments.html">Arguments</a>
|
413
413
|
object.
|
414
414
|
</p>
|
415
415
|
<p>
|
416
416
|
TODO: This probably should be called ‘<a
|
417
|
-
href="Arguments.html#
|
417
|
+
href="Arguments.html#M000683">subcommand</a>’.
|
418
418
|
</p>
|
419
419
|
</div>
|
420
420
|
<div class="sourcecode">
|
421
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
422
|
-
<div id="
|
421
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000685_source')" id="l_M000685_source">show source</a> ]</p>
|
422
|
+
<div id="M000685_source" class="dyn-source">
|
423
423
|
<pre>
|
424
424
|
<span class="ruby-comment cmt"># File lib/more/facets/arguments.rb, line 153</span>
|
425
425
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">subcommand_with_arguments</span>
|
@@ -434,22 +434,22 @@ href="Arguments.html#M000655">subcommand</a>’.
|
|
434
434
|
</div>
|
435
435
|
<div class="method">
|
436
436
|
<div class="title">
|
437
|
-
<a name="
|
437
|
+
<a name="M000682"></a><b>subcommand_with_parameters</b>()
|
438
438
|
</div>
|
439
439
|
<div class="description">
|
440
440
|
<p>
|
441
441
|
Assumes the first operand is a "<a
|
442
|
-
href="Arguments.html#
|
443
|
-
argments following it as <a href="Arguments.html#
|
442
|
+
href="Arguments.html#M000683">subcommand</a>" and returns it and the
|
443
|
+
argments following it as <a href="Arguments.html#M000675">parameters</a>.
|
444
444
|
</p>
|
445
445
|
</div>
|
446
446
|
<div class="aka">
|
447
447
|
This method is also aliased as
|
448
|
-
<a href="Arguments.html#
|
448
|
+
<a href="Arguments.html#M000683">subcommand</a>
|
449
449
|
</div>
|
450
450
|
<div class="sourcecode">
|
451
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
452
|
-
<div id="
|
451
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000682_source')" id="l_M000682_source">show source</a> ]</p>
|
452
|
+
<div id="M000682_source" class="dyn-source">
|
453
453
|
<pre>
|
454
454
|
<span class="ruby-comment cmt"># File lib/more/facets/arguments.rb, line 129</span>
|
455
455
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">subcommand_with_parameters</span>
|
@@ -464,11 +464,11 @@ argments following it as <a href="Arguments.html#M000647">parameters</a>.
|
|
464
464
|
</div>
|
465
465
|
<div class="method">
|
466
466
|
<div class="title">
|
467
|
-
<a name="
|
467
|
+
<a name="M000684"></a><b>subcommand_with_preoptions</b>()
|
468
468
|
</div>
|
469
469
|
<div class="sourcecode">
|
470
|
-
<p class="source-link">[ <a href="javascript:toggleSource('
|
471
|
-
<div id="
|
470
|
+
<p class="source-link">[ <a href="javascript:toggleSource('M000684_source')" id="l_M000684_source">show source</a> ]</p>
|
471
|
+
<div id="M000684_source" class="dyn-source">
|
472
472
|
<pre>
|
473
473
|
<span class="ruby-comment cmt"># File lib/more/facets/arguments.rb, line 139</span>
|
474
474
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">subcommand_with_preoptions</span>
|