optiflag 0.6 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- data/ReleaseNotes.txt +35 -0
- data/doc/classes/OptiFlag.html +439 -0
- data/doc/classes/OptiFlag.src/M000001.html +49 -0
- data/doc/classes/OptiFlag.src/M000002.html +49 -0
- data/doc/classes/OptiFlag.src/M000003.html +30 -0
- data/doc/classes/OptiFlag/Flagset.html +459 -0
- data/doc/classes/OptiFlag/Flagset.src/M000003.html +45 -0
- data/doc/classes/OptiFlag/Flagset.src/M000004.html +45 -0
- data/doc/classes/OptiFlag/Flagset.src/M000005.html +18 -0
- data/doc/classes/OptiFlag/Flagset.src/M000006.html +20 -0
- data/doc/classes/OptiFlag/Flagset.src/M000007.html +35 -0
- data/doc/classes/OptiFlag/Flagset.src/M000008.html +23 -0
- data/doc/classes/OptiFlag/Flagset.src/M000009.html +24 -0
- data/doc/classes/OptiFlag/Flagset.src/M000010.html +28 -0
- data/doc/classes/OptiFlag/Flagset.src/M000011.html +20 -0
- data/doc/classes/OptiFlag/Flagset.src/M000012.html +24 -0
- data/doc/classes/OptiFlag/Flagset.src/M000013.html +24 -0
- data/doc/classes/OptiFlag/Flagset.src/M000014.html +32 -0
- data/doc/classes/OptiFlag/Flagset.src/M000015.html +25 -0
- data/doc/classes/OptiFlag/Flagset.src/M000016.html +53 -0
- data/doc/classes/OptiFlag/Flagset.src/M000017.html +53 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.html +930 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000024.html +36 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000025.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000026.html +36 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000027.html +36 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000028.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000029.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000030.html +19 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000031.html +19 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000032.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000033.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000034.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000035.html +22 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000036.html +19 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000037.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000038.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000039.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000040.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000041.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000042.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000043.html +19 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000044.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000045.html +19 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000046.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000047.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000048.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000049.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000050.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000051.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000052.html +20 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000053.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000054.html +18 -0
- data/doc/classes/OptiFlag/Flagset/EachFlag.src/M000055.html +22 -0
- data/doc/classes/OptiFlag/Flagset/Errors.html +192 -0
- data/doc/classes/OptiFlag/Flagset/Errors.src/M000021.html +18 -0
- data/doc/classes/OptiFlag/Flagset/Errors.src/M000022.html +19 -0
- data/doc/classes/OptiFlag/Flagset/Errors.src/M000023.html +18 -0
- data/doc/classes/OptiFlag/Flagset/Errors.src/M000024.html +18 -0
- data/doc/classes/OptiFlag/Flagset/Errors.src/M000025.html +19 -0
- data/doc/classes/OptiFlag/Flagset/Errors.src/M000026.html +36 -0
- data/doc/classes/OptiFlag/Flagset/Help.html +125 -0
- data/doc/classes/OptiFlag/Flagset/Help/Bundle.html +160 -0
- data/doc/classes/OptiFlag/Flagset/Help/Bundle.src/M000018.html +18 -0
- data/doc/classes/OptiFlag/Flagset/Help/Bundle.src/M000019.html +18 -0
- data/doc/classes/OptiFlag/Flagset/Help/StandardHelpBundle.html +118 -0
- data/doc/classes/OptiFlag/Flagset/NewInterface.html +296 -0
- data/doc/classes/OptiFlag/Flagset/NewInterface.src/M000017.html +18 -0
- data/doc/classes/OptiFlag/Flagset/NewInterface.src/M000018.html +18 -0
- data/doc/classes/OptiFlag/Flagset/NewInterface.src/M000019.html +18 -0
- data/doc/classes/OptiFlag/Flagset/NewInterface.src/M000020.html +18 -0
- data/doc/classes/OptiFlag/Flagset/NewInterface.src/M000021.html +18 -0
- data/doc/classes/OptiFlag/Flagset/NewInterface.src/M000022.html +18 -0
- data/doc/classes/OptiFlag/Flagset/NewInterface.src/M000023.html +18 -0
- data/doc/created.rid +1 -0
- data/doc/files/optiflag-help_rb.html +101 -0
- data/doc/files/optiflag-parse_rb.html +101 -0
- data/doc/files/optiflag_rb.html +167 -0
- data/doc/files/optiflag_rb.src/M000001.html +18 -0
- data/doc/fr_class_index.html +34 -0
- data/doc/fr_file_index.html +29 -0
- data/doc/fr_method_index.html +82 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/examples/example_1.rb +21 -0
- data/examples/example_1_1.rb +21 -0
- data/{doc/example → examples}/example_1_2.rb +8 -8
- data/examples/example_2.rb +31 -0
- data/{doc/example → examples}/example_2_1.rb +4 -4
- data/{doc/example → examples}/example_2_2.rb +7 -5
- data/{doc/example → examples}/example_2_3.rb +9 -9
- data/{doc/example → examples}/example_2_4.rb +4 -4
- data/{doc/example → examples}/example_2_5.rb +4 -4
- data/{doc/example → examples}/example_2_6.rb +6 -6
- data/{doc/example → examples}/example_3.rb +7 -6
- data/examples/example_6.rb +20 -0
- data/{doc/example → examples}/example_7.rb +5 -4
- data/examples/example_8.rb +26 -0
- data/optiflag-help.rb +42 -0
- data/optiflag-parse.rb +281 -0
- data/optiflag.gemspec +4 -3
- data/optiflag.rb +972 -0
- data/quick.rb +12 -0
- data/{test → testcases}/tc_advanced_usage_helping.rb +4 -0
- data/{test → testcases}/tc_basic_alternate_forms.rb +0 -0
- data/{test → testcases}/tc_basic_char_flags.rb +12 -12
- data/{test → testcases}/tc_basic_optional_flag.rb +0 -0
- data/{test → testcases}/tc_basic_parsing.rb +0 -0
- data/{test → testcases}/tc_basic_usage_helping.rb +0 -0
- data/{test → testcases}/tc_basic_value_validation.rb +0 -0
- data/{test → testcases}/tc_bug_one.rb +0 -0
- data/{test → testcases}/tc_bug_two.rb +0 -0
- data/{test → testcases}/tc_change_symbols.rb +0 -0
- data/{test → testcases}/tc_enumerated_value_validation.rb +0 -0
- data/{test → testcases}/tc_flagall.rb +4 -0
- data/{test → testcases}/tc_flagless_arg.rb +0 -0
- data/{test → testcases}/tc_keyword.rb +0 -0
- data/testcases/tc_new_basic_parsing.rb +51 -0
- data/testcases/tc_poro_tester.rb +30 -0
- data/{test → testcases}/tc_values_as_hash.rb +0 -0
- metadata +152 -52
- data/doc/example/example_1.rb +0 -30
- data/doc/example/example_1_1.rb +0 -27
- data/doc/example/example_2.rb +0 -28
- data/doc/example/example_4.rb +0 -12
- data/doc/example/example_5.rb +0 -26
- data/doc/example/example_6.rb +0 -17
- data/lib/optiflag.rb +0 -860
@@ -0,0 +1,36 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>new (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 165</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>,<span class="ruby-identifier">flag</span>,<span class="ruby-identifier">enclosing_module</span>)
|
15
|
+
<span class="ruby-comment cmt"># these next two lines are a highly complicated hack needed to make</span>
|
16
|
+
<span class="ruby-comment cmt"># the use of two module definitions in one file, one with a flag_symbol</span>
|
17
|
+
<span class="ruby-comment cmt"># and one without.. See tc_change_symbols.rb for the two tests that used to</span>
|
18
|
+
<span class="ruby-comment cmt"># cause the problem... also see the changes as part of the definition of </span>
|
19
|
+
<span class="ruby-comment cmt"># OptiFlag.Flagset().... -- D.O.E 5/30/06</span>
|
20
|
+
<span class="ruby-comment cmt"># Search for 'def OptiFlag.Flagset(hash)' in this </span>
|
21
|
+
<span class="ruby-identifier">singleton_class_of_enclosing_module</span> = <span class="ruby-keyword kw">class</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">enclosing_module</span>; <span class="ruby-keyword kw">self</span>; <span class="ruby-keyword kw">end</span>;
|
22
|
+
<span class="ruby-identifier">x</span> = <span class="ruby-identifier">singleton_class_of_enclosing_module</span>.<span class="ruby-identifier">included_modules</span>.<span class="ruby-identifier">select</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span>
|
23
|
+
(<span class="ruby-identifier">x</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/OptiF/</span>) <span class="ruby-keyword kw">or</span> (<span class="ruby-identifier">x</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/#<Modu/</span>)
|
24
|
+
<span class="ruby-keyword kw">end</span>[<span class="ruby-value">0</span>]
|
25
|
+
<span class="ruby-comment cmt"># the following batch of code is pure initialization</span>
|
26
|
+
<span class="ruby-ivar">@the_compresses</span>,<span class="ruby-ivar">@enclosing_module</span> = <span class="ruby-keyword kw">false</span>,<span class="ruby-identifier">enclosing_module</span>
|
27
|
+
<span class="ruby-ivar">@position_validator</span>,<span class="ruby-ivar">@validation_error</span> = [],[]
|
28
|
+
<span class="ruby-ivar">@position_enumerated_values_validator</span> = []
|
29
|
+
<span class="ruby-ivar">@order_added</span> = <span class="ruby-constant">OptiFlag</span><span class="ruby-operator">::</span><span class="ruby-constant">Flagset</span><span class="ruby-operator">::</span><span class="ruby-identifier">increment_order_counter</span>()
|
30
|
+
<span class="ruby-ivar">@name</span>,<span class="ruby-ivar">@flag</span>,<span class="ruby-ivar">@the_long_form</span> = <span class="ruby-identifier">name</span>,<span class="ruby-identifier">flag</span>,<span class="ruby-identifier">flag</span>
|
31
|
+
<span class="ruby-ivar">@the_dash_symbol</span>, <span class="ruby-ivar">@the_arity</span>, <span class="ruby-ivar">@the_alternate_forms</span>,
|
32
|
+
<span class="ruby-ivar">@the_is_required</span>, <span class="ruby-ivar">@the_long_dash_symbol</span> = <span class="ruby-identifier">x</span>.<span class="ruby-identifier">dash_symbol</span>, <span class="ruby-value">1</span>, [], <span class="ruby-keyword kw">true</span>, <span class="ruby-value str">"--"</span>
|
33
|
+
<span class="ruby-comment cmt"># puts "#{ @order_added } --- #{ @name }"</span>
|
34
|
+
<span class="ruby-keyword kw">end</span></pre>
|
35
|
+
</body>
|
36
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>translate (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 189</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">translate</span>(<span class="ruby-identifier">position</span>=<span class="ruby-value">0</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">theblock</span>)
|
15
|
+
<span class="ruby-identifier">pretranslate</span>(<span class="ruby-identifier">position</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">theblock</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,36 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>new (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 165</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>,<span class="ruby-identifier">flag</span>,<span class="ruby-identifier">enclosing_module</span>)
|
15
|
+
<span class="ruby-comment cmt"># these next two lines are a highly complicated hack needed to make</span>
|
16
|
+
<span class="ruby-comment cmt"># the use of two module definitions in one file, one with a flag_symbol</span>
|
17
|
+
<span class="ruby-comment cmt"># and one without.. See tc_change_symbols.rb for the two tests that used to</span>
|
18
|
+
<span class="ruby-comment cmt"># cause the problem... also see the changes as part of the definition of </span>
|
19
|
+
<span class="ruby-comment cmt"># OptiFlag.Flagset().... -- D.O.E 5/30/06</span>
|
20
|
+
<span class="ruby-comment cmt"># Search for 'def OptiFlag.Flagset(hash)' in this </span>
|
21
|
+
<span class="ruby-identifier">singleton_class_of_enclosing_module</span> = <span class="ruby-keyword kw">class</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">enclosing_module</span>; <span class="ruby-keyword kw">self</span>; <span class="ruby-keyword kw">end</span>;
|
22
|
+
<span class="ruby-identifier">x</span> = <span class="ruby-identifier">singleton_class_of_enclosing_module</span>.<span class="ruby-identifier">included_modules</span>.<span class="ruby-identifier">select</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span>
|
23
|
+
(<span class="ruby-identifier">x</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/OptiF/</span>) <span class="ruby-keyword kw">or</span> (<span class="ruby-identifier">x</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/#<Modu/</span>)
|
24
|
+
<span class="ruby-keyword kw">end</span>[<span class="ruby-value">0</span>]
|
25
|
+
<span class="ruby-comment cmt"># the following batch of code is pure initialization</span>
|
26
|
+
<span class="ruby-ivar">@the_compresses</span>,<span class="ruby-ivar">@enclosing_module</span> = <span class="ruby-keyword kw">false</span>,<span class="ruby-identifier">enclosing_module</span>
|
27
|
+
<span class="ruby-ivar">@position_validator</span>,<span class="ruby-ivar">@validation_error</span> = [],[]
|
28
|
+
<span class="ruby-ivar">@position_enumerated_values_validator</span> = []
|
29
|
+
<span class="ruby-ivar">@order_added</span> = <span class="ruby-constant">OptiFlag</span><span class="ruby-operator">::</span><span class="ruby-constant">Flagset</span><span class="ruby-operator">::</span><span class="ruby-identifier">increment_order_counter</span>()
|
30
|
+
<span class="ruby-ivar">@name</span>,<span class="ruby-ivar">@flag</span>,<span class="ruby-ivar">@the_long_form</span> = <span class="ruby-identifier">name</span>,<span class="ruby-identifier">flag</span>,<span class="ruby-identifier">flag</span>
|
31
|
+
<span class="ruby-ivar">@the_dash_symbol</span>, <span class="ruby-ivar">@the_arity</span>, <span class="ruby-ivar">@the_alternate_forms</span>,
|
32
|
+
<span class="ruby-ivar">@the_is_required</span>, <span class="ruby-ivar">@the_long_dash_symbol</span> = <span class="ruby-identifier">x</span>.<span class="ruby-identifier">dash_symbol</span>, <span class="ruby-value">1</span>, [], <span class="ruby-keyword kw">true</span>, <span class="ruby-value str">"--"</span>
|
33
|
+
<span class="ruby-comment cmt"># puts "#{ @order_added } --- #{ @name }"</span>
|
34
|
+
<span class="ruby-keyword kw">end</span></pre>
|
35
|
+
</body>
|
36
|
+
</html>
|
@@ -0,0 +1,36 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>new (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 165</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>,<span class="ruby-identifier">flag</span>,<span class="ruby-identifier">enclosing_module</span>)
|
15
|
+
<span class="ruby-comment cmt"># these next two lines are a highly complicated hack needed to make</span>
|
16
|
+
<span class="ruby-comment cmt"># the use of two module definitions in one file, one with a flag_symbol</span>
|
17
|
+
<span class="ruby-comment cmt"># and one without.. See tc_change_symbols.rb for the two tests that used to</span>
|
18
|
+
<span class="ruby-comment cmt"># cause the problem... also see the changes as part of the definition of </span>
|
19
|
+
<span class="ruby-comment cmt"># OptiFlag.Flagset().... -- D.O.E 5/30/06</span>
|
20
|
+
<span class="ruby-comment cmt"># Search for 'def OptiFlag.Flagset(hash)' in this </span>
|
21
|
+
<span class="ruby-identifier">singleton_class_of_enclosing_module</span> = <span class="ruby-keyword kw">class</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">enclosing_module</span>; <span class="ruby-keyword kw">self</span>; <span class="ruby-keyword kw">end</span>;
|
22
|
+
<span class="ruby-identifier">x</span> = <span class="ruby-identifier">singleton_class_of_enclosing_module</span>.<span class="ruby-identifier">included_modules</span>.<span class="ruby-identifier">select</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span>
|
23
|
+
(<span class="ruby-identifier">x</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/OptiF/</span>) <span class="ruby-keyword kw">or</span> (<span class="ruby-identifier">x</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/#<Modu/</span>)
|
24
|
+
<span class="ruby-keyword kw">end</span>[<span class="ruby-value">0</span>]
|
25
|
+
<span class="ruby-comment cmt"># the following batch of code is pure initialization</span>
|
26
|
+
<span class="ruby-ivar">@the_compresses</span>,<span class="ruby-ivar">@enclosing_module</span> = <span class="ruby-keyword kw">false</span>,<span class="ruby-identifier">enclosing_module</span>
|
27
|
+
<span class="ruby-ivar">@position_validator</span>,<span class="ruby-ivar">@validation_error</span> = [],[]
|
28
|
+
<span class="ruby-ivar">@position_enumerated_values_validator</span> = []
|
29
|
+
<span class="ruby-ivar">@order_added</span> = <span class="ruby-constant">OptiFlag</span><span class="ruby-operator">::</span><span class="ruby-constant">Flagset</span><span class="ruby-operator">::</span><span class="ruby-identifier">increment_order_counter</span>()
|
30
|
+
<span class="ruby-ivar">@name</span>,<span class="ruby-ivar">@flag</span>,<span class="ruby-ivar">@the_long_form</span> = <span class="ruby-identifier">name</span>,<span class="ruby-identifier">flag</span>,<span class="ruby-identifier">flag</span>
|
31
|
+
<span class="ruby-ivar">@the_dash_symbol</span>, <span class="ruby-ivar">@the_arity</span>, <span class="ruby-ivar">@the_alternate_forms</span>,
|
32
|
+
<span class="ruby-ivar">@the_is_required</span>, <span class="ruby-ivar">@the_long_dash_symbol</span> = <span class="ruby-identifier">x</span>.<span class="ruby-identifier">dash_symbol</span>, <span class="ruby-value">1</span>, [], <span class="ruby-keyword kw">true</span>, <span class="ruby-value str">"--"</span>
|
33
|
+
<span class="ruby-comment cmt"># puts "#{ @order_added } --- #{ @name }"</span>
|
34
|
+
<span class="ruby-keyword kw">end</span></pre>
|
35
|
+
</body>
|
36
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>translate (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 189</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">translate</span>(<span class="ruby-identifier">position</span>=<span class="ruby-value">0</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">theblock</span>)
|
15
|
+
<span class="ruby-identifier">pretranslate</span>(<span class="ruby-identifier">position</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">theblock</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>translate_all (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 193</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">translate_all</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">theblock</span>)
|
15
|
+
<span class="ruby-identifier">pretranslate_all</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">theblock</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>pretranslate (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 197</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pretranslate</span>(<span class="ruby-identifier">position</span>=<span class="ruby-value">0</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">theblock</span>)
|
15
|
+
<span class="ruby-ivar">@the_pretranslate</span> <span class="ruby-operator">||=</span> []
|
16
|
+
<span class="ruby-ivar">@the_pretranslate</span>[<span class="ruby-identifier">position</span>] = <span class="ruby-identifier">theblock</span>
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>posttranslate (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 202</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">posttranslate</span>(<span class="ruby-identifier">position</span>=<span class="ruby-value">0</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">theblock</span>)
|
15
|
+
<span class="ruby-ivar">@the_posttranslate</span> <span class="ruby-operator">||=</span> []
|
16
|
+
<span class="ruby-ivar">@the_posttranslate</span>[<span class="ruby-identifier">position</span>] = <span class="ruby-identifier">theblock</span>
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>pretranslate_all (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 207</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pretranslate_all</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">theblock</span>)
|
15
|
+
<span class="ruby-ivar">@the_pretranslate_all</span> = <span class="ruby-identifier">theblock</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>posttranslate_all (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 211</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">posttranslate_all</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">theblock</span>)
|
15
|
+
<span class="ruby-ivar">@the_posttranslate_all</span> = <span class="ruby-identifier">theblock</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>is_required (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 215</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_required</span>(<span class="ruby-identifier">yes_or_no</span>)
|
15
|
+
<span class="ruby-ivar">@the_is_required</span> = <span class="ruby-identifier">yes_or_no</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,22 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>value_matches (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 219</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">value_matches</span>(<span class="ruby-identifier">desc_regexp_pair</span>,<span class="ruby-identifier">arg_position</span>=<span class="ruby-value">0</span>)
|
15
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">desc_regexp_pair</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Regexp</span>
|
16
|
+
<span class="ruby-identifier">desc_regexp_pair</span> = [<span class="ruby-node">"This value does not match the pattern: #{ desc_regexp_pair.source }"</span>,
|
17
|
+
<span class="ruby-identifier">desc_regexp_pair</span>]
|
18
|
+
<span class="ruby-keyword kw">end</span>
|
19
|
+
<span class="ruby-ivar">@position_validator</span>[<span class="ruby-identifier">arg_position</span>] = <span class="ruby-identifier">desc_regexp_pair</span>
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
21
|
+
</body>
|
22
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>value_in_set (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 227</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">value_in_set</span>(<span class="ruby-identifier">array_of_acceptable_values</span>,<span class="ruby-identifier">arg_position</span>=<span class="ruby-value">0</span>)
|
15
|
+
<span class="ruby-ivar">@position_enumerated_values_validator</span>[<span class="ruby-identifier">arg_position</span>] =
|
16
|
+
<span class="ruby-identifier">array_of_acceptable_values</span>
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>required (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 232</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">required</span>
|
15
|
+
<span class="ruby-identifier">is_required</span>(<span class="ruby-keyword kw">true</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>optional (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 236</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">optional</span>
|
15
|
+
<span class="ruby-identifier">is_required</span>(<span class="ruby-keyword kw">false</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>no_arg (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 248</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">no_arg</span>
|
15
|
+
<span class="ruby-identifier">no_args</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>no_args (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 252</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">no_args</span>
|
15
|
+
<span class="ruby-identifier">arity</span> <span class="ruby-value">0</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>one_arg (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 256</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">one_arg</span>
|
15
|
+
<span class="ruby-identifier">arity</span> <span class="ruby-value">1</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>two_args (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 260</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">two_args</span>
|
15
|
+
<span class="ruby-identifier">arity</span> <span class="ruby-value">2</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
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
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>alternate_forms (OptiFlag::Flagset::EachFlag)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File optiflag.rb, line 264</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alternate_forms</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
15
|
+
<span class="ruby-ivar">@the_alternate_forms</span> = <span class="ruby-operator">*</span><span class="ruby-identifier">args</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">class</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Array</span>
|
16
|
+
<span class="ruby-ivar">@the_alternate_forms</span> = <span class="ruby-identifier">args</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">class</span> <span class="ruby-operator">!=</span> <span class="ruby-constant">Array</span>
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
18
|
+
</body>
|
19
|
+
</html>
|