cartesian 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. data/History.txt +6 -0
  2. data/Manifest.txt +13 -35
  3. data/Rakefile +19 -3
  4. data/{lib → etc}/recursive.rb +0 -0
  5. data/index.html +7 -0
  6. data/lib/cartesian.rb +1 -1
  7. data/script/txt2html +4 -2
  8. data/website/doc/Array.html +172 -0
  9. data/website/doc/Cartesian.html +638 -0
  10. data/website/doc/CartesianIterator.html +672 -0
  11. data/website/doc/Enumerable.html +158 -0
  12. data/website/doc/GridSearch.html +292 -0
  13. data/website/doc/Iterable.html +306 -0
  14. data/website/doc/README_rdoc.html +220 -0
  15. data/website/doc/created.rid +4 -4
  16. data/website/doc/lib/cartesian_iterator_rb.html +52 -0
  17. data/website/doc/lib/cartesian_rb.html +56 -0
  18. data/website/doc/lib/grid_search_rb.html +52 -0
  19. data/website/doc/rdoc.css +706 -0
  20. data/website/index.html +3 -3
  21. data/website/template.html.erb +1 -1
  22. metadata +15 -37
  23. data/website/doc/classes/Array.html +0 -128
  24. data/website/doc/classes/Cartesian.html +0 -398
  25. data/website/doc/classes/Cartesian.src/M000020.html +0 -18
  26. data/website/doc/classes/Cartesian.src/M000021.html +0 -18
  27. data/website/doc/classes/Cartesian.src/M000022.html +0 -18
  28. data/website/doc/classes/Cartesian.src/M000023.html +0 -23
  29. data/website/doc/classes/Cartesian.src/M000026.html +0 -23
  30. data/website/doc/classes/Cartesian.src/M000027.html +0 -30
  31. data/website/doc/classes/CartesianIterator.html +0 -326
  32. data/website/doc/classes/CartesianIterator.src/M000001.html +0 -21
  33. data/website/doc/classes/CartesianIterator.src/M000002.html +0 -18
  34. data/website/doc/classes/CartesianIterator.src/M000003.html +0 -21
  35. data/website/doc/classes/CartesianIterator.src/M000005.html +0 -20
  36. data/website/doc/classes/CartesianIterator.src/M000008.html +0 -20
  37. data/website/doc/classes/CartesianIterator.src/M000009.html +0 -19
  38. data/website/doc/classes/CartesianIterator.src/M000012.html +0 -19
  39. data/website/doc/classes/CartesianIterator.src/M000013.html +0 -39
  40. data/website/doc/classes/Enumerable.html +0 -112
  41. data/website/doc/classes/GridSearch.html +0 -160
  42. data/website/doc/classes/GridSearch.src/M000014.html +0 -18
  43. data/website/doc/classes/GridSearch.src/M000015.html +0 -18
  44. data/website/doc/classes/Iterable.html +0 -176
  45. data/website/doc/classes/Iterable.src/M000016.html +0 -19
  46. data/website/doc/classes/Iterable.src/M000017.html +0 -19
  47. data/website/doc/classes/Iterable.src/M000018.html +0 -18
  48. data/website/doc/classes/Iterable.src/M000019.html +0 -18
  49. data/website/doc/classes/Range.html +0 -118
  50. data/website/doc/files/cartesian_iterator_rb.html +0 -101
  51. data/website/doc/files/cartesian_rb.html +0 -108
  52. data/website/doc/files/grid_search_rb.html +0 -101
  53. data/website/doc/fr_class_index.html +0 -33
  54. data/website/doc/fr_file_index.html +0 -29
  55. data/website/doc/fr_method_index.html +0 -54
  56. data/website/doc/rdoc-style.css +0 -208
@@ -0,0 +1,220 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
+
9
+ <title>File: README.rdoc [RDoc Documentation]</title>
10
+
11
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="./js/jquery.js" type="text/javascript"
14
+ charset="utf-8"></script>
15
+ <script src="./js/thickbox-compressed.js" type="text/javascript"
16
+ charset="utf-8"></script>
17
+ <script src="./js/quicksearch.js" type="text/javascript"
18
+ charset="utf-8"></script>
19
+ <script src="./js/darkfish.js" type="text/javascript"
20
+ charset="utf-8"></script>
21
+ </head>
22
+
23
+ <body class="file">
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="./index.html">Home</a>
29
+ <a href="./index.html#classes">Classes</a>
30
+ <a href="./index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="project-metadata">
36
+
37
+
38
+ <div id="fileindex-section" class="section project-section">
39
+ <h3 class="section-header">Files</h3>
40
+ <ul>
41
+
42
+ <li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
43
+
44
+ </ul>
45
+ </div>
46
+
47
+
48
+ <div id="classindex-section" class="section project-section">
49
+ <h3 class="section-header">Class Index
50
+ <span class="search-toggle"><img src="./images/find.png"
51
+ height="16" width="16" alt="[+]"
52
+ title="show/hide quicksearch" /></span></h3>
53
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
54
+ <fieldset>
55
+ <legend>Quicksearch</legend>
56
+ <input type="text" name="quicksearch" value=""
57
+ class="quicksearch-field" />
58
+ </fieldset>
59
+ </form>
60
+
61
+ <ul class="link-list">
62
+
63
+ <li><a href="./Array.html">Array</a></li>
64
+
65
+ <li><a href="./Cartesian.html">Cartesian</a></li>
66
+
67
+ <li><a href="./CartesianIterator.html">CartesianIterator</a></li>
68
+
69
+ <li><a href="./Enumerable.html">Enumerable</a></li>
70
+
71
+ <li><a href="./GridSearch.html">GridSearch</a></li>
72
+
73
+ <li><a href="./Iterable.html">Iterable</a></li>
74
+
75
+ </ul>
76
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
77
+ </div>
78
+
79
+
80
+ </div>
81
+ </div>
82
+
83
+ <div id="documentation">
84
+ <h1>cartesian</h1>
85
+ <ul>
86
+ <li><p>
87
+ <a
88
+ href="http://adrianomitre.github.com/cartesian/website/index.html">adrianomitre.github.com/cartesian/website/index.html</a>
89
+ </p>
90
+ </li>
91
+ </ul>
92
+ <h2>DESCRIPTION:</h2>
93
+ <p>
94
+ Provides methods for the calculation of the cartesian producted between two
95
+ or more enumerable objects. Includes grid search optimization methods. It
96
+ can also be easily and conveniently mixed in into any enumerable class.
97
+ </p>
98
+ <h2>FEATURES:</h2>
99
+ <p>
100
+ The module is automatically mixed in <a href="Array.html">Array</a> class,
101
+ but the names of the methods for mixin are different.
102
+ </p>
103
+ <p>
104
+ Module:
105
+ </p>
106
+ <pre>
107
+ Cartesian::product(foo, bar)
108
+ </pre>
109
+ <p>
110
+ Mixin:
111
+ </p>
112
+ <pre>
113
+ foo.cartesian( bar )
114
+ </pre>
115
+ <h2>SYNOPSIS:</h2>
116
+ <p>
117
+ One can use the <a href="Cartesian.html">Cartesian</a> module directly
118
+ </p>
119
+ <pre>
120
+ require 'cartesian'
121
+ foo = [1, 2]
122
+ bar = [&quot;a&quot;, &quot;b&quot;]
123
+ Cartesian::product(foo, bar) #=&gt; [[1, &quot;a&quot;], [1, &quot;b&quot;], [2, &quot;a&quot;], [2, &quot;b&quot;]]
124
+ </pre>
125
+ <p>
126
+ or use the methods provided by the mixin in the <a
127
+ href="Array.html">Array</a> class
128
+ </p>
129
+ <pre>
130
+ foo.cartesian(bar) #=&gt; [[1, &quot;a&quot;], [1, &quot;b&quot;], [2, &quot;a&quot;], [2, &quot;b&quot;]]
131
+ </pre>
132
+ <p>
133
+ which include the short&#8217;n&#8217;sweet <em>x</em> method
134
+ </p>
135
+ <pre>
136
+ v = [] #=&gt; []
137
+ for a, b in [1,2].x [3,4]
138
+ v &lt;&lt; [a,b]
139
+ end #=&gt; true
140
+ v #=&gt; [[1, 3], [1, 4], [2, 3], [2, 4]]
141
+ for x, y, z in 0..1
142
+ </pre>
143
+ <p>
144
+ The &#8217;**&#8217; operator provides a convenient way of iterating
145
+ multi-dimensionally over the same array or range
146
+ </p>
147
+ <pre>
148
+ u = [0,1]**3 #=&gt; #&lt;CartesianIterator:0x7f2fb8e54978 @tot_iter=8, @lists=[[0, 1], [0, 1], [0, 1]]&gt;
149
+ u.to_a #=&gt; [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 1], [1, 0, 0], [1, 0, 1], [1, 1, 0], [1, 1, 1]]
150
+
151
+ v = []
152
+ for x, y, z in (0...10)**3
153
+ v &lt;&lt; [x, y, z] if x*x + y*y + z*z == 6
154
+ end
155
+ v #=&gt; [[1, 1, 2], [1, 2, 1], [2, 1, 1]]
156
+ </pre>
157
+ <p>
158
+ Finally, the grid search methods
159
+ </p>
160
+ <pre>
161
+ require 'cartesian/grid_search'
162
+ [-1, 0, 1, 2].argmax {|x| x**2 } #=&gt; 2
163
+ 0.argmin {|x| x.abs } #=&gt; 0
164
+ </pre>
165
+ <h2>REQUIREMENTS:</h2>
166
+ <ul>
167
+ <li><p>
168
+ None, besides the Ruby interpreter and standard library. This gems was
169
+ successfully tested on all relevant Ruby versions: MRI/YARV, JRuby,
170
+ Rubinius, and REE. For details, see History.txt.
171
+ </p>
172
+ </li>
173
+ </ul>
174
+ <h2>INSTALL:</h2>
175
+ <ul>
176
+ <li><p>
177
+ sudo gem install cartesian
178
+ </p>
179
+ </li>
180
+ </ul>
181
+ <h2>LICENSE:</h2>
182
+ <p>
183
+ (The MIT License)
184
+ </p>
185
+ <p>
186
+ Copyright &#169; 2006-2011 Adriano Mitre <adriano.mitre@gmail.com>
187
+ </p>
188
+ <p>
189
+ Permission is hereby granted, free of charge, to any person obtaining a
190
+ copy of this software and associated documentation files (the
191
+ &#8216;Software&#8217;), to deal in the Software without restriction,
192
+ including without limitation the rights to use, copy, modify, merge,
193
+ publish, distribute, sublicense, and/or sell copies of the Software, and to
194
+ permit persons to whom the Software is furnished to do so, subject to the
195
+ following conditions:
196
+ </p>
197
+ <p>
198
+ The above copyright notice and this permission notice shall be included in
199
+ all copies or substantial portions of the Software.
200
+ </p>
201
+ <p>
202
+ THE SOFTWARE IS PROVIDED &#8216;AS IS&#8217;, WITHOUT WARRANTY OF ANY KIND,
203
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
204
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
205
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
206
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
207
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
208
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
209
+ </p>
210
+
211
+ </div>
212
+
213
+ <div id="validator-badges">
214
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
215
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
216
+ Rdoc Generator</a> 1.1.6</small>.</p>
217
+ </div>
218
+ </body>
219
+ </html>
220
+
@@ -1,5 +1,5 @@
1
- Fri, 07 Jan 2011 02:32:48 -0200
2
- README.rdoc Fri, 07 Jan 2011 02:06:14 -0200
3
- lib/cartesian.rb Fri, 07 Jan 2011 01:02:01 -0200
4
- lib/cartesian_iterator.rb Thu, 06 Jan 2011 18:18:15 -0200
1
+ Fri, 07 Jan 2011 13:39:16 -0200
2
+ README.rdoc Fri, 07 Jan 2011 02:46:43 -0200
3
+ lib/cartesian.rb Fri, 07 Jan 2011 13:37:49 -0200
4
+ lib/cartesian_iterator.rb Fri, 07 Jan 2011 02:46:43 -0200
5
5
  lib/grid_search.rb Wed, 05 Jan 2011 06:07:10 -0200
@@ -0,0 +1,52 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
+
9
+ <title>File: cartesian_iterator.rb [RDoc Documentation]</title>
10
+
11
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="../js/jquery.js" type="text/javascript"
14
+ charset="utf-8"></script>
15
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
16
+ charset="utf-8"></script>
17
+ <script src="../js/quicksearch.js" type="text/javascript"
18
+ charset="utf-8"></script>
19
+ <script src="../js/darkfish.js" type="text/javascript"
20
+ charset="utf-8"></script>
21
+ </head>
22
+
23
+ <body class="file file-popup">
24
+ <div id="metadata">
25
+ <dl>
26
+ <dt class="modified-date">Last Modified</dt>
27
+ <dd class="modified-date">2011-01-07 02:46:43 -0200</dd>
28
+
29
+
30
+ <dt class="requires">Requires</dt>
31
+ <dd class="requires">
32
+ <ul>
33
+
34
+ </ul>
35
+ </dd>
36
+
37
+
38
+
39
+ </dl>
40
+ </div>
41
+
42
+ <div id="documentation">
43
+
44
+ <div class="description">
45
+ <h2>Description</h2>
46
+
47
+ </div>
48
+
49
+ </div>
50
+ </body>
51
+ </html>
52
+
@@ -0,0 +1,56 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
+
9
+ <title>File: cartesian.rb [RDoc Documentation]</title>
10
+
11
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="../js/jquery.js" type="text/javascript"
14
+ charset="utf-8"></script>
15
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
16
+ charset="utf-8"></script>
17
+ <script src="../js/quicksearch.js" type="text/javascript"
18
+ charset="utf-8"></script>
19
+ <script src="../js/darkfish.js" type="text/javascript"
20
+ charset="utf-8"></script>
21
+ </head>
22
+
23
+ <body class="file file-popup">
24
+ <div id="metadata">
25
+ <dl>
26
+ <dt class="modified-date">Last Modified</dt>
27
+ <dd class="modified-date">2011-01-07 13:37:49 -0200</dd>
28
+
29
+
30
+ <dt class="requires">Requires</dt>
31
+ <dd class="requires">
32
+ <ul>
33
+
34
+ <li>cartesian_iterator</li>
35
+
36
+ <li>jruby</li>
37
+
38
+ </ul>
39
+ </dd>
40
+
41
+
42
+
43
+ </dl>
44
+ </div>
45
+
46
+ <div id="documentation">
47
+
48
+ <div class="description">
49
+ <h2>Description</h2>
50
+
51
+ </div>
52
+
53
+ </div>
54
+ </body>
55
+ </html>
56
+
@@ -0,0 +1,52 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
+
9
+ <title>File: grid_search.rb [RDoc Documentation]</title>
10
+
11
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="../js/jquery.js" type="text/javascript"
14
+ charset="utf-8"></script>
15
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
16
+ charset="utf-8"></script>
17
+ <script src="../js/quicksearch.js" type="text/javascript"
18
+ charset="utf-8"></script>
19
+ <script src="../js/darkfish.js" type="text/javascript"
20
+ charset="utf-8"></script>
21
+ </head>
22
+
23
+ <body class="file file-popup">
24
+ <div id="metadata">
25
+ <dl>
26
+ <dt class="modified-date">Last Modified</dt>
27
+ <dd class="modified-date">2011-01-05 06:07:10 -0200</dd>
28
+
29
+
30
+ <dt class="requires">Requires</dt>
31
+ <dd class="requires">
32
+ <ul>
33
+
34
+ </ul>
35
+ </dd>
36
+
37
+
38
+
39
+ </dl>
40
+ </div>
41
+
42
+ <div id="documentation">
43
+
44
+ <div class="description">
45
+ <h2>Description</h2>
46
+
47
+ </div>
48
+
49
+ </div>
50
+ </body>
51
+ </html>
52
+
@@ -0,0 +1,706 @@
1
+ /*
2
+ * "Darkfish" Rdoc CSS
3
+ * $Id: rdoc.css 54 2009-01-27 01:09:48Z deveiant $
4
+ *
5
+ * Author: Michael Granger <ged@FaerieMUD.org>
6
+ *
7
+ */
8
+
9
+ /* Base Green is: #6C8C22 */
10
+
11
+ *{ padding: 0; margin: 0; }
12
+
13
+ body {
14
+ background: #efefef;
15
+ font: 14px "Helvetica Neue", Helvetica, Tahoma, sans-serif;
16
+ }
17
+ body.class, body.module, body.file {
18
+ margin-left: 40px;
19
+ }
20
+ body.file-popup {
21
+ font-size: 90%;
22
+ margin-left: 0;
23
+ }
24
+
25
+ h1 {
26
+ font-size: 300%;
27
+ text-shadow: rgba(135,145,135,0.65) 2px 2px 3px;
28
+ color: #6C8C22;
29
+ }
30
+ h2,h3,h4 { margin-top: 1.5em; }
31
+
32
+ :link,
33
+ :visited {
34
+ color: #6C8C22;
35
+ text-decoration: none;
36
+ }
37
+ :link:hover,
38
+ :visited:hover {
39
+ border-bottom: 1px dotted #6C8C22;
40
+ }
41
+
42
+ pre {
43
+ background: #ddd;
44
+ padding: 0.5em 0;
45
+ }
46
+
47
+
48
+ /* @group Generic Classes */
49
+
50
+ .initially-hidden {
51
+ display: none;
52
+ }
53
+
54
+ .quicksearch-field {
55
+ width: 98%;
56
+ background: #ddd;
57
+ border: 1px solid #aaa;
58
+ height: 1.5em;
59
+ -webkit-border-radius: 4px;
60
+ }
61
+ .quicksearch-field:focus {
62
+ background: #f1edba;
63
+ }
64
+
65
+ .missing-docs {
66
+ font-size: 120%;
67
+ background: white url(images/wrench_orange.png) no-repeat 4px center;
68
+ color: #ccc;
69
+ line-height: 2em;
70
+ border: 1px solid #d00;
71
+ opacity: 1;
72
+ padding-left: 20px;
73
+ text-indent: 24px;
74
+ letter-spacing: 3px;
75
+ font-weight: bold;
76
+ -webkit-border-radius: 5px;
77
+ -moz-border-radius: 5px;
78
+ }
79
+
80
+ .target-section {
81
+ border: 2px solid #dcce90;
82
+ border-left-width: 8px;
83
+ padding: 0 1em;
84
+ background: #fff3c2;
85
+ }
86
+
87
+ /* @end */
88
+
89
+
90
+ /* @group Index Page, Standalone file pages */
91
+ body.indexpage {
92
+ margin: 1em 3em;
93
+ }
94
+ body.indexpage p,
95
+ body.indexpage div,
96
+ body.file p {
97
+ margin: 1em 0;
98
+ }
99
+
100
+ .indexpage ul,
101
+ .file #documentation ul {
102
+ line-height: 160%;
103
+ list-style: none;
104
+ }
105
+ .indexpage ul :link,
106
+ .indexpage ul :visited {
107
+ font-size: 16px;
108
+ }
109
+
110
+ .indexpage li,
111
+ .file #documentation li {
112
+ padding-left: 20px;
113
+ background: url(images/bullet_black.png) no-repeat left 4px;
114
+ }
115
+ .indexpage li.module {
116
+ background: url(images/package.png) no-repeat left 4px;
117
+ }
118
+ .indexpage li.class {
119
+ background: url(images/ruby.png) no-repeat left 4px;
120
+ }
121
+ .indexpage li.file {
122
+ background: url(images/page_white_text.png) no-repeat left 4px;
123
+ }
124
+ .file li p,
125
+ .indexpage li p {
126
+ margin: 0 0;
127
+ }
128
+
129
+ /* @end */
130
+
131
+ /* @group Top-Level Structure */
132
+
133
+ .class #metadata,
134
+ .file #metadata,
135
+ .module #metadata {
136
+ float: left;
137
+ width: 260px;
138
+ }
139
+
140
+ .class #documentation,
141
+ .file #documentation,
142
+ .module #documentation {
143
+ margin: 2em 1em 5em 300px;
144
+ min-width: 340px;
145
+ }
146
+
147
+ .file #metadata {
148
+ margin: 0.8em;
149
+ }
150
+
151
+ #validator-badges {
152
+ clear: both;
153
+ margin: 1em 1em 2em;
154
+ }
155
+
156
+ /* @end */
157
+
158
+ /* @group Metadata Section */
159
+ #metadata .section {
160
+ background-color: #dedede;
161
+ -moz-border-radius: 5px;
162
+ -webkit-border-radius: 5px;
163
+ border: 1px solid #aaa;
164
+ margin: 0 8px 16px;
165
+ font-size: 90%;
166
+ overflow: hidden;
167
+ }
168
+ #metadata h3.section-header {
169
+ margin: 0;
170
+ padding: 2px 8px;
171
+ background: #ccc;
172
+ color: #666;
173
+ -moz-border-radius-topleft: 4px;
174
+ -moz-border-radius-topright: 4px;
175
+ -webkit-border-top-left-radius: 4px;
176
+ -webkit-border-top-right-radius: 4px;
177
+ border-bottom: 1px solid #aaa;
178
+ }
179
+ #metadata #home-section h3.section-header {
180
+ border-bottom: 0;
181
+ }
182
+
183
+ #metadata ul,
184
+ #metadata dl,
185
+ #metadata p {
186
+ padding: 8px;
187
+ list-style: none;
188
+ }
189
+
190
+ #file-metadata ul {
191
+ padding-left: 28px;
192
+ list-style-image: url(images/page_green.png);
193
+ }
194
+
195
+ dl.svninfo {
196
+ color: #666;
197
+ margin: 0;
198
+ }
199
+ dl.svninfo dt {
200
+ font-weight: bold;
201
+ }
202
+
203
+ ul.link-list li {
204
+ white-space: nowrap;
205
+ }
206
+ ul.link-list .type {
207
+ font-size: 8px;
208
+ text-transform: uppercase;
209
+ color: white;
210
+ background: #969696;
211
+ padding: 2px 4px;
212
+ -webkit-border-radius: 5px;
213
+ }
214
+
215
+ /* @end */
216
+
217
+
218
+ /* @group Project Metadata Section */
219
+ #project-metadata {
220
+ margin-top: 3em;
221
+ }
222
+
223
+ .file #project-metadata {
224
+ margin-top: 0em;
225
+ }
226
+
227
+ #project-metadata .section {
228
+ border: 1px solid #aaa;
229
+ }
230
+ #project-metadata h3.section-header {
231
+ border-bottom: 1px solid #aaa;
232
+ position: relative;
233
+ }
234
+ #project-metadata h3.section-header .search-toggle {
235
+ position: absolute;
236
+ right: 5px;
237
+ }
238
+
239
+
240
+ #project-metadata form {
241
+ color: #777;
242
+ background: #ccc;
243
+ padding: 8px 8px 16px;
244
+ border-bottom: 1px solid #bbb;
245
+ }
246
+ #project-metadata fieldset {
247
+ border: 0;
248
+ }
249
+
250
+ #no-class-search-results {
251
+ margin: 0 auto 1em;
252
+ text-align: center;
253
+ font-size: 14px;
254
+ font-weight: bold;
255
+ color: #aaa;
256
+ }
257
+
258
+ /* @end */
259
+
260
+
261
+ /* @group Documentation Section */
262
+ #description {
263
+ font-size: 100%;
264
+ color: #333;
265
+ }
266
+
267
+ #description p {
268
+ margin: 1em 0.4em;
269
+ }
270
+
271
+ #description li p {
272
+ margin: 0;
273
+ }
274
+
275
+ #description ul {
276
+ margin-left: 1.5em;
277
+ }
278
+ #description ul li {
279
+ line-height: 1.4em;
280
+ }
281
+
282
+ #description dl,
283
+ #documentation dl {
284
+ margin: 8px 1.5em;
285
+ border: 1px solid #ccc;
286
+ }
287
+ #description dl {
288
+ font-size: 14px;
289
+ }
290
+
291
+ #description dt,
292
+ #documentation dt {
293
+ padding: 2px 4px;
294
+ font-weight: bold;
295
+ background: #ddd;
296
+ }
297
+ #description dd,
298
+ #documentation dd {
299
+ padding: 2px 12px;
300
+ }
301
+ #description dd + dt,
302
+ #documentation dd + dt {
303
+ margin-top: 0.7em;
304
+ }
305
+
306
+ #documentation .section {
307
+ font-size: 90%;
308
+ }
309
+ #documentation h3.section-header {
310
+ margin-top: 2em;
311
+ padding: 0.75em 0.5em;
312
+ background-color: #dedede;
313
+ color: #333;
314
+ font-size: 150%;
315
+ border: 1px solid #bbb;
316
+ -moz-border-radius: 3px;
317
+ -webkit-border-radius: 3px;
318
+ }
319
+
320
+ #constants-list > dl,
321
+ #attributes-list > dl {
322
+ margin: 1em 0 2em;
323
+ border: 0;
324
+ }
325
+ #constants-list > dl dt,
326
+ #attributes-list > dl dt {
327
+ padding-left: 0;
328
+ font-weight: bold;
329
+ font-family: Monaco, "Andale Mono";
330
+ background: inherit;
331
+ }
332
+ #constants-list > dl dt a,
333
+ #attributes-list > dl dt a {
334
+ color: inherit;
335
+ }
336
+ #constants-list > dl dd,
337
+ #attributes-list > dl dd {
338
+ margin: 0 0 1em 0;
339
+ padding: 0;
340
+ color: #666;
341
+ }
342
+
343
+ /* @group Method Details */
344
+
345
+ #documentation .method-source-code {
346
+ display: none;
347
+ }
348
+
349
+ #documentation .method-detail {
350
+ margin: 0.5em 0;
351
+ padding: 0.5em 0;
352
+ cursor: pointer;
353
+ }
354
+ #documentation .method-detail:hover {
355
+ background-color: #f1edba;
356
+ }
357
+ #documentation .method-heading {
358
+ position: relative;
359
+ padding: 2px 4px 0 20px;
360
+ font-size: 125%;
361
+ font-weight: bold;
362
+ color: #333;
363
+ background: url(images/brick.png) no-repeat left bottom;
364
+ }
365
+ #documentation .method-heading :link,
366
+ #documentation .method-heading :visited {
367
+ color: inherit;
368
+ }
369
+ #documentation .method-click-advice {
370
+ position: absolute;
371
+ top: 2px;
372
+ right: 5px;
373
+ font-size: 10px;
374
+ color: #9b9877;
375
+ visibility: hidden;
376
+ padding-right: 20px;
377
+ line-height: 20px;
378
+ background: url(images/zoom.png) no-repeat right top;
379
+ }
380
+ #documentation .method-detail:hover .method-click-advice {
381
+ visibility: visible;
382
+ }
383
+
384
+ #documentation .method-alias .method-heading {
385
+ color: #666;
386
+ background: url(images/brick_link.png) no-repeat left bottom;
387
+ }
388
+
389
+ #documentation .method-description,
390
+ #documentation .aliases {
391
+ margin: 0 20px;
392
+ line-height: 1.2em;
393
+ color: #666;
394
+ }
395
+ #documentation .aliases {
396
+ padding-top: 4px;
397
+ font-style: italic;
398
+ cursor: default;
399
+ }
400
+ #documentation .method-description p {
401
+ padding: 0;
402
+ }
403
+ #documentation .method-description p + p {
404
+ margin-bottom: 0.5em;
405
+ }
406
+ #documentation .method-description ul {
407
+ margin-left: 1.5em;
408
+ }
409
+
410
+ #documentation .attribute-method-heading {
411
+ background: url(images/tag_green.png) no-repeat left bottom;
412
+ }
413
+ #documentation #attribute-method-details .method-detail:hover {
414
+ background-color: transparent;
415
+ cursor: default;
416
+ }
417
+ #documentation .attribute-access-type {
418
+ font-size: 60%;
419
+ text-transform: uppercase;
420
+ vertical-align: super;
421
+ padding: 0 2px;
422
+ }
423
+ /* @end */
424
+
425
+ /* @end */
426
+
427
+
428
+
429
+ /* @group Source Code */
430
+
431
+ div.method-source-code {
432
+ background: #262626;
433
+ color: #efefef;
434
+ margin: 1em;
435
+ padding: 0.5em;
436
+ border: 1px dashed #999;
437
+ overflow: hidden;
438
+ }
439
+
440
+ div.method-source-code pre {
441
+ background: inherit;
442
+ padding: 0;
443
+ color: white;
444
+ overflow: auto;
445
+ }
446
+
447
+ /* @group Ruby keyword styles */
448
+
449
+ .ruby-constant { color: #7fffd4; background: transparent; }
450
+ .ruby-keyword { color: #00ffff; background: transparent; }
451
+ .ruby-ivar { color: #eedd82; background: transparent; }
452
+ .ruby-operator { color: #00ffee; background: transparent; }
453
+ .ruby-identifier { color: #ffdead; background: transparent; }
454
+ .ruby-node { color: #ffa07a; background: transparent; }
455
+ .ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
456
+ .ruby-regexp { color: #ffa07a; background: transparent; }
457
+ .ruby-value { color: #7fffd4; background: transparent; }
458
+
459
+ /* @end */
460
+ /* @end */
461
+
462
+
463
+ /* @group File Popup Contents */
464
+
465
+ .file #metadata,
466
+ .file-popup #metadata {
467
+ }
468
+
469
+ .file-popup dl {
470
+ font-size: 80%;
471
+ padding: 0.75em;
472
+ background-color: #dedede;
473
+ color: #333;
474
+ border: 1px solid #bbb;
475
+ -moz-border-radius: 3px;
476
+ -webkit-border-radius: 3px;
477
+ }
478
+ .file dt {
479
+ font-weight: bold;
480
+ padding-left: 22px;
481
+ line-height: 20px;
482
+ background: url(images/page_white_width.png) no-repeat left top;
483
+ }
484
+ .file dt.modified-date {
485
+ background: url(images/date.png) no-repeat left top;
486
+ }
487
+ .file dt.requires {
488
+ background: url(images/plugin.png) no-repeat left top;
489
+ }
490
+ .file dt.scs-url {
491
+ background: url(images/wrench.png) no-repeat left top;
492
+ }
493
+
494
+ .file dl dd {
495
+ margin: 0 0 1em 0;
496
+ }
497
+ .file #metadata dl dd ul {
498
+ list-style: circle;
499
+ margin-left: 20px;
500
+ padding-top: 0;
501
+ }
502
+ .file #metadata dl dd ul li {
503
+ }
504
+
505
+
506
+ .file h2 {
507
+ margin-top: 2em;
508
+ padding: 0.75em 0.5em;
509
+ background-color: #dedede;
510
+ color: #333;
511
+ font-size: 120%;
512
+ border: 1px solid #bbb;
513
+ -moz-border-radius: 3px;
514
+ -webkit-border-radius: 3px;
515
+ }
516
+
517
+ /* @end */
518
+
519
+
520
+
521
+
522
+ /* @group ThickBox Styles */
523
+ #TB_window {
524
+ font: 12px Arial, Helvetica, sans-serif;
525
+ color: #333333;
526
+ }
527
+
528
+ #TB_secondLine {
529
+ font: 10px Arial, Helvetica, sans-serif;
530
+ color:#666666;
531
+ }
532
+
533
+ #TB_window :link,
534
+ #TB_window :visited { color: #666666; }
535
+ #TB_window :link:hover,
536
+ #TB_window :visited:hover { color: #000; }
537
+ #TB_window :link:active,
538
+ #TB_window :visited:active { color: #666666; }
539
+ #TB_window :link:focus,
540
+ #TB_window :visited:focus { color: #666666; }
541
+
542
+ #TB_overlay {
543
+ position: fixed;
544
+ z-index:100;
545
+ top: 0px;
546
+ left: 0px;
547
+ height:100%;
548
+ width:100%;
549
+ }
550
+
551
+ .TB_overlayMacFFBGHack {background: url(images/macFFBgHack.png) repeat;}
552
+ .TB_overlayBG {
553
+ background-color:#000;
554
+ filter:alpha(opacity=75);
555
+ -moz-opacity: 0.75;
556
+ opacity: 0.75;
557
+ }
558
+
559
+ * html #TB_overlay { /* ie6 hack */
560
+ position: absolute;
561
+ height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
562
+ }
563
+
564
+ #TB_window {
565
+ position: fixed;
566
+ background: #ffffff;
567
+ z-index: 102;
568
+ color:#000000;
569
+ display:none;
570
+ border: 4px solid #525252;
571
+ text-align:left;
572
+ top:50%;
573
+ left:50%;
574
+ }
575
+
576
+ * html #TB_window { /* ie6 hack */
577
+ position: absolute;
578
+ margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
579
+ }
580
+
581
+ #TB_window img#TB_Image {
582
+ display:block;
583
+ margin: 15px 0 0 15px;
584
+ border-right: 1px solid #ccc;
585
+ border-bottom: 1px solid #ccc;
586
+ border-top: 1px solid #666;
587
+ border-left: 1px solid #666;
588
+ }
589
+
590
+ #TB_caption{
591
+ height:25px;
592
+ padding:7px 30px 10px 25px;
593
+ float:left;
594
+ }
595
+
596
+ #TB_closeWindow{
597
+ height:25px;
598
+ padding:11px 25px 10px 0;
599
+ float:right;
600
+ }
601
+
602
+ #TB_closeAjaxWindow{
603
+ padding:7px 10px 5px 0;
604
+ margin-bottom:1px;
605
+ text-align:right;
606
+ float:right;
607
+ }
608
+
609
+ #TB_ajaxWindowTitle{
610
+ float:left;
611
+ padding:7px 0 5px 10px;
612
+ margin-bottom:1px;
613
+ font-size: 22px;
614
+ }
615
+
616
+ #TB_title{
617
+ background-color: #6C8C22;
618
+ color: #dedede;
619
+ height:40px;
620
+ }
621
+ #TB_title :link,
622
+ #TB_title :visited {
623
+ color: white !important;
624
+ border-bottom: 1px dotted #dedede;
625
+ }
626
+
627
+ #TB_ajaxContent{
628
+ clear:both;
629
+ padding:2px 15px 15px 15px;
630
+ overflow:auto;
631
+ text-align:left;
632
+ line-height:1.4em;
633
+ }
634
+
635
+ #TB_ajaxContent.TB_modal{
636
+ padding:15px;
637
+ }
638
+
639
+ #TB_ajaxContent p{
640
+ padding:5px 0px 5px 0px;
641
+ }
642
+
643
+ #TB_load{
644
+ position: fixed;
645
+ display:none;
646
+ height:13px;
647
+ width:208px;
648
+ z-index:103;
649
+ top: 50%;
650
+ left: 50%;
651
+ margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */
652
+ }
653
+
654
+ * html #TB_load { /* ie6 hack */
655
+ position: absolute;
656
+ margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
657
+ }
658
+
659
+ #TB_HideSelect{
660
+ z-index:99;
661
+ position:fixed;
662
+ top: 0;
663
+ left: 0;
664
+ background-color:#fff;
665
+ border:none;
666
+ filter:alpha(opacity=0);
667
+ -moz-opacity: 0;
668
+ opacity: 0;
669
+ height:100%;
670
+ width:100%;
671
+ }
672
+
673
+ * html #TB_HideSelect { /* ie6 hack */
674
+ position: absolute;
675
+ height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
676
+ }
677
+
678
+ #TB_iframeContent{
679
+ clear:both;
680
+ border:none;
681
+ margin-bottom:-1px;
682
+ margin-top:1px;
683
+ _margin-bottom:1px;
684
+ }
685
+
686
+ /* @end */
687
+
688
+ /* @group Debugging Section */
689
+
690
+ #debugging-toggle {
691
+ text-align: center;
692
+ }
693
+ #debugging-toggle img {
694
+ cursor: pointer;
695
+ }
696
+
697
+ #rdoc-debugging-section-dump {
698
+ display: none;
699
+ margin: 0 2em 2em;
700
+ background: #ccc;
701
+ border: 1px solid #999;
702
+ }
703
+
704
+
705
+
706
+ /* @end */