jruby_excelcom 0.0.1-java
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.
- checksums.yaml +7 -0
- data/.//jruby_excelcom.gemspec +13 -0
- data/LICENSE +201 -0
- data/doc/ExcelColor.html +95 -0
- data/doc/ExcelConnection.html +709 -0
- data/doc/JavaExcelcom.html +95 -0
- data/doc/LICENSE.html +283 -0
- data/doc/MiniTest.html +95 -0
- data/doc/Object.html +153 -0
- data/doc/Time.html +95 -0
- data/doc/Workbook.html +520 -0
- data/doc/Worksheet.html +1111 -0
- data/doc/created.rid +12 -0
- data/doc/css/fonts.css +167 -0
- data/doc/css/rdoc.css +590 -0
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +103 -0
- data/doc/jruby_excelcom_gemspec.html +98 -0
- data/doc/js/darkfish.js +161 -0
- data/doc/js/jquery.js +4 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +109 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +228 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +337 -0
- data/lib/jars/excelcom-0.0.5.jar +0 -0
- data/lib/jars/jna-4.4.0.jar +0 -0
- data/lib/jars/jna-platform-4.4.0.jar +0 -0
- data/lib/jruby_excelcom/excel_connection.rb +81 -0
- data/lib/jruby_excelcom/workbook.rb +46 -0
- data/lib/jruby_excelcom/worksheet.rb +136 -0
- data/lib/jruby_excelcom.rb +22 -0
- data/test/resources/test.xlsx +0 -0
- data/test/resources/test2.xlsx +0 -0
- data/test/test_helper.rb +4 -0
- data/test/unit/excel_connection_spec.rb +38 -0
- data/test/unit/workbook_spec.rb +41 -0
- data/test/unit/worksheet_spec.rb +100 -0
- metadata +114 -0
data/doc/Time.html
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>module Time - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<script src="./js/jquery.js"></script>
|
14
|
+
<script src="./js/darkfish.js"></script>
|
15
|
+
|
16
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
17
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<body id="top" role="document" class="module">
|
22
|
+
<nav role="navigation">
|
23
|
+
<div id="project-navigation">
|
24
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
+
<h2>
|
26
|
+
<a href="./index.html" rel="home">Home</a>
|
27
|
+
</h2>
|
28
|
+
|
29
|
+
<div id="table-of-contents-navigation">
|
30
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
31
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
32
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
+
<form action="#" method="get" accept-charset="utf-8">
|
38
|
+
<div id="search-field-wrapper">
|
39
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
+
aria-autocomplete="list" aria-controls="search-results"
|
41
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<ul id="search-results" aria-label="Search Results"
|
46
|
+
aria-busy="false" aria-expanded="false"
|
47
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
+
</form>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div id="class-metadata">
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
</div>
|
62
|
+
</nav>
|
63
|
+
|
64
|
+
<main role="main" aria-labelledby="module-Time">
|
65
|
+
<h1 id="module-Time" class="module">
|
66
|
+
module Time
|
67
|
+
</h1>
|
68
|
+
|
69
|
+
<section class="description">
|
70
|
+
|
71
|
+
</section>
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
</section>
|
87
|
+
</main>
|
88
|
+
|
89
|
+
|
90
|
+
<footer id="validator-badges" role="contentinfo">
|
91
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
92
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
|
93
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
94
|
+
</footer>
|
95
|
+
|
data/doc/Workbook.html
ADDED
@@ -0,0 +1,520 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class Workbook - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<script src="./js/jquery.js"></script>
|
14
|
+
<script src="./js/darkfish.js"></script>
|
15
|
+
|
16
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
17
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<body id="top" role="document" class="class">
|
22
|
+
<nav role="navigation">
|
23
|
+
<div id="project-navigation">
|
24
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
+
<h2>
|
26
|
+
<a href="./index.html" rel="home">Home</a>
|
27
|
+
</h2>
|
28
|
+
|
29
|
+
<div id="table-of-contents-navigation">
|
30
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
31
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
32
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
+
<form action="#" method="get" accept-charset="utf-8">
|
38
|
+
<div id="search-field-wrapper">
|
39
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
+
aria-autocomplete="list" aria-controls="search-results"
|
41
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<ul id="search-results" aria-label="Search Results"
|
46
|
+
aria-busy="false" aria-expanded="false"
|
47
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
+
</form>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div id="class-metadata">
|
56
|
+
|
57
|
+
<div id="parent-class-section" class="nav-section">
|
58
|
+
<h3>Parent</h3>
|
59
|
+
|
60
|
+
|
61
|
+
<p class="link">Object
|
62
|
+
|
63
|
+
</div>
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<div id="method-list-section" class="nav-section">
|
69
|
+
<h3>Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list" role="directory">
|
72
|
+
|
73
|
+
<li ><a href="#method-c-new">::new</a>
|
74
|
+
|
75
|
+
<li ><a href="#method-i-addWorksheet">#addWorksheet</a>
|
76
|
+
|
77
|
+
<li ><a href="#method-i-add_worksheet">#add_worksheet</a>
|
78
|
+
|
79
|
+
<li ><a href="#method-i-close">#close</a>
|
80
|
+
|
81
|
+
<li ><a href="#method-i-getName">#getName</a>
|
82
|
+
|
83
|
+
<li ><a href="#method-i-getWorksheet">#getWorksheet</a>
|
84
|
+
|
85
|
+
<li ><a href="#method-i-name">#name</a>
|
86
|
+
|
87
|
+
<li ><a href="#method-i-save">#save</a>
|
88
|
+
|
89
|
+
<li ><a href="#method-i-saveAs">#saveAs</a>
|
90
|
+
|
91
|
+
<li ><a href="#method-i-save_as">#save_as</a>
|
92
|
+
|
93
|
+
<li ><a href="#method-i-worksheet">#worksheet</a>
|
94
|
+
|
95
|
+
</ul>
|
96
|
+
</div>
|
97
|
+
|
98
|
+
</div>
|
99
|
+
</nav>
|
100
|
+
|
101
|
+
<main role="main" aria-labelledby="class-Workbook">
|
102
|
+
<h1 id="class-Workbook" class="class">
|
103
|
+
class Workbook
|
104
|
+
</h1>
|
105
|
+
|
106
|
+
<section class="description">
|
107
|
+
|
108
|
+
</section>
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
124
|
+
<header>
|
125
|
+
<h3>Public Class Methods</h3>
|
126
|
+
</header>
|
127
|
+
|
128
|
+
|
129
|
+
<div id="method-c-new" class="method-detail ">
|
130
|
+
|
131
|
+
<div class="method-heading">
|
132
|
+
<span class="method-name">new</span><span
|
133
|
+
class="method-args">(java_wb)</span>
|
134
|
+
|
135
|
+
<span class="method-click-advice">click to toggle source</span>
|
136
|
+
|
137
|
+
</div>
|
138
|
+
|
139
|
+
|
140
|
+
<div class="method-description">
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
<div class="method-source-code" id="new-source">
|
148
|
+
<pre><span class="ruby-comment"># File lib/jruby_excelcom/workbook.rb, line 4</span>
|
149
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">java_wb</span>)
|
150
|
+
<span class="ruby-ivar">@wb</span> = <span class="ruby-identifier">java_wb</span>
|
151
|
+
<span class="ruby-keyword">end</span></pre>
|
152
|
+
</div>
|
153
|
+
|
154
|
+
</div>
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
</div>
|
160
|
+
|
161
|
+
|
162
|
+
</section>
|
163
|
+
|
164
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
165
|
+
<header>
|
166
|
+
<h3>Public Instance Methods</h3>
|
167
|
+
</header>
|
168
|
+
|
169
|
+
|
170
|
+
<div id="method-i-addWorksheet" class="method-detail method-alias">
|
171
|
+
|
172
|
+
<div class="method-heading">
|
173
|
+
<span class="method-name">addWorksheet</span><span
|
174
|
+
class="method-args">(name)</span>
|
175
|
+
|
176
|
+
</div>
|
177
|
+
|
178
|
+
|
179
|
+
<div class="method-description">
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
</div>
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
<div class="aliases">
|
192
|
+
Alias for: <a href="Workbook.html#method-i-add_worksheet">add_worksheet</a>
|
193
|
+
</div>
|
194
|
+
|
195
|
+
</div>
|
196
|
+
|
197
|
+
|
198
|
+
<div id="method-i-add_worksheet" class="method-detail ">
|
199
|
+
|
200
|
+
<div class="method-heading">
|
201
|
+
<span class="method-name">add_worksheet</span><span
|
202
|
+
class="method-args">(name)</span>
|
203
|
+
|
204
|
+
<span class="method-click-advice">click to toggle source</span>
|
205
|
+
|
206
|
+
</div>
|
207
|
+
|
208
|
+
|
209
|
+
<div class="method-description">
|
210
|
+
|
211
|
+
<p>adds and returns a worksheet to this workbook</p>
|
212
|
+
<dl class="rdoc-list note-list"><dt><code>name</code>
|
213
|
+
<dd>
|
214
|
+
<p>name of new worksheet</p>
|
215
|
+
</dd></dl>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
<div class="method-source-code" id="add_worksheet-source">
|
221
|
+
<pre><span class="ruby-comment"># File lib/jruby_excelcom/workbook.rb, line 33</span>
|
222
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">add_worksheet</span>(<span class="ruby-identifier">name</span>)
|
223
|
+
<span class="ruby-constant">Worksheet</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@wb</span>.<span class="ruby-identifier">addWorksheet</span>(<span class="ruby-identifier">name</span>))
|
224
|
+
<span class="ruby-keyword">end</span></pre>
|
225
|
+
</div>
|
226
|
+
|
227
|
+
</div>
|
228
|
+
|
229
|
+
|
230
|
+
<div class="aliases">
|
231
|
+
Also aliased as: <a href="Workbook.html#method-i-addWorksheet">addWorksheet</a>
|
232
|
+
</div>
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
</div>
|
237
|
+
|
238
|
+
|
239
|
+
<div id="method-i-close" class="method-detail ">
|
240
|
+
|
241
|
+
<div class="method-heading">
|
242
|
+
<span class="method-name">close</span><span
|
243
|
+
class="method-args">(save = false)</span>
|
244
|
+
|
245
|
+
<span class="method-click-advice">click to toggle source</span>
|
246
|
+
|
247
|
+
</div>
|
248
|
+
|
249
|
+
|
250
|
+
<div class="method-description">
|
251
|
+
|
252
|
+
<p>closes this workbook</p>
|
253
|
+
<dl class="rdoc-list note-list"><dt><code>save</code>
|
254
|
+
<dd>
|
255
|
+
<p>whether changes should be saved or not, default is <code>false</code></p>
|
256
|
+
</dd></dl>
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
<div class="method-source-code" id="close-source">
|
262
|
+
<pre><span class="ruby-comment"># File lib/jruby_excelcom/workbook.rb, line 16</span>
|
263
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">close</span>(<span class="ruby-identifier">save</span> = <span class="ruby-keyword">false</span>)
|
264
|
+
<span class="ruby-ivar">@wb</span>.<span class="ruby-identifier">close</span>(<span class="ruby-identifier">save</span>)
|
265
|
+
<span class="ruby-keyword">end</span></pre>
|
266
|
+
</div>
|
267
|
+
|
268
|
+
</div>
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
</div>
|
274
|
+
|
275
|
+
|
276
|
+
<div id="method-i-getName" class="method-detail method-alias">
|
277
|
+
|
278
|
+
<div class="method-heading">
|
279
|
+
<span class="method-name">getName</span><span
|
280
|
+
class="method-args">()</span>
|
281
|
+
|
282
|
+
</div>
|
283
|
+
|
284
|
+
|
285
|
+
<div class="method-description">
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
</div>
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
<div class="aliases">
|
298
|
+
Alias for: <a href="Workbook.html#method-i-name">name</a>
|
299
|
+
</div>
|
300
|
+
|
301
|
+
</div>
|
302
|
+
|
303
|
+
|
304
|
+
<div id="method-i-getWorksheet" class="method-detail method-alias">
|
305
|
+
|
306
|
+
<div class="method-heading">
|
307
|
+
<span class="method-name">getWorksheet</span><span
|
308
|
+
class="method-args">(name)</span>
|
309
|
+
|
310
|
+
</div>
|
311
|
+
|
312
|
+
|
313
|
+
<div class="method-description">
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
</div>
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
<div class="aliases">
|
326
|
+
Alias for: <a href="Workbook.html#method-i-worksheet">worksheet</a>
|
327
|
+
</div>
|
328
|
+
|
329
|
+
</div>
|
330
|
+
|
331
|
+
|
332
|
+
<div id="method-i-name" class="method-detail ">
|
333
|
+
|
334
|
+
<div class="method-heading">
|
335
|
+
<span class="method-name">name</span><span
|
336
|
+
class="method-args">()</span>
|
337
|
+
|
338
|
+
<span class="method-click-advice">click to toggle source</span>
|
339
|
+
|
340
|
+
</div>
|
341
|
+
|
342
|
+
|
343
|
+
<div class="method-description">
|
344
|
+
|
345
|
+
<p>gets the name of this workbook</p>
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
<div class="method-source-code" id="name-source">
|
351
|
+
<pre><span class="ruby-comment"># File lib/jruby_excelcom/workbook.rb, line 9</span>
|
352
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">name</span>
|
353
|
+
<span class="ruby-ivar">@wb</span>.<span class="ruby-identifier">getName</span>
|
354
|
+
<span class="ruby-keyword">end</span></pre>
|
355
|
+
</div>
|
356
|
+
|
357
|
+
</div>
|
358
|
+
|
359
|
+
|
360
|
+
<div class="aliases">
|
361
|
+
Also aliased as: <a href="Workbook.html#method-i-getName">getName</a>
|
362
|
+
</div>
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
</div>
|
367
|
+
|
368
|
+
|
369
|
+
<div id="method-i-save" class="method-detail ">
|
370
|
+
|
371
|
+
<div class="method-heading">
|
372
|
+
<span class="method-name">save</span><span
|
373
|
+
class="method-args">()</span>
|
374
|
+
|
375
|
+
<span class="method-click-advice">click to toggle source</span>
|
376
|
+
|
377
|
+
</div>
|
378
|
+
|
379
|
+
|
380
|
+
<div class="method-description">
|
381
|
+
|
382
|
+
<p>saves this workbook</p>
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
<div class="method-source-code" id="save-source">
|
388
|
+
<pre><span class="ruby-comment"># File lib/jruby_excelcom/workbook.rb, line 21</span>
|
389
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">save</span>
|
390
|
+
<span class="ruby-ivar">@wb</span>.<span class="ruby-identifier">save</span>
|
391
|
+
<span class="ruby-keyword">end</span></pre>
|
392
|
+
</div>
|
393
|
+
|
394
|
+
</div>
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
</div>
|
400
|
+
|
401
|
+
|
402
|
+
<div id="method-i-saveAs" class="method-detail method-alias">
|
403
|
+
|
404
|
+
<div class="method-heading">
|
405
|
+
<span class="method-name">saveAs</span><span
|
406
|
+
class="method-args">(path)</span>
|
407
|
+
|
408
|
+
</div>
|
409
|
+
|
410
|
+
|
411
|
+
<div class="method-description">
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
</div>
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
<div class="aliases">
|
424
|
+
Alias for: <a href="Workbook.html#method-i-save_as">save_as</a>
|
425
|
+
</div>
|
426
|
+
|
427
|
+
</div>
|
428
|
+
|
429
|
+
|
430
|
+
<div id="method-i-save_as" class="method-detail ">
|
431
|
+
|
432
|
+
<div class="method-heading">
|
433
|
+
<span class="method-name">save_as</span><span
|
434
|
+
class="method-args">(path)</span>
|
435
|
+
|
436
|
+
<span class="method-click-advice">click to toggle source</span>
|
437
|
+
|
438
|
+
</div>
|
439
|
+
|
440
|
+
|
441
|
+
<div class="method-description">
|
442
|
+
|
443
|
+
<p>saves this workbook to a new location. Every further operations on this
|
444
|
+
workbook will happen to the newly saved file.</p>
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
<div class="method-source-code" id="save_as-source">
|
450
|
+
<pre><span class="ruby-comment"># File lib/jruby_excelcom/workbook.rb, line 26</span>
|
451
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">save_as</span>(<span class="ruby-identifier">path</span>)
|
452
|
+
<span class="ruby-ivar">@wb</span>.<span class="ruby-identifier">saveAs</span>(<span class="ruby-identifier">java</span>.<span class="ruby-identifier">io</span>.<span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>))
|
453
|
+
<span class="ruby-keyword">end</span></pre>
|
454
|
+
</div>
|
455
|
+
|
456
|
+
</div>
|
457
|
+
|
458
|
+
|
459
|
+
<div class="aliases">
|
460
|
+
Also aliased as: <a href="Workbook.html#method-i-saveAs">saveAs</a>
|
461
|
+
</div>
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
</div>
|
466
|
+
|
467
|
+
|
468
|
+
<div id="method-i-worksheet" class="method-detail ">
|
469
|
+
|
470
|
+
<div class="method-heading">
|
471
|
+
<span class="method-name">worksheet</span><span
|
472
|
+
class="method-args">(name)</span>
|
473
|
+
|
474
|
+
<span class="method-click-advice">click to toggle source</span>
|
475
|
+
|
476
|
+
</div>
|
477
|
+
|
478
|
+
|
479
|
+
<div class="method-description">
|
480
|
+
|
481
|
+
<p>gets a worksheet</p>
|
482
|
+
<dl class="rdoc-list note-list"><dt><code>name</code>
|
483
|
+
<dd>
|
484
|
+
<p>name of worksheet to get</p>
|
485
|
+
</dd></dl>
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
|
490
|
+
<div class="method-source-code" id="worksheet-source">
|
491
|
+
<pre><span class="ruby-comment"># File lib/jruby_excelcom/workbook.rb, line 40</span>
|
492
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">worksheet</span>(<span class="ruby-identifier">name</span>)
|
493
|
+
<span class="ruby-constant">Worksheet</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@wb</span>.<span class="ruby-identifier">getWorksheet</span>(<span class="ruby-identifier">name</span>))
|
494
|
+
<span class="ruby-keyword">end</span></pre>
|
495
|
+
</div>
|
496
|
+
|
497
|
+
</div>
|
498
|
+
|
499
|
+
|
500
|
+
<div class="aliases">
|
501
|
+
Also aliased as: <a href="Workbook.html#method-i-getWorksheet">getWorksheet</a>
|
502
|
+
</div>
|
503
|
+
|
504
|
+
|
505
|
+
|
506
|
+
</div>
|
507
|
+
|
508
|
+
|
509
|
+
</section>
|
510
|
+
|
511
|
+
</section>
|
512
|
+
</main>
|
513
|
+
|
514
|
+
|
515
|
+
<footer id="validator-badges" role="contentinfo">
|
516
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
517
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
|
518
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
519
|
+
</footer>
|
520
|
+
|