workbook 0.4.13 → 0.4.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/lib/workbook/modules/cell.rb +14 -0
- data/lib/workbook/version.rb +1 -1
- data/test/test_modules_cache.rb +14 -14
- data/test/test_modules_cell.rb +9 -2
- data/test/test_readers_xls_reader.rb +1 -1
- metadata +4 -46
- data/doc/RubyXL/Cell.html +0 -201
- data/doc/RubyXL/Workbook.html +0 -449
- data/doc/RubyXL.html +0 -128
- data/doc/Workbook/Book.html +0 -1852
- data/doc/Workbook/Cell.html +0 -1553
- data/doc/Workbook/Format.html +0 -1168
- data/doc/Workbook/Modules/RawObjectsStorage.html +0 -502
- data/doc/Workbook/Modules/TableDiffSort.html +0 -758
- data/doc/Workbook/Modules/TypeParser.html +0 -1063
- data/doc/Workbook/Modules.html +0 -117
- data/doc/Workbook/NilValue.html +0 -434
- data/doc/Workbook/Readers/CsvReader.html +0 -324
- data/doc/Workbook/Readers/OdsReader.html +0 -1066
- data/doc/Workbook/Readers/TxtReader.html +0 -236
- data/doc/Workbook/Readers/XlsReader.html +0 -378
- data/doc/Workbook/Readers/XlsShared.html +0 -188
- data/doc/Workbook/Readers/XlsxReader.html +0 -302
- data/doc/Workbook/Readers.html +0 -117
- data/doc/Workbook/Row.html +0 -2392
- data/doc/Workbook/Sheet.html +0 -875
- data/doc/Workbook/Table.html +0 -1732
- data/doc/Workbook/Template.html +0 -634
- data/doc/Workbook/Writers/CsvTableWriter.html +0 -200
- data/doc/Workbook/Writers/HtmlWriter.html +0 -407
- data/doc/Workbook/Writers/XlsWriter.html +0 -905
- data/doc/Workbook/Writers.html +0 -117
- data/doc/Workbook.html +0 -142
- data/doc/_index.html +0 -381
- data/doc/class_list.html +0 -53
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -57
- data/doc/css/style.css +0 -338
- data/doc/file.README.html +0 -245
- data/doc/file_list.html +0 -55
- data/doc/frames.html +0 -28
- data/doc/index.html +0 -245
- data/doc/js/app.js +0 -214
- data/doc/js/full_list.js +0 -173
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -1308
- data/doc/top-level-namespace.html +0 -112
- data/test/artifacts/floats_problem.xls +0 -0
@@ -1,188 +0,0 @@
|
|
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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
Module: Workbook::Readers::XlsShared
|
8
|
-
|
9
|
-
— Documentation by YARD 0.8.5.2
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
hasFrames = window.top.frames.main ? true : false;
|
19
|
-
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!" + escape(window.location.href);
|
21
|
-
</script>
|
22
|
-
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
25
|
-
|
26
|
-
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
27
|
-
|
28
|
-
|
29
|
-
</head>
|
30
|
-
<body>
|
31
|
-
<div id="header">
|
32
|
-
<div id="menu">
|
33
|
-
|
34
|
-
<a href="../../_index.html">Index (X)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../../Workbook.html" title="Workbook (module)">Workbook</a></span></span> » <span class='title'><span class='object_link'><a href="../Readers.html" title="Workbook::Readers (module)">Readers</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">XlsShared</span>
|
38
|
-
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
-
</div>
|
42
|
-
|
43
|
-
<div id="search">
|
44
|
-
|
45
|
-
<a class="full_list_link" id="class_list_link"
|
46
|
-
href="../../class_list.html">
|
47
|
-
Class List
|
48
|
-
</a>
|
49
|
-
|
50
|
-
<a class="full_list_link" id="method_list_link"
|
51
|
-
href="../../method_list.html">
|
52
|
-
Method List
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../../file_list.html">
|
57
|
-
File List
|
58
|
-
</a>
|
59
|
-
|
60
|
-
</div>
|
61
|
-
<div class="clear"></div>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<iframe id="search_frame"></iframe>
|
65
|
-
|
66
|
-
<div id="content"><h1>Module: Workbook::Readers::XlsShared
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
<dt class="r1">Included in:</dt>
|
81
|
-
<dd class="r1"><span class='object_link'><a href="../Book.html" title="Workbook::Book (class)">Book</a></span></dd>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<dt class="r2 last">Defined in:</dt>
|
86
|
-
<dd class="r2 last">lib/workbook/readers/xls_shared.rb</dd>
|
87
|
-
|
88
|
-
</dl>
|
89
|
-
<div class="clear"></div>
|
90
|
-
|
91
|
-
|
92
|
-
<h2>Constant Summary</h2>
|
93
|
-
|
94
|
-
<dl class="constants">
|
95
|
-
|
96
|
-
<dt id="XLS_COLORS-constant" class="">XLS_COLORS =
|
97
|
-
|
98
|
-
</dt>
|
99
|
-
<dd><pre class="code"><span class='lbrace'>{</span><span class='symbol'>:xls_color_1</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#000000</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
100
|
-
<span class='symbol'>:xls_color_2</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FFFFFF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
101
|
-
<span class='symbol'>:xls_color_3</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FF0000</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
102
|
-
<span class='symbol'>:xls_color_4</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#00FF00</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
103
|
-
<span class='symbol'>:xls_color_5</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#0000FF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
104
|
-
<span class='symbol'>:xls_color_6</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FFFF00</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
105
|
-
<span class='symbol'>:xls_color_7</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FF00FF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
106
|
-
<span class='symbol'>:xls_color_8</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#00FFFF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
107
|
-
<span class='symbol'>:xls_color_9</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#800000</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
108
|
-
<span class='symbol'>:xls_color_10</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#008000</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
109
|
-
<span class='symbol'>:xls_color_11</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#000080</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
110
|
-
<span class='symbol'>:xls_color_12</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#808000</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
111
|
-
<span class='symbol'>:xls_color_13</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#800080</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
112
|
-
<span class='symbol'>:xls_color_14</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#008080</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
113
|
-
<span class='symbol'>:xls_color_15</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#C0C0C0</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
114
|
-
<span class='symbol'>:xls_color_16</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#808080</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
115
|
-
<span class='symbol'>:xls_color_17</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#9999FF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
116
|
-
<span class='symbol'>:xls_color_18</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#993366</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
117
|
-
<span class='symbol'>:xls_color_19</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FFFFCC</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
118
|
-
<span class='symbol'>:xls_color_20</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#CCFFFF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
119
|
-
<span class='symbol'>:xls_color_21</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#660066</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
120
|
-
<span class='symbol'>:xls_color_22</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FF8080</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
121
|
-
<span class='symbol'>:xls_color_23</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#0066CC</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
122
|
-
<span class='symbol'>:xls_color_24</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#CCCCFF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
123
|
-
<span class='symbol'>:xls_color_25</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#000080</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
124
|
-
<span class='symbol'>:xls_color_26</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FF00FF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
125
|
-
<span class='symbol'>:xls_color_27</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FFFF00</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
126
|
-
<span class='symbol'>:xls_color_28</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#00FFFF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
127
|
-
<span class='symbol'>:xls_color_29</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#800080</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
128
|
-
<span class='symbol'>:xls_color_30</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#800000</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
129
|
-
<span class='symbol'>:xls_color_31</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#008080</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
130
|
-
<span class='symbol'>:xls_color_32</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#0000FF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
131
|
-
<span class='symbol'>:xls_color_33</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#00CCFF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
132
|
-
<span class='symbol'>:xls_color_34</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#CCFFFF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
133
|
-
<span class='symbol'>:xls_color_35</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#CCFFCC</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
134
|
-
<span class='symbol'>:xls_color_36</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FFFF99</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
135
|
-
<span class='symbol'>:xls_color_37</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#99CCFF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
136
|
-
<span class='symbol'>:xls_color_38</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FF99CC</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
137
|
-
<span class='symbol'>:xls_color_39</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#CC99FF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
138
|
-
<span class='symbol'>:xls_color_40</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FFCC99</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
139
|
-
<span class='symbol'>:xls_color_41</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#3366FF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
140
|
-
<span class='symbol'>:xls_color_42</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#33CCCC</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
141
|
-
<span class='symbol'>:xls_color_43</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#99CC00</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
142
|
-
<span class='symbol'>:xls_color_44</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FFCC00</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
143
|
-
<span class='symbol'>:xls_color_45</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FF9900</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
144
|
-
<span class='symbol'>:xls_color_46</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FF6600</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
145
|
-
<span class='symbol'>:xls_color_47</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#666699</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
146
|
-
<span class='symbol'>:xls_color_48</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#969696</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
147
|
-
<span class='symbol'>:xls_color_49</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#003366</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
148
|
-
<span class='symbol'>:xls_color_50</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#339966</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
149
|
-
<span class='symbol'>:xls_color_51</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#003300</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
150
|
-
<span class='symbol'>:xls_color_52</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#333300</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
151
|
-
<span class='symbol'>:xls_color_53</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#993300</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
152
|
-
<span class='symbol'>:xls_color_54</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#993366</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
153
|
-
<span class='symbol'>:xls_color_55</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#333399</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
154
|
-
<span class='symbol'>:xls_color_56</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#333333</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
155
|
-
<span class='symbol'>:black</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#000000</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
156
|
-
<span class='symbol'>:white</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FFFFFF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
157
|
-
<span class='symbol'>:red</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FF0000</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
158
|
-
<span class='symbol'>:green</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#00FF00</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
159
|
-
<span class='symbol'>:blue</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#0000FF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
160
|
-
<span class='symbol'>:yellow</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FFFF00</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
161
|
-
<span class='symbol'>:magenta</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FF00FF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
162
|
-
<span class='symbol'>:cyan</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#00FFFF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
163
|
-
<span class='symbol'>:border</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#FFFFFF</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
164
|
-
<span class='symbol'>:text</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#000000</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
165
|
-
<span class='symbol'>:lime</span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#00f94c</span><span class='tstring_end'>'</span></span>
|
166
|
-
<span class='rbrace'>}</span></pre></dd>
|
167
|
-
|
168
|
-
</dl>
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
</div>
|
180
|
-
|
181
|
-
<div id="footer">
|
182
|
-
Generated on Sun May 19 23:16:29 2013 by
|
183
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
184
|
-
0.8.5.2 (ruby-1.9.3).
|
185
|
-
</div>
|
186
|
-
|
187
|
-
</body>
|
188
|
-
</html>
|
@@ -1,302 +0,0 @@
|
|
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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
Module: Workbook::Readers::XlsxReader
|
8
|
-
|
9
|
-
— Documentation by YARD 0.8.5.2
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
hasFrames = window.top.frames.main ? true : false;
|
19
|
-
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!" + escape(window.location.href);
|
21
|
-
</script>
|
22
|
-
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
25
|
-
|
26
|
-
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
27
|
-
|
28
|
-
|
29
|
-
</head>
|
30
|
-
<body>
|
31
|
-
<div id="header">
|
32
|
-
<div id="menu">
|
33
|
-
|
34
|
-
<a href="../../_index.html">Index (X)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../../Workbook.html" title="Workbook (module)">Workbook</a></span></span> » <span class='title'><span class='object_link'><a href="../Readers.html" title="Workbook::Readers (module)">Readers</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">XlsxReader</span>
|
38
|
-
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
-
</div>
|
42
|
-
|
43
|
-
<div id="search">
|
44
|
-
|
45
|
-
<a class="full_list_link" id="class_list_link"
|
46
|
-
href="../../class_list.html">
|
47
|
-
Class List
|
48
|
-
</a>
|
49
|
-
|
50
|
-
<a class="full_list_link" id="method_list_link"
|
51
|
-
href="../../method_list.html">
|
52
|
-
Method List
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../../file_list.html">
|
57
|
-
File List
|
58
|
-
</a>
|
59
|
-
|
60
|
-
</div>
|
61
|
-
<div class="clear"></div>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<iframe id="search_frame"></iframe>
|
65
|
-
|
66
|
-
<div id="content"><h1>Module: Workbook::Readers::XlsxReader
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
<dt class="r1">Included in:</dt>
|
81
|
-
<dd class="r1"><span class='object_link'><a href="../Book.html" title="Workbook::Book (class)">Book</a></span></dd>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<dt class="r2 last">Defined in:</dt>
|
86
|
-
<dd class="r2 last">lib/workbook/readers/xlsx_reader.rb</dd>
|
87
|
-
|
88
|
-
</dl>
|
89
|
-
<div class="clear"></div>
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
<h2>
|
100
|
-
Instance Method Summary
|
101
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
102
|
-
</h2>
|
103
|
-
|
104
|
-
<ul class="summary">
|
105
|
-
|
106
|
-
<li class="public ">
|
107
|
-
<span class="summary_signature">
|
108
|
-
|
109
|
-
<a href="#load_xlsx-instance_method" title="#load_xlsx (instance method)">- (Object) <strong>load_xlsx</strong>(file_obj) </a>
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
</span>
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
124
|
-
|
125
|
-
</li>
|
126
|
-
|
127
|
-
|
128
|
-
<li class="public ">
|
129
|
-
<span class="summary_signature">
|
130
|
-
|
131
|
-
<a href="#parse_xlsx-instance_method" title="#parse_xlsx (instance method)">- (Object) <strong>parse_xlsx</strong>(xlsx_spreadsheet = template.raws[RubyXL::Workbook], options = {}) </a>
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
</span>
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
146
|
-
|
147
|
-
</li>
|
148
|
-
|
149
|
-
|
150
|
-
</ul>
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
<div id="instance_method_details" class="method_details_list">
|
156
|
-
<h2>Instance Method Details</h2>
|
157
|
-
|
158
|
-
|
159
|
-
<div class="method_details first">
|
160
|
-
<h3 class="signature first" id="load_xlsx-instance_method">
|
161
|
-
|
162
|
-
- (<tt>Object</tt>) <strong>load_xlsx</strong>(file_obj)
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
</h3><table class="source_code">
|
169
|
-
<tr>
|
170
|
-
<td>
|
171
|
-
<pre class="lines">
|
172
|
-
|
173
|
-
|
174
|
-
133
|
175
|
-
134
|
176
|
-
135
|
177
|
-
136
|
178
|
-
137
|
179
|
-
138</pre>
|
180
|
-
</td>
|
181
|
-
<td>
|
182
|
-
<pre class="code"><span class="info file"># File 'lib/workbook/readers/xlsx_reader.rb', line 133</span>
|
183
|
-
|
184
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_load_xlsx'>load_xlsx</span> <span class='id identifier rubyid_file_obj'>file_obj</span>
|
185
|
-
<span class='id identifier rubyid_file_obj'>file_obj</span> <span class='op'>=</span> <span class='id identifier rubyid_file_obj'>file_obj</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span> <span class='kw'>if</span> <span class='id identifier rubyid_file_obj'>file_obj</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>File</span>
|
186
|
-
<span class='id identifier rubyid_sp'>sp</span> <span class='op'>=</span> <span class='const'>RubyXL</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_file_obj'>file_obj</span><span class='rparen'>)</span>
|
187
|
-
<span class='id identifier rubyid_template'>template</span><span class='period'>.</span><span class='id identifier rubyid_add_raw'>add_raw</span> <span class='id identifier rubyid_sp'>sp</span>
|
188
|
-
<span class='id identifier rubyid_parse_xlsx'>parse_xlsx</span> <span class='id identifier rubyid_sp'>sp</span>
|
189
|
-
<span class='kw'>end</span></pre>
|
190
|
-
</td>
|
191
|
-
</tr>
|
192
|
-
</table>
|
193
|
-
</div>
|
194
|
-
|
195
|
-
<div class="method_details ">
|
196
|
-
<h3 class="signature " id="parse_xlsx-instance_method">
|
197
|
-
|
198
|
-
- (<tt>Object</tt>) <strong>parse_xlsx</strong>(xlsx_spreadsheet = template.raws[RubyXL::Workbook], options = {})
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
</h3><table class="source_code">
|
205
|
-
<tr>
|
206
|
-
<td>
|
207
|
-
<pre class="lines">
|
208
|
-
|
209
|
-
|
210
|
-
140
|
211
|
-
141
|
212
|
-
142
|
213
|
-
143
|
214
|
-
144
|
215
|
-
145
|
216
|
-
146
|
217
|
-
147
|
218
|
-
148
|
219
|
-
149
|
220
|
-
150
|
221
|
-
151
|
222
|
-
152
|
223
|
-
153
|
224
|
-
154
|
225
|
-
155
|
226
|
-
156
|
227
|
-
157
|
228
|
-
158
|
229
|
-
159
|
230
|
-
160
|
231
|
-
161
|
232
|
-
162
|
233
|
-
163
|
234
|
-
164
|
235
|
-
165
|
236
|
-
166
|
237
|
-
167
|
238
|
-
168
|
239
|
-
169
|
240
|
-
170
|
241
|
-
171
|
242
|
-
172
|
243
|
-
173
|
244
|
-
174
|
245
|
-
175</pre>
|
246
|
-
</td>
|
247
|
-
<td>
|
248
|
-
<pre class="code"><span class="info file"># File 'lib/workbook/readers/xlsx_reader.rb', line 140</span>
|
249
|
-
|
250
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_parse_xlsx'>parse_xlsx</span> <span class='id identifier rubyid_xlsx_spreadsheet'>xlsx_spreadsheet</span><span class='op'>=</span><span class='id identifier rubyid_template'>template</span><span class='period'>.</span><span class='id identifier rubyid_raws'>raws</span><span class='lbracket'>[</span><span class='const'>RubyXL</span><span class='op'>::</span><span class='const'>Workbook</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span>
|
251
|
-
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='symbol'>:additional_type_parsing</span><span class='op'>=></span><span class='kw'>false</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span> <span class='id identifier rubyid_options'>options</span>
|
252
|
-
<span class='comment'>#number_of_worksheets = xlsx_spreadsheet.worksheets.count
|
253
|
-
</span> <span class='id identifier rubyid_xlsx_spreadsheet'>xlsx_spreadsheet</span><span class='period'>.</span><span class='id identifier rubyid_worksheets'>worksheets</span><span class='period'>.</span><span class='id identifier rubyid_each_with_index'>each_with_index</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_worksheet'>worksheet</span><span class='comma'>,</span> <span class='id identifier rubyid_si'>si</span><span class='op'>|</span>
|
254
|
-
<span class='id identifier rubyid_s'>s</span> <span class='op'>=</span> <span class='id identifier rubyid_create_or_open_sheet_at'>create_or_open_sheet_at</span><span class='lparen'>(</span><span class='id identifier rubyid_si'>si</span><span class='rparen'>)</span>
|
255
|
-
<span class='id identifier rubyid_col_widths'>col_widths</span> <span class='op'>=</span> <span class='id identifier rubyid_xlsx_spreadsheet'>xlsx_spreadsheet</span><span class='period'>.</span><span class='id identifier rubyid_worksheets'>worksheets</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_cols'>cols</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_a'>a</span><span class='op'>|</span> <span class='id identifier rubyid_a'>a</span><span class='lbracket'>[</span><span class='symbol'>:attributes</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:width</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span> <span class='kw'>if</span> <span class='id identifier rubyid_a'>a</span><span class='lbracket'>[</span><span class='symbol'>:attributes</span><span class='rbracket'>]</span><span class='rbrace'>}</span>
|
256
|
-
<span class='id identifier rubyid_worksheet'>worksheet</span><span class='period'>.</span><span class='id identifier rubyid_each_with_index'>each_with_index</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_row'>row</span><span class='comma'>,</span> <span class='id identifier rubyid_ri'>ri</span><span class='op'>|</span>
|
257
|
-
<span class='id identifier rubyid_r'>r</span> <span class='op'>=</span> <span class='id identifier rubyid_s'>s</span><span class='period'>.</span><span class='id identifier rubyid_table'>table</span><span class='period'>.</span><span class='id identifier rubyid_create_or_open_row_at'>create_or_open_row_at</span><span class='lparen'>(</span><span class='id identifier rubyid_ri'>ri</span><span class='rparen'>)</span>
|
258
|
-
|
259
|
-
<span class='id identifier rubyid_row'>row</span><span class='period'>.</span><span class='id identifier rubyid_each_with_index'>each_with_index</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_cell'>cell</span><span class='comma'>,</span><span class='id identifier rubyid_ci'>ci</span><span class='op'>|</span>
|
260
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_cell'>cell</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
261
|
-
<span class='id identifier rubyid_r'>r</span><span class='lbracket'>[</span><span class='id identifier rubyid_ci'>ci</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>Workbook</span><span class='op'>::</span><span class='const'>Cell</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='kw'>nil</span>
|
262
|
-
<span class='kw'>else</span>
|
263
|
-
<span class='id identifier rubyid_r'>r</span><span class='lbracket'>[</span><span class='id identifier rubyid_ci'>ci</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>Workbook</span><span class='op'>::</span><span class='const'>Cell</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_cell'>cell</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
|
264
|
-
<span class='id identifier rubyid_r'>r</span><span class='lbracket'>[</span><span class='id identifier rubyid_ci'>ci</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_parse!'>parse!</span>
|
265
|
-
<span class='id identifier rubyid_xls_format'>xls_format</span> <span class='op'>=</span> <span class='id identifier rubyid_cell'>cell</span><span class='period'>.</span><span class='id identifier rubyid_style_index'>style_index</span>
|
266
|
-
<span class='id identifier rubyid_col_width'>col_width</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
267
|
-
|
268
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_ri'>ri</span> <span class='op'>==</span> <span class='int'>0</span>
|
269
|
-
<span class='id identifier rubyid_col_width'>col_width</span> <span class='op'>=</span> <span class='id identifier rubyid_col_widths'>col_widths</span><span class='lbracket'>[</span><span class='id identifier rubyid_ci'>ci</span><span class='rbracket'>]</span>
|
270
|
-
<span class='kw'>end</span>
|
271
|
-
<span class='id identifier rubyid_f'>f</span> <span class='op'>=</span> <span class='id identifier rubyid_template'>template</span><span class='period'>.</span><span class='id identifier rubyid_create_or_find_format_by'>create_or_find_format_by</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>style_index_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_cell'>cell</span><span class='period'>.</span><span class='id identifier rubyid_style_index'>style_index</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_col_width'>col_width</span>
|
272
|
-
<span class='id identifier rubyid_f'>f</span><span class='lbracket'>[</span><span class='symbol'>:width</span><span class='rbracket'>]</span><span class='op'>=</span> <span class='id identifier rubyid_col_width'>col_width</span>
|
273
|
-
<span class='id identifier rubyid_f'>f</span><span class='lbracket'>[</span><span class='symbol'>:background_color</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>#</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_cell'>cell</span><span class='period'>.</span><span class='id identifier rubyid_fill_color'>fill_color</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
274
|
-
<span class='id identifier rubyid_f'>f</span><span class='lbracket'>[</span><span class='symbol'>:number_format</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_ms_formatting_to_strftime'>ms_formatting_to_strftime</span><span class='lparen'>(</span><span class='id identifier rubyid_cell'>cell</span><span class='period'>.</span><span class='id identifier rubyid_number_format'>number_format</span><span class='rparen'>)</span>
|
275
|
-
<span class='id identifier rubyid_f'>f</span><span class='lbracket'>[</span><span class='symbol'>:font_family</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_cell'>cell</span><span class='period'>.</span><span class='id identifier rubyid_font_name'>font_name</span>
|
276
|
-
<span class='id identifier rubyid_f'>f</span><span class='lbracket'>[</span><span class='symbol'>:color</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>#</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_cell'>cell</span><span class='period'>.</span><span class='id identifier rubyid_font_color'>font_color</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
277
|
-
|
278
|
-
<span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_add_raw'>add_raw</span> <span class='id identifier rubyid_xls_format'>xls_format</span>
|
279
|
-
|
280
|
-
<span class='id identifier rubyid_r'>r</span><span class='lbracket'>[</span><span class='id identifier rubyid_ci'>ci</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_format'>format</span> <span class='op'>=</span> <span class='id identifier rubyid_f'>f</span>
|
281
|
-
<span class='kw'>end</span>
|
282
|
-
<span class='kw'>end</span>
|
283
|
-
<span class='kw'>end</span>
|
284
|
-
<span class='kw'>end</span>
|
285
|
-
<span class='kw'>end</span></pre>
|
286
|
-
</td>
|
287
|
-
</tr>
|
288
|
-
</table>
|
289
|
-
</div>
|
290
|
-
|
291
|
-
</div>
|
292
|
-
|
293
|
-
</div>
|
294
|
-
|
295
|
-
<div id="footer">
|
296
|
-
Generated on Sun May 19 23:16:29 2013 by
|
297
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
298
|
-
0.8.5.2 (ruby-1.9.3).
|
299
|
-
</div>
|
300
|
-
|
301
|
-
</body>
|
302
|
-
</html>
|