table_fu 0.1.1
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.
- data/.gitignore +4 -0
- data/LICENSE +20 -0
- data/README +37 -0
- data/Rakefile +58 -0
- data/VERSION.yml +5 -0
- data/doc/TableFu/Datum.html +743 -0
- data/doc/TableFu/Formatting.html +469 -0
- data/doc/TableFu/Header.html +198 -0
- data/doc/TableFu/Row.html +508 -0
- data/doc/TableFu.html +1806 -0
- data/doc/_index.html +154 -0
- data/doc/class_list.html +36 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +50 -0
- data/doc/css/style.css +268 -0
- data/doc/file.README.html +89 -0
- data/doc/file_list.html +38 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +89 -0
- data/doc/js/app.js +99 -0
- data/doc/js/full_list.js +106 -0
- data/doc/js/jquery.js +19 -0
- data/doc/method_list.html +363 -0
- data/doc/top-level-namespace.html +85 -0
- data/documentation/css/dawn.css +121 -0
- data/documentation/css/styles.css +63 -0
- data/documentation/images/proplogo.png +0 -0
- data/documentation/index.html.erb +148 -0
- data/examples/columns.rb +7 -0
- data/examples/columns_hidden.rb +5 -0
- data/examples/faceting.rb +2 -0
- data/examples/formatting_options.rb +6 -0
- data/examples/last_name.rb +4 -0
- data/examples/link.rb +11 -0
- data/examples/only.rb +6 -0
- data/examples/rails_helpers.rb +3 -0
- data/examples/sort_by_column.rb +11 -0
- data/examples/sort_by_number.rb +0 -0
- data/examples/totals.rb +2 -0
- data/examples/zap_joyce.rb +3 -0
- data/index.html +210 -0
- data/lib/table_fu/formatting.rb +52 -0
- data/lib/table_fu.rb +386 -0
- data/spec/assets/sample.csv +476 -0
- data/spec/assets/test.csv +8 -0
- data/spec/assets/test_macro.csv +8 -0
- data/spec/rcov.opts +2 -0
- data/spec/readme_example_spec.rb +39 -0
- data/spec/spec.opts +4 -0
- data/spec/spec_helper.rb +4 -0
- data/spec/table_fu_spec.rb +221 -0
- data/table_fu.gemspec +112 -0
- metadata +141 -0
data/doc/_index.html
ADDED
@@ -0,0 +1,154 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta name="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
+
<title>Documentation by YARD 0.5.3</title>
|
7
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
+
|
10
|
+
<script type="text/javascript" charset="utf-8">
|
11
|
+
relpath = '';
|
12
|
+
if (relpath != '') relpath += '/';
|
13
|
+
</script>
|
14
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
15
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<script type="text/javascript" charset="utf-8">
|
20
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
21
|
+
</script>
|
22
|
+
|
23
|
+
<div id="header">
|
24
|
+
<div id="menu">
|
25
|
+
|
26
|
+
|
27
|
+
<span class="title"></span>
|
28
|
+
|
29
|
+
|
30
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<div id="search">
|
34
|
+
<a id="class_list_link" href="#">Class List</a>
|
35
|
+
<a id="method_list_link" href="#">Method List</a>
|
36
|
+
<a id ="file_list_link" href="#">File List</a>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div class="clear"></div>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
<iframe id="search_frame"></iframe>
|
43
|
+
|
44
|
+
<div id="content"><div id="listing">
|
45
|
+
<h1 class="noborder title">Documentation by YARD 0.5.3</h1>
|
46
|
+
<h1 class="alphaindex">Alphabetic Index</h1>
|
47
|
+
|
48
|
+
|
49
|
+
<h2>File Listing</h2>
|
50
|
+
<ul id="files">
|
51
|
+
|
52
|
+
|
53
|
+
<li class="r1"><a href="index.html" title="README">README</a></li>
|
54
|
+
|
55
|
+
|
56
|
+
</ul>
|
57
|
+
|
58
|
+
<div class="clear"></div>
|
59
|
+
|
60
|
+
<h2>Namespace Listing A-Z</h2>
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
<table>
|
66
|
+
<tr>
|
67
|
+
<td valign='top' width="33%">
|
68
|
+
|
69
|
+
|
70
|
+
<ul id="alpha_D" class="alpha">
|
71
|
+
<li class="letter">D</li>
|
72
|
+
<ul>
|
73
|
+
|
74
|
+
<li>
|
75
|
+
<a href="TableFu/Datum.html" title="TableFu::Datum (class)">Datum</a>
|
76
|
+
|
77
|
+
<small>(TableFu)</small>
|
78
|
+
|
79
|
+
</li>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
</ul>
|
83
|
+
|
84
|
+
|
85
|
+
<ul id="alpha_F" class="alpha">
|
86
|
+
<li class="letter">F</li>
|
87
|
+
<ul>
|
88
|
+
|
89
|
+
<li>
|
90
|
+
<a href="TableFu/Formatting.html" title="TableFu::Formatting (class)">Formatting</a>
|
91
|
+
|
92
|
+
<small>(TableFu)</small>
|
93
|
+
|
94
|
+
</li>
|
95
|
+
|
96
|
+
</ul>
|
97
|
+
</ul>
|
98
|
+
|
99
|
+
|
100
|
+
<ul id="alpha_H" class="alpha">
|
101
|
+
<li class="letter">H</li>
|
102
|
+
<ul>
|
103
|
+
|
104
|
+
<li>
|
105
|
+
<a href="TableFu/Header.html" title="TableFu::Header (class)">Header</a>
|
106
|
+
|
107
|
+
<small>(TableFu)</small>
|
108
|
+
|
109
|
+
</li>
|
110
|
+
|
111
|
+
</ul>
|
112
|
+
</ul>
|
113
|
+
|
114
|
+
|
115
|
+
<ul id="alpha_R" class="alpha">
|
116
|
+
<li class="letter">R</li>
|
117
|
+
<ul>
|
118
|
+
|
119
|
+
<li>
|
120
|
+
<a href="TableFu/Row.html" title="TableFu::Row (class)">Row</a>
|
121
|
+
|
122
|
+
<small>(TableFu)</small>
|
123
|
+
|
124
|
+
</li>
|
125
|
+
|
126
|
+
</ul>
|
127
|
+
</ul>
|
128
|
+
|
129
|
+
|
130
|
+
<ul id="alpha_T" class="alpha">
|
131
|
+
<li class="letter">T</li>
|
132
|
+
<ul>
|
133
|
+
|
134
|
+
<li>
|
135
|
+
<a href="TableFu.html" title="TableFu (class)">TableFu</a>
|
136
|
+
|
137
|
+
</li>
|
138
|
+
|
139
|
+
</ul>
|
140
|
+
</ul>
|
141
|
+
|
142
|
+
</td>
|
143
|
+
</tr>
|
144
|
+
</table>
|
145
|
+
</div></div>
|
146
|
+
|
147
|
+
<div id="footer">
|
148
|
+
Generated on Tue Mar 9 17:16:36 2010 by
|
149
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
150
|
+
0.5.3 (ruby-1.8.7).
|
151
|
+
</div>
|
152
|
+
|
153
|
+
</body>
|
154
|
+
</html>
|
data/doc/class_list.html
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta name="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
+
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
|
7
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
9
|
+
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
10
|
+
<base id="base_target" target="_parent" />
|
11
|
+
</head>
|
12
|
+
<body>
|
13
|
+
<script type="text/javascript" charset="utf-8">
|
14
|
+
if (window.top.frames.main) {
|
15
|
+
document.getElementById('base_target').target = 'main';
|
16
|
+
document.body.className = 'frames';
|
17
|
+
}
|
18
|
+
</script>
|
19
|
+
<div id="content">
|
20
|
+
<h1 id="full_list_header">Class List</h1>
|
21
|
+
<div id="nav">
|
22
|
+
<a target="_self" href="class_list.html">Classes</a> |
|
23
|
+
<a target="_self" href="method_list.html">Methods</a> |
|
24
|
+
<a target="_self" href="file_list.html">Files</a>
|
25
|
+
</div>
|
26
|
+
<div id="search">Search: <input type="text" /></div>
|
27
|
+
|
28
|
+
<ul id="full_list" class="class">
|
29
|
+
<li><a href="top-level-namespace.html" title=" (root)">Top Level Namespace</a></li>
|
30
|
+
<li><a class='toggle'></a> <a href="TableFu.html" title="TableFu (class)">TableFu</a> < Object<small class='search_info'>Top Level Namespace</small></li><ul><li><a href="TableFu/Datum.html" title="TableFu::Datum (class)">Datum</a> < Object<small class='search_info'>TableFu</small></li><li><a href="TableFu/Formatting.html" title="TableFu::Formatting (class)">Formatting</a> < Object<small class='search_info'>TableFu</small></li><li><a href="TableFu/Header.html" title="TableFu::Header (class)">Header</a> < Datum<small class='search_info'>TableFu</small></li><li><a href="TableFu/Row.html" title="TableFu::Row (class)">Row</a> < Array<small class='search_info'>TableFu</small></li></ul>
|
31
|
+
|
32
|
+
</ul>
|
33
|
+
</div>
|
34
|
+
</body>
|
35
|
+
</html>
|
36
|
+
|
data/doc/css/common.css
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
/* Override this file with custom rules */
|
@@ -0,0 +1,50 @@
|
|
1
|
+
body {
|
2
|
+
margin: 0;
|
3
|
+
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
|
4
|
+
font-size: 13px;
|
5
|
+
height: 101%;
|
6
|
+
overflow-x: hidden;
|
7
|
+
}
|
8
|
+
|
9
|
+
h1 { padding: 12px 10px; padding-bottom: 0; margin: 0; font-size: 1.4em; }
|
10
|
+
.clear { clear: both; }
|
11
|
+
#search { position: absolute; right: 5px; top: 9px; }
|
12
|
+
#full_list { padding: 0; list-style: none; margin-left: 0; }
|
13
|
+
#full_list ul { padding: 0; }
|
14
|
+
#full_list li { padding: 5px; padding-left: 12px; margin: 0; font-size: 1.1em; list-style: none; }
|
15
|
+
#noresults { display: none; padding: 7px 12px; }
|
16
|
+
ul.collapsed ul, ul.collapsed li { display: none; }
|
17
|
+
li a.toggle { cursor: default; position: relative; left: -5px; top: 4px; text-indent: -999px; width: 10px; height: 9px; margin-left: -10px; display: block; float: left; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAASCAYAAABb0P4QAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK8AAACvABQqw0mAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAAVdEVYdENyZWF0aW9uIFRpbWUAMy8xNC8wOeNZPpQAAAE2SURBVDiNrZTBccIwEEXfelIAHUA6CZ24BGaWO+FuzZAK4k6gg5QAdGAq+Bxs2Yqx7BzyL7Llp/VfzZeQhCTc/ezuGzKKnKSzpCxXJM8fwNXda3df5RZETlIt6YUzSQDs93sl8w3wBZxCCE10GM1OcWbWjB2mWgEH4Mfdyxm3PSepBHibgQE2wLe7r4HjEidpnXMYdQPKEMJcsZ4zs2POYQOcaPfwMVOo58zsAdMt18BuoVDPxUJRacELbXv3hUIX2vYmOUvi8C8ydz/ThjXrqKqqLbDIAdsCKBd+Wo7GWa7o9qzOQHVVVXeAbs+yHHCH4aTsaCOQqunmUy1yBUAXkdMIfMlgF5EXLo2OpV/c/Up7jG4hhHcYLgWzAZXUc2b2ixsfvc/RmNNfOXD3Q/oeL9axJE1yT9IOoUu6MGUkAAAAAElFTkSuQmCC) no-repeat bottom left; }
|
18
|
+
li.collapsed a.toggle { opacity: 0.5; cursor: default; background-position: top left; }
|
19
|
+
li { color: #888; cursor: pointer; }
|
20
|
+
li.deprecated { text-decoration: line-through; font-style: italic; }
|
21
|
+
li.r1 { background: #f0f0f0; }
|
22
|
+
li.r2 { background: #fafafa; }
|
23
|
+
li:hover { background: #ddd; }
|
24
|
+
li small:before { content: "("; }
|
25
|
+
li small:after { content: ")"; }
|
26
|
+
li small.search_info { display: none; }
|
27
|
+
a:link, a:visited { text-decoration: none; color: #05a; }
|
28
|
+
li.clicked { background: #05a; color: #ccc; }
|
29
|
+
li.clicked a:link, li.clicked a:visited { color: #eee; }
|
30
|
+
li.clicked a.toggle { opacity: 0.5; background-position: bottom right; }
|
31
|
+
li.collapsed.clicked a.toggle { background-position: top right; }
|
32
|
+
#search input { border: 1px solid #bbb; -moz-border-radius: 3px; -webkit-border-radius: 3px; }
|
33
|
+
#nav { margin-left: 10px; font-size: 0.9em; display: none; color: #aaa; }
|
34
|
+
#nav a:link, #nav a:visited { color: #358; }
|
35
|
+
#nav a:hover { background: transparent; color: #5af; }
|
36
|
+
|
37
|
+
.frames #content h1 { margin-top: 0; }
|
38
|
+
.frames li { white-space: nowrap; cursor: normal; }
|
39
|
+
.frames li small { display: block; font-size: 0.8em; }
|
40
|
+
.frames li small:before { content: ""; }
|
41
|
+
.frames li small:after { content: ""; }
|
42
|
+
.frames li small.search_info { display: none; }
|
43
|
+
.frames #search { position: static; margin: 3px; margin-left: 10px; font-size: 0.9em; color: #888; }
|
44
|
+
.frames #search input { width: 110px; }
|
45
|
+
.frames #nav { display: block; }
|
46
|
+
|
47
|
+
#full_list.insearch li { display: none; }
|
48
|
+
#full_list.insearch li.found { display: list-item; padding-left: 10px; }
|
49
|
+
#full_list.insearch li a.toggle { display: none; }
|
50
|
+
#full_list.insearch li small.search_info { display: block; }
|
data/doc/css/style.css
ADDED
@@ -0,0 +1,268 @@
|
|
1
|
+
body {
|
2
|
+
padding: 0 20px;
|
3
|
+
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
|
4
|
+
font-size: 13px;
|
5
|
+
}
|
6
|
+
body.frames { padding: 0 5px; }
|
7
|
+
h1 { font-size: 25px; margin: 1em 0 0.5em; padding-top: 4px; border-top: 1px dotted #d5d5d5; }
|
8
|
+
h1.noborder { border-top: 0px; margin-top: 0; padding-top: 4px; }
|
9
|
+
h1.title { margin-bottom: 10px; }
|
10
|
+
h1.alphaindex { margin-top: 0; font-size: 22px; }
|
11
|
+
h2 {
|
12
|
+
padding: 0;
|
13
|
+
padding-bottom: 3px;
|
14
|
+
border-bottom: 1px #aaa solid;
|
15
|
+
font-size: 1.4em;
|
16
|
+
margin: 1.8em 0 0.5em;
|
17
|
+
}
|
18
|
+
.clear { clear: both; }
|
19
|
+
.docstring h1, .docstring h2, .docstring h3, .docstring h4 { padding: 0; border: 0; border-bottom: 1px dotted #bbb; }
|
20
|
+
.docstring h1 { font-size: 1.2em; }
|
21
|
+
.docstring h2 { font-size: 1.1em; }
|
22
|
+
.docstring h3, .docstring h4 { font-size: 1em; border-bottom: 0; padding-top: 10px; }
|
23
|
+
|
24
|
+
.note {
|
25
|
+
color: #222;
|
26
|
+
-moz-border-radius: 3px; -webkit-border-radius: 3px;
|
27
|
+
background: #e3e4e3; border: 1px solid #d5d5d5; padding: 7px 10px;
|
28
|
+
}
|
29
|
+
.note.todo { background: #ffffc5; border-color: #ececaa; }
|
30
|
+
.note.returns_void { background: #efefef; }
|
31
|
+
.note.deprecated { background: #ffe5e5; border-color: #e9dada; }
|
32
|
+
.note.title { text-transform: lowercase; padding: 1px 5px; margin-left: 5px; font-size: 0.9em; font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif; }
|
33
|
+
h1 .note.title { font-size: 0.5em; font-weight: normal; padding: 3px 5px; position: relative; top: -3px; text-transform: capitalize; }
|
34
|
+
.note.title.constructor { color: #fff; background: #6a98d6; border-color: #6689d6; }
|
35
|
+
.note.title.writeonly { color: #fff; background: #45a638; border-color: #2da31d; }
|
36
|
+
.note.title.readonly { color: #fff; background: #6a98d6; border-color: #6689d6; }
|
37
|
+
.note.title.private { background: #d5d5d5; border-color: #c5c5c5; }
|
38
|
+
|
39
|
+
h3.inherited {
|
40
|
+
font-style: italic;
|
41
|
+
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
|
42
|
+
font-weight: normal;
|
43
|
+
padding: 0;
|
44
|
+
margin: 0;
|
45
|
+
margin-top: 12px;
|
46
|
+
margin-bottom: 3px;
|
47
|
+
font-size: 13px;
|
48
|
+
}
|
49
|
+
p.inherited {
|
50
|
+
padding: 0;
|
51
|
+
margin: 0;
|
52
|
+
margin-left: 25px;
|
53
|
+
}
|
54
|
+
|
55
|
+
dl.box {
|
56
|
+
width: 520px;
|
57
|
+
font-size: 1em;
|
58
|
+
}
|
59
|
+
dl.box dt {
|
60
|
+
float: left;
|
61
|
+
display: block;
|
62
|
+
width: 100px;
|
63
|
+
margin: 0;
|
64
|
+
text-align: right;
|
65
|
+
font-weight: bold;
|
66
|
+
border: 1px solid #aaa;
|
67
|
+
border-width: 1px 0px 0px 1px;
|
68
|
+
padding: 6px 0;
|
69
|
+
padding-right: 10px;
|
70
|
+
}
|
71
|
+
dl.box dd {
|
72
|
+
float: left;
|
73
|
+
display: block;
|
74
|
+
width: 380px;
|
75
|
+
margin: 0;
|
76
|
+
padding: 6px 0;
|
77
|
+
padding-right: 20px;
|
78
|
+
border: 1px solid #aaa;
|
79
|
+
border-width: 1px 1px 0 0;
|
80
|
+
}
|
81
|
+
dl.box .last {
|
82
|
+
border-bottom: 1px solid #aaa;
|
83
|
+
}
|
84
|
+
dl.box .r1 { background: #eee; }
|
85
|
+
|
86
|
+
ul.toplevel { list-style: none; padding-left: 0; font-size: 1.1em; }
|
87
|
+
#files { padding-left: 15px; font-size: 1.1em; }
|
88
|
+
|
89
|
+
#files { padding: 0; }
|
90
|
+
#files li { list-style: none; display: inline; padding: 7px 12px; line-height: 35px; }
|
91
|
+
|
92
|
+
dl.constants { margin-left: 40px; }
|
93
|
+
dl.constants dt { font-weight: bold; font-size: 1.1em; margin-bottom: 5px; }
|
94
|
+
dl.constants dd { width: 75%; white-space: pre; font-family: monospace; margin-bottom: 18px; }
|
95
|
+
|
96
|
+
.summary_desc { margin-left: 32px; display: block; font-family: sans-serif; }
|
97
|
+
.summary_desc tt { font-size: 0.9em; }
|
98
|
+
dl.constants .summary_desc { font-size: 0.9em; font-weight: normal; }
|
99
|
+
|
100
|
+
.method_details { border-top: 1px dotted #aaa; margin-top: 15px; padding-top: 0; }
|
101
|
+
.method_details.first { border: 0; }
|
102
|
+
p.signature {
|
103
|
+
font-size: 1.1em; font-weight: normal; font-family: Monaco, Consolas, Courier, monospace;
|
104
|
+
padding: 6px 10px; margin-top: 18px;
|
105
|
+
background: #e5e8ff; border: 1px solid #d8d8e5; -moz-border-radius: 3px; -webkit-border-radius: 3px;
|
106
|
+
}
|
107
|
+
p.signature tt { font-family: Monaco, Consolas, Courier, monospace; }
|
108
|
+
p.signature .overload { display: block; }
|
109
|
+
p.signature .extras { font-weight: normal; font-family: sans-serif; color: #444; font-size: 1em; }
|
110
|
+
p.signature .aliases { display: block; font-weight: normal; font-size: 0.9em; font-family: sans-serif; margin-top: 0px; color: #555; }
|
111
|
+
p.signature .aliases .names { font-family: Monaco, Consolas, Courier, monospace; font-weight: bold; color: #000; font-size: 1.2em; }
|
112
|
+
|
113
|
+
.tags h3 { font-size: 1em; margin-bottom: 0; }
|
114
|
+
.tags ul { margin-top: 5px; padding-left: 30px; list-style: square; }
|
115
|
+
.tags ul li { margin-bottom: 3px; }
|
116
|
+
.tags ul .name { font-family: monospace; font-weight: bold; }
|
117
|
+
.tags ul p.note { padding: 3px 6px; }
|
118
|
+
.tags { margin-bottom: 12px; }
|
119
|
+
|
120
|
+
.tags .examples h3 { margin-bottom: 10px; }
|
121
|
+
.tags .examples h4 { padding: 0; margin: 0; margin-left: 15px; font-weight: bold; font-size: 0.9em; }
|
122
|
+
|
123
|
+
.tags .overload .overload_item { list-style: none; margin-bottom: 25px; }
|
124
|
+
.tags .overload .overload_item .signature {
|
125
|
+
padding: 2px 8px;
|
126
|
+
background: #e5e8ff; border: 1px solid #d8d8e5; -moz-border-radius: 3px; -webkit-border-radius: 3px;
|
127
|
+
}
|
128
|
+
.tags .overload .signature { margin-left: -15px; font-family: monospace; display: block; font-size: 1.1em; }
|
129
|
+
.tags .overload .docstring { margin-top: 15px; }
|
130
|
+
|
131
|
+
.defines { display: none; }
|
132
|
+
|
133
|
+
#method_missing_details .notice.this { position: relative; top: -8px; color: #888; padding: 0; margin: 0; }
|
134
|
+
|
135
|
+
.showSource { font-size: 0.9em; }
|
136
|
+
.showSource a:link, .showSource a:visited { text-decoration: none; color: #666; }
|
137
|
+
|
138
|
+
#content a:link, #content a:visited { text-decoration: none; color: #05a; }
|
139
|
+
#content a:hover { background: #ffffa5; }
|
140
|
+
.docstring { margin-right: 6em; }
|
141
|
+
|
142
|
+
ul.summary {
|
143
|
+
list-style: none;
|
144
|
+
font-family: monospace;
|
145
|
+
font-size: 1em;
|
146
|
+
line-height: 1.5em;
|
147
|
+
}
|
148
|
+
ul.summary a:link, ul.summary a:visited {
|
149
|
+
text-decoration: none; font-size: 1.1em;
|
150
|
+
}
|
151
|
+
ul.summary li { margin-bottom: 5px; }
|
152
|
+
.summary .summary_signature {
|
153
|
+
padding: 1px 10px;
|
154
|
+
background: #eaeaff; border: 1px solid #dfdfe5;
|
155
|
+
-moz-border-radius: 3px; -webkit-border-radius: 3px;
|
156
|
+
}
|
157
|
+
.summary_signature:hover { background: #eeeeff; cursor: pointer; }
|
158
|
+
#content .summary_signature:hover a:link,
|
159
|
+
#content .summary_signature:hover a:visited {
|
160
|
+
background: transparent;
|
161
|
+
color: #48f;
|
162
|
+
}
|
163
|
+
|
164
|
+
p.inherited a { font-family: monospace; font-size: 0.9em; }
|
165
|
+
p.inherited { word-spacing: 5px; font-size: 1.2em; }
|
166
|
+
|
167
|
+
p.children { font-size: 1.2em; }
|
168
|
+
p.children a { font-size: 0.9em; }
|
169
|
+
p.children strong { font-size: 0.8em; }
|
170
|
+
p.children strong.modules { padding-left: 5px; }
|
171
|
+
|
172
|
+
ul.fullTree { display: none; padding-left: 0; list-style: none; margin-left: 0; margin-bottom: 10px; }
|
173
|
+
ul.fullTree ul { margin-left: 0; padding-left: 0; list-style: none; }
|
174
|
+
ul.fullTree li { text-align: center; }
|
175
|
+
ul.fullTree li.next:before { font-size: 1.2em; content: '\2B06'; color: #bbb; display: block; margin-top: 3px; }
|
176
|
+
|
177
|
+
#search { position: absolute; right: 14px; top: 0px; }
|
178
|
+
#search a:link, #search a:visited {
|
179
|
+
display: block; float: left; margin-right: 4px;
|
180
|
+
padding: 8px 10px; text-decoration: none; color: #05a; background: #eaeaff;
|
181
|
+
border: 1px solid #d8d8e5;
|
182
|
+
-moz-border-radius-bottomleft: 3px; -moz-border-radius-bottomright: 3px;
|
183
|
+
-webkit-border-bottom-left-radius: 3px; -webkit-border-bottom-right-radius: 3px;
|
184
|
+
}
|
185
|
+
#search a:hover { background: #eef; color: #06b; }
|
186
|
+
#search a.active {
|
187
|
+
background: #568; padding-bottom: 20px; color: #fff; border: 1px solid #457;
|
188
|
+
-moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px;
|
189
|
+
-webkit-border-top-left-radius: 5px; -webkit-border-top-right-radius: 5px;
|
190
|
+
}
|
191
|
+
#search a.inactive { color: #999; }
|
192
|
+
.frames #search { display: none; }
|
193
|
+
.inheritanceTree, .toggleDefines { float: right; }
|
194
|
+
|
195
|
+
#menu { font-size: 1.3em; color: #bbb; top: -5px; position: relative; }
|
196
|
+
#menu .title, #menu a { font-size: 0.7em; }
|
197
|
+
#menu .title { color: #555; }
|
198
|
+
#menu a:link, #menu a:visited { color: #333; text-decoration: none; border-bottom: 1px dotted #bbd; }
|
199
|
+
#menu a:hover { color: #05a; }
|
200
|
+
#menu .noframes { display: none; }
|
201
|
+
.frames #menu .noframes { display: inline; float: right; }
|
202
|
+
|
203
|
+
#footer { margin-top: 15px; border-top: 1px solid #ccc; text-align: center; padding: 7px 0; color: #999; }
|
204
|
+
#footer a:link, #footer a:visited { color: #444; text-decoration: none; border-bottom: 1px dotted #bbd; }
|
205
|
+
#footer a:hover { color: #05a; }
|
206
|
+
|
207
|
+
#listing ul.alpha { font-size: 1.1em; }
|
208
|
+
#listing ul.alpha { margin: 0; padding: 0; padding-bottom: 10px; list-style: none; }
|
209
|
+
#listing ul.alpha li.letter { font-size: 1.4em; padding-bottom: 10px; }
|
210
|
+
#listing ul.alpha ul { margin: 0; padding-left: 15px; }
|
211
|
+
#listing ul small { color: #666; font-size: 0.7em; }
|
212
|
+
|
213
|
+
li.r1 { background: #f0f0f0; }
|
214
|
+
li.r2 { background: #fafafa; }
|
215
|
+
|
216
|
+
#search_frame {
|
217
|
+
background: #fff;
|
218
|
+
display: none;
|
219
|
+
position: absolute;
|
220
|
+
top: 36px;
|
221
|
+
right: 18px;
|
222
|
+
width: 500px;
|
223
|
+
height: 80%;
|
224
|
+
overflow-y: scroll;
|
225
|
+
border: 1px solid #999;
|
226
|
+
border-collapse: collapse;
|
227
|
+
-webkit-box-shadow: -2px 5px 25px #aaa;
|
228
|
+
-moz-box-shadow: -2px 5px 25px #aaa;
|
229
|
+
-moz-border-radius: 2px;
|
230
|
+
-webkit-border-radius: 2px;
|
231
|
+
}
|
232
|
+
|
233
|
+
#content ul.summary li.deprecated a:link,
|
234
|
+
#content ul.summary li.deprecated a:visited { text-decoration: line-through; font-style: italic; }
|
235
|
+
|
236
|
+
/* syntax highlighting */
|
237
|
+
.source_code { display: none; padding: 3px 8px; border-left: 8px solid #ddd; margin-top: 5px; }
|
238
|
+
#filecontents pre.code, .docstring pre.code, .source_code pre { font-family: monospace; }
|
239
|
+
#filecontents pre.code, .docstring pre.code { display: block; }
|
240
|
+
.source_code .lines { padding-right: 12px; color: #555; text-align: right; }
|
241
|
+
#filecontents pre.code, .docstring pre.code,
|
242
|
+
.tags .example { padding: 5px 12px; margin-top: 4px; border: 1px solid #eef; background: #f5f5ff; }
|
243
|
+
pre.code { color: #000; }
|
244
|
+
pre.code .info.file { color: #555; }
|
245
|
+
pre.code .val { color: #036A07; }
|
246
|
+
pre.code .tstring_content,
|
247
|
+
pre.code .heredoc_beg, pre.code .heredoc_end,
|
248
|
+
pre.code .qwords_beg, pre.code .qwords_end,
|
249
|
+
pre.code .tstring, pre.code .dstring { color: #036A07; }
|
250
|
+
pre.code .fid, pre.code .id.new, pre.code .id.to_s,
|
251
|
+
pre.code .id.to_sym, pre.code .id.to_f,
|
252
|
+
pre.code .dot + pre.code .id,
|
253
|
+
pre.code .id.to_i pre.code .id.each { color: #0085FF; }
|
254
|
+
pre.code .comment { color: #0066FF; }
|
255
|
+
pre.code .const, pre.code .constant { color: #585CF6; }
|
256
|
+
pre.code .symbol { color: #C5060B; }
|
257
|
+
pre.code .kw,
|
258
|
+
pre.code .label,
|
259
|
+
pre.code .id.require,
|
260
|
+
pre.code .id.extend,
|
261
|
+
pre.code .id.include { color: #0000FF; }
|
262
|
+
pre.code .ivar { color: #318495; }
|
263
|
+
pre.code .gvar,
|
264
|
+
pre.code .id.backref,
|
265
|
+
pre.code .id.nth_ref { color: #6D79DE; }
|
266
|
+
pre.code .regexp, .dregexp { color: #036A07; }
|
267
|
+
pre.code a { border-bottom: 1px dotted #bbf; }
|
268
|
+
|
@@ -0,0 +1,89 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta name="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
+
<title>Documentation by YARD 0.5.3</title>
|
7
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
+
|
10
|
+
<script type="text/javascript" charset="utf-8">
|
11
|
+
relpath = '';
|
12
|
+
if (relpath != '') relpath += '/';
|
13
|
+
</script>
|
14
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
15
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<script type="text/javascript" charset="utf-8">
|
20
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
21
|
+
</script>
|
22
|
+
|
23
|
+
<div id="header">
|
24
|
+
<div id="menu">
|
25
|
+
|
26
|
+
<a href="_index.html" title="Index">Index</a> »
|
27
|
+
<span class="title">File: README</span>
|
28
|
+
|
29
|
+
|
30
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<div id="search">
|
34
|
+
<a id="class_list_link" href="#">Class List</a>
|
35
|
+
<a id="method_list_link" href="#">Method List</a>
|
36
|
+
<a id ="file_list_link" href="#">File List</a>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div class="clear"></div>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
<iframe id="search_frame"></iframe>
|
43
|
+
|
44
|
+
<div id="content"><div id='filecontents'><p>
|
45
|
+
# TableFu
|
46
|
+
</p>
|
47
|
+
<p>
|
48
|
+
TableFu turns a matric array(from a csv file for example) into a
|
49
|
+
spreadsheet.
|
50
|
+
</p>
|
51
|
+
<p>
|
52
|
+
Allows formatting, macros, sorting, and faceting.
|
53
|
+
</p>
|
54
|
+
<p>
|
55
|
+
Documentation: http://propublica.github.com/table-fu
|
56
|
+
</p>
|
57
|
+
<p>
|
58
|
+
Installation: gem install table-fu
|
59
|
+
</p>
|
60
|
+
<p>
|
61
|
+
## Usage
|
62
|
+
</p>
|
63
|
+
<pre class="code">
|
64
|
+
<span class='csv identifier id'>csv</span> <span class='assign token'>=</span><span class='string val'>"Project,Cost,Date,URL\nBuild Supercollider,500_000_000.50,09/15/2009,http://project.com\nHarness Power of Fusion,25_000_000,09/16/2009,http://project2.com\nMotorized Bar Stool,45.00,09/17/2009,http://project3.com\n"</span>
|
65
|
+
|
66
|
+
<span class='@spreadsheet ivar id'>@spreadsheet</span> <span class='assign token'>=</span> <span class='TableFu constant id'>TableFu</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='csv identifier id'>csv</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='s identifier id'>s</span><span class='bitor op'>|</span>
|
67
|
+
<span class='s identifier id'>s</span><span class='dot token'>.</span><span class='formatting identifier id'>formatting</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='string val'>'Cost'</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='string val'>'currency'</span><span class='comma token'>,</span>
|
68
|
+
<span class='string val'>'Link'</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='lbrace token'>{</span><span class='string val'>'method'</span><span class='assign token'>=</span><span class='gt op'>></span> <span class='string val'>'link'</span><span class='comma token'>,</span> <span class='string val'>'arguments'</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='lbrack token'>[</span><span class='string val'>'Project'</span><span class='comma token'>,</span> <span class='string val'>'URL'</span><span class='rbrack token'>]</span><span class='rbrace token'>}</span><span class='rbrace token'>}</span>
|
69
|
+
<span class='s identifier id'>s</span><span class='dot token'>.</span><span class='sorted_by identifier id'>sorted_by</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='string val'>'Project'</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='lbrace token'>{</span><span class='string val'>'order'</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='string val'>'descending'</span><span class='rbrace token'>}</span><span class='rbrace token'>}</span>
|
70
|
+
<span class='s identifier id'>s</span><span class='dot token'>.</span><span class='columns identifier id'>columns</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='string val'>'Date'</span><span class='comma token'>,</span> <span class='string val'>'Project'</span><span class='comma token'>,</span> <span class='string val'>'Cost'</span><span class='comma token'>,</span> <span class='string val'>'Link'</span><span class='rbrack token'>]</span>
|
71
|
+
<span class='end end kw'>end</span>
|
72
|
+
|
73
|
+
<span class='@spreadsheet ivar id'>@spreadsheet</span><span class='dot token'>.</span><span class='rows identifier id'>rows</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='column_for identifier id'>column_for</span><span class='lparen token'>(</span><span class='string val'>'Cost'</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span> <span class='comment val'>#=> '$45.00'</span>
|
74
|
+
|
75
|
+
<span class='@spreadsheet ivar id'>@spreadsheet</span><span class='dot token'>.</span><span class='rows identifier id'>rows</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='columns identifier id'>columns</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span> <span class='comment val'>#=> 'Motorized Bar Stool'</span>
|
76
|
+
|
77
|
+
<span class='@spreadsheet ivar id'>@spreadsheet</span><span class='dot token'>.</span><span class='rows identifier id'>rows</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='column_for identifier id'>column_for</span><span class='lparen token'>(</span><span class='string val'>'Link'</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span>
|
78
|
+
<span class='comment val'>#=> "<a href='http://project.com', title='Build Supercollider'>Build Supercollider</a>"</span>
|
79
|
+
</pre>
|
80
|
+
</div></div>
|
81
|
+
|
82
|
+
<div id="footer">
|
83
|
+
Generated on Tue Mar 9 17:16:36 2010 by
|
84
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
85
|
+
0.5.3 (ruby-1.8.7).
|
86
|
+
</div>
|
87
|
+
|
88
|
+
</body>
|
89
|
+
</html>
|
data/doc/file_list.html
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta name="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
+
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
|
7
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
9
|
+
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
10
|
+
<base id="base_target" target="_parent" />
|
11
|
+
</head>
|
12
|
+
<body>
|
13
|
+
<script type="text/javascript" charset="utf-8">
|
14
|
+
if (window.top.frames.main) {
|
15
|
+
document.getElementById('base_target').target = 'main';
|
16
|
+
document.body.className = 'frames';
|
17
|
+
}
|
18
|
+
</script>
|
19
|
+
<div id="content">
|
20
|
+
<h1 id="full_list_header">File List</h1>
|
21
|
+
<div id="nav">
|
22
|
+
<a target="_self" href="class_list.html">Classes</a> |
|
23
|
+
<a target="_self" href="method_list.html">Methods</a> |
|
24
|
+
<a target="_self" href="file_list.html">Files</a>
|
25
|
+
</div>
|
26
|
+
<div id="search">Search: <input type="text" /></div>
|
27
|
+
|
28
|
+
<ul id="full_list" class="files">
|
29
|
+
|
30
|
+
|
31
|
+
<li class="r1"><a href="index.html" title="README">README</a></li>
|
32
|
+
|
33
|
+
|
34
|
+
</ul>
|
35
|
+
</div>
|
36
|
+
</body>
|
37
|
+
</html>
|
38
|
+
|
data/doc/frames.html
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
3
|
+
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
7
|
+
<title>Documentation by YARD 0.5.3</title>
|
8
|
+
</head>
|
9
|
+
<frameset cols="20%,*">
|
10
|
+
<frame name="list" src="class_list.html" />
|
11
|
+
<frame name="main" src="index.html" />
|
12
|
+
</frameset>
|
13
|
+
</html>
|