simpler-tiles 0.0.3 → 0.0.4
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/doc/SimplerTiles.html +10 -15
- data/doc/SimplerTiles/Bounds.html +50 -63
- data/doc/SimplerTiles/Layer.html +46 -63
- data/doc/SimplerTiles/Map.html +170 -244
- data/doc/SimplerTiles/PP.html +14 -18
- data/doc/SimplerTiles/Query.html +39 -54
- data/doc/SimplerTiles/Style.html +37 -53
- data/doc/_index.html +2 -2
- data/doc/file.README.html +24 -24
- data/doc/index.html +24 -24
- data/doc/method_list.html +12 -12
- data/doc/top-level-namespace.html +2 -2
- data/index.erb +4 -0
- data/lib/simpler_tiles/map.rb +1 -1
- data/lib/simpler_tiles/version.rb +1 -1
- data/simpler-tiles.gemspec +1 -2
- data/test/helper.rb +0 -1
- metadata +74 -87
data/doc/SimplerTiles.html
CHANGED
@@ -81,9 +81,8 @@
|
|
81
81
|
|
82
82
|
<h2>Overview</h2><div class="docstring">
|
83
83
|
<div class="discussion">
|
84
|
-
|
85
|
-
SimplerTiles contains all of the classes we
|
86
|
-
</p>
|
84
|
+
|
85
|
+
<p>SimplerTiles contains all of the classes we'll want to define.</p>
|
87
86
|
|
88
87
|
|
89
88
|
</div>
|
@@ -111,9 +110,8 @@ SimplerTiles contains all of the classes we’ll want to define.
|
|
111
110
|
<dt id="ROOT-constant" class="">ROOT =
|
112
111
|
<div class="docstring">
|
113
112
|
<div class="discussion">
|
114
|
-
|
115
|
-
The location of this file will define the root path for SimplerTiles
|
116
|
-
</p>
|
113
|
+
|
114
|
+
<p>The location of this file will define the root path for SimplerTiles</p>
|
117
115
|
|
118
116
|
|
119
117
|
</div>
|
@@ -123,15 +121,13 @@ The location of this file will define the root path for SimplerTiles
|
|
123
121
|
|
124
122
|
</div>
|
125
123
|
</dt>
|
126
|
-
<dd><pre class="code"><span class='
|
127
|
-
</pre></dd>
|
124
|
+
<dd><pre class="code"><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span></pre></dd>
|
128
125
|
|
129
126
|
<dt id="VERSION-constant" class="">VERSION =
|
130
127
|
<div class="docstring">
|
131
128
|
<div class="discussion">
|
132
|
-
|
133
|
-
The version of the library
|
134
|
-
</p>
|
129
|
+
|
130
|
+
<p>The version of the library</p>
|
135
131
|
|
136
132
|
|
137
133
|
</div>
|
@@ -141,8 +137,7 @@ The version of the library
|
|
141
137
|
|
142
138
|
</div>
|
143
139
|
</dt>
|
144
|
-
<dd><pre class="code"><span class='
|
145
|
-
</pre></dd>
|
140
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.0.4</span><span class='tstring_end'>"</span></span></pre></dd>
|
146
141
|
|
147
142
|
</dl>
|
148
143
|
|
@@ -158,9 +153,9 @@ The version of the library
|
|
158
153
|
</div>
|
159
154
|
|
160
155
|
<div id="footer">
|
161
|
-
Generated on
|
156
|
+
Generated on Sat Dec 8 18:04:33 2012 by
|
162
157
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
163
|
-
0.7.5 (ruby-1.
|
158
|
+
0.7.5 (ruby-1.9.3).
|
164
159
|
</div>
|
165
160
|
|
166
161
|
</body>
|
@@ -100,10 +100,9 @@
|
|
100
100
|
|
101
101
|
<h2>Overview</h2><div class="docstring">
|
102
102
|
<div class="discussion">
|
103
|
-
|
104
|
-
Each Bounds represents a rectangular box, for <span class='object_link'><a href="Map.html" title="SimplerTiles::Map (class)">Map</a></span> objects they define the
|
105
|
-
boundary of the data to return from each <span class='object_link'><a href="Layer.html" title="SimplerTiles::Layer (class)">Layer</a></span
|
106
|
-
</p>
|
103
|
+
|
104
|
+
<p>Each Bounds represents a rectangular box, for <span class='object_link'><a href="Map.html" title="SimplerTiles::Map (class)">Map</a></span> objects they define the
|
105
|
+
boundary of the data to return from each <span class='object_link'><a href="Layer.html" title="SimplerTiles::Layer (class)">Layer</a></span>.</p>
|
107
106
|
|
108
107
|
|
109
108
|
</div>
|
@@ -142,9 +141,8 @@ boundary of the data to return from each <span class='object_link'><a href="Laye
|
|
142
141
|
|
143
142
|
|
144
143
|
|
145
|
-
<span class="summary_desc"><div class='inline'
|
146
|
-
Extend the bounds to include the point defined by x, y
|
147
|
-
</p>
|
144
|
+
<span class="summary_desc"><div class='inline'>
|
145
|
+
<p>Extend the bounds to include the point defined by x, y.</p>
|
148
146
|
</div></span>
|
149
147
|
|
150
148
|
</li>
|
@@ -168,9 +166,8 @@ Extend the bounds to include the point defined by x, y.
|
|
168
166
|
|
169
167
|
|
170
168
|
|
171
|
-
<span class="summary_desc"><div class='inline'
|
172
|
-
Initialize a bounds from max and min coordinates
|
173
|
-
</p>
|
169
|
+
<span class="summary_desc"><div class='inline'>
|
170
|
+
<p>Initialize a bounds from max and min coordinates.</p>
|
174
171
|
</div></span>
|
175
172
|
|
176
173
|
</li>
|
@@ -192,10 +189,9 @@ Initialize a bounds from max and min coordinates.
|
|
192
189
|
|
193
190
|
|
194
191
|
|
195
|
-
<span class="summary_desc"><div class='inline'
|
196
|
-
Reproject the bounds from <tt>from_proj</tt> to new projection
|
197
|
-
<tt>to_proj</tt
|
198
|
-
</p>
|
192
|
+
<span class="summary_desc"><div class='inline'>
|
193
|
+
<p>Reproject the bounds from <tt>from_proj</tt> to new projection
|
194
|
+
<tt>to_proj</tt>.</p>
|
199
195
|
</div></span>
|
200
196
|
|
201
197
|
</li>
|
@@ -217,9 +213,8 @@ Reproject the bounds from <tt>from_proj</tt> to new projection
|
|
217
213
|
|
218
214
|
|
219
215
|
|
220
|
-
<span class="summary_desc"><div class='inline'
|
221
|
-
Return a WKT representation of the bounds
|
222
|
-
</p>
|
216
|
+
<span class="summary_desc"><div class='inline'>
|
217
|
+
<p>Return a WKT representation of the bounds.</p>
|
223
218
|
</div></span>
|
224
219
|
|
225
220
|
</li>
|
@@ -250,9 +245,8 @@ Return a WKT representation of the bounds.
|
|
250
245
|
|
251
246
|
</p><div class="docstring">
|
252
247
|
<div class="discussion">
|
253
|
-
|
254
|
-
Initialize a bounds from max and min coordinates
|
255
|
-
</p>
|
248
|
+
|
249
|
+
<p>Initialize a bounds from max and min coordinates</p>
|
256
250
|
|
257
251
|
|
258
252
|
</div>
|
@@ -274,11 +268,10 @@ Initialize a bounds from max and min coordinates
|
|
274
268
|
<td>
|
275
269
|
<pre class="code"><span class="info file"># File 'lib/simpler_tiles/bounds.rb', line 8</span>
|
276
270
|
|
277
|
-
<span class='
|
278
|
-
<span class='
|
279
|
-
<span class='
|
280
|
-
<span class='
|
281
|
-
</pre>
|
271
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_maxx'>maxx</span><span class='comma'>,</span> <span class='id identifier rubyid_maxy'>maxy</span><span class='comma'>,</span> <span class='id identifier rubyid_minx'>minx</span><span class='comma'>,</span> <span class='id identifier rubyid_miny'>miny</span><span class='rparen'>)</span>
|
272
|
+
<span class='id identifier rubyid_grow'>grow</span> <span class='id identifier rubyid_maxx'>maxx</span><span class='comma'>,</span> <span class='id identifier rubyid_maxy'>maxy</span>
|
273
|
+
<span class='id identifier rubyid_grow'>grow</span> <span class='id identifier rubyid_minx'>minx</span><span class='comma'>,</span> <span class='id identifier rubyid_miny'>miny</span>
|
274
|
+
<span class='kw'>end</span></pre>
|
282
275
|
</td>
|
283
276
|
</tr>
|
284
277
|
</table>
|
@@ -300,9 +293,8 @@ Initialize a bounds from max and min coordinates
|
|
300
293
|
|
301
294
|
</p><div class="docstring">
|
302
295
|
<div class="discussion">
|
303
|
-
|
304
|
-
Extend the bounds to include the point defined by x, y
|
305
|
-
</p>
|
296
|
+
|
297
|
+
<p>Extend the bounds to include the point defined by x, y.</p>
|
306
298
|
|
307
299
|
|
308
300
|
</div>
|
@@ -349,9 +341,8 @@ Extend the bounds to include the point defined by x, y.
|
|
349
341
|
<td>
|
350
342
|
<pre class="code"><span class="info file"># File 'ext/simpler_tiles/bounds.c'</span>
|
351
343
|
|
352
|
-
|
353
|
-
|
354
|
-
</pre>
|
344
|
+
static VALUE
|
345
|
+
grow(VALUE self, VALUE x, VALUE y){</pre>
|
355
346
|
</td>
|
356
347
|
</tr>
|
357
348
|
</table>
|
@@ -366,10 +357,9 @@ Extend the bounds to include the point defined by x, y.
|
|
366
357
|
|
367
358
|
</p><div class="docstring">
|
368
359
|
<div class="discussion">
|
369
|
-
|
370
|
-
Reproject the bounds from <tt>from_proj</tt> to new projection
|
371
|
-
<tt>to_proj</tt>. Returns a new bounds object
|
372
|
-
</p>
|
360
|
+
|
361
|
+
<p>Reproject the bounds from <tt>from_proj</tt> to new projection
|
362
|
+
<tt>to_proj</tt>. Returns a new bounds object.</p>
|
373
363
|
|
374
364
|
|
375
365
|
</div>
|
@@ -416,26 +406,25 @@ Reproject the bounds from <tt>from_proj</tt> to new projection
|
|
416
406
|
<td>
|
417
407
|
<pre class="code"><span class="info file"># File 'ext/simpler_tiles/bounds.c'</span>
|
418
408
|
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
</pre>
|
409
|
+
static VALUE
|
410
|
+
reproject(VALUE self, VALUE from, VALUE to) {
|
411
|
+
Check_Type(from, T_STRING);
|
412
|
+
Check_Type(to, T_STRING);
|
413
|
+
simplet_bounds_t *bounds;
|
414
|
+
if(!(bounds = simplet_bounds_reproject(get_bounds(self), RSTRING_PTR(from), RSTRING_PTR(to))))
|
415
|
+
rb_raise(rb_eRuntimeError, "Error in creating bounds.");
|
416
|
+
|
417
|
+
VALUE id = rb_intern("new");
|
418
|
+
|
419
|
+
VALUE rbounds = rb_funcall(cSimplerTilesBounds, id, 4,
|
420
|
+
rb_float_new(bounds->nw.x),
|
421
|
+
rb_float_new(bounds->nw.y),
|
422
|
+
rb_float_new(bounds->se.x),
|
423
|
+
rb_float_new(bounds->se.y));
|
424
|
+
|
425
|
+
simplet_bounds_free(bounds);
|
426
|
+
return rbounds;
|
427
|
+
}</pre>
|
439
428
|
</td>
|
440
429
|
</tr>
|
441
430
|
</table>
|
@@ -450,9 +439,8 @@ Reproject the bounds from <tt>from_proj</tt> to new projection
|
|
450
439
|
|
451
440
|
</p><div class="docstring">
|
452
441
|
<div class="discussion">
|
453
|
-
|
454
|
-
Return a WKT representation of the bounds
|
455
|
-
</p>
|
442
|
+
|
443
|
+
<p>Return a WKT representation of the bounds.</p>
|
456
444
|
|
457
445
|
|
458
446
|
</div>
|
@@ -484,9 +472,8 @@ Return a WKT representation of the bounds.
|
|
484
472
|
<td>
|
485
473
|
<pre class="code"><span class="info file"># File 'ext/simpler_tiles/bounds.c'</span>
|
486
474
|
|
487
|
-
|
488
|
-
|
489
|
-
</pre>
|
475
|
+
static VALUE
|
476
|
+
to_wkt(VALUE self){</pre>
|
490
477
|
</td>
|
491
478
|
</tr>
|
492
479
|
</table>
|
@@ -497,9 +484,9 @@ Return a WKT representation of the bounds.
|
|
497
484
|
</div>
|
498
485
|
|
499
486
|
<div id="footer">
|
500
|
-
Generated on
|
487
|
+
Generated on Sat Dec 8 18:04:34 2012 by
|
501
488
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
502
|
-
0.7.5 (ruby-1.
|
489
|
+
0.7.5 (ruby-1.9.3).
|
503
490
|
</div>
|
504
491
|
|
505
492
|
</body>
|
data/doc/SimplerTiles/Layer.html
CHANGED
@@ -100,10 +100,9 @@
|
|
100
100
|
|
101
101
|
<h2>Overview</h2><div class="docstring">
|
102
102
|
<div class="discussion">
|
103
|
-
|
104
|
-
The Layer object contains connection info for a particular datasource and
|
105
|
-
tracks a list of <span class='object_link'><a href="Query.html" title="SimplerTiles::Query (class)">Query</a></span>s
|
106
|
-
</p>
|
103
|
+
|
104
|
+
<p>The Layer object contains connection info for a particular datasource and
|
105
|
+
tracks a list of <span class='object_link'><a href="Query.html" title="SimplerTiles::Query (class)">Query</a></span>s.</p>
|
107
106
|
|
108
107
|
|
109
108
|
</div>
|
@@ -142,9 +141,8 @@ tracks a list of <span class='object_link'><a href="Query.html" title="SimplerTi
|
|
142
141
|
|
143
142
|
|
144
143
|
|
145
|
-
<span class="summary_desc"><div class='inline'
|
146
|
-
Add a query object to this Layer
|
147
|
-
</p>
|
144
|
+
<span class="summary_desc"><div class='inline'>
|
145
|
+
<p>Add a query object to this Layer's list of queries.</p>
|
148
146
|
</div></span>
|
149
147
|
|
150
148
|
</li>
|
@@ -168,9 +166,8 @@ Add a query object to this Layer’s list of queries.
|
|
168
166
|
|
169
167
|
|
170
168
|
|
171
|
-
<span class="summary_desc"><div class='inline'
|
172
|
-
Initialize a Layer
|
173
|
-
</p>
|
169
|
+
<span class="summary_desc"><div class='inline'>
|
170
|
+
<p>Initialize a Layer.</p>
|
174
171
|
</div></span>
|
175
172
|
|
176
173
|
</li>
|
@@ -192,9 +189,8 @@ Initialize a Layer.
|
|
192
189
|
|
193
190
|
|
194
191
|
|
195
|
-
<span class="summary_desc"><div class='inline'
|
196
|
-
Add a query to this Layer
|
197
|
-
</p>
|
192
|
+
<span class="summary_desc"><div class='inline'>
|
193
|
+
<p>Add a query to this Layer's c list.</p>
|
198
194
|
</div></span>
|
199
195
|
|
200
196
|
</li>
|
@@ -216,9 +212,8 @@ Add a query to this Layer’s c list.
|
|
216
212
|
|
217
213
|
|
218
214
|
|
219
|
-
<span class="summary_desc"><div class='inline'
|
220
|
-
Get a copy of the Layer
|
221
|
-
</p>
|
215
|
+
<span class="summary_desc"><div class='inline'>
|
216
|
+
<p>Get a copy of the Layer's source.</p>
|
222
217
|
</div></span>
|
223
218
|
|
224
219
|
</li>
|
@@ -240,9 +235,8 @@ Get a copy of the Layer’s source.
|
|
240
235
|
|
241
236
|
|
242
237
|
|
243
|
-
<span class="summary_desc"><div class='inline'
|
244
|
-
Set the source attribute for the Layer
|
245
|
-
</p>
|
238
|
+
<span class="summary_desc"><div class='inline'>
|
239
|
+
<p>Set the source attribute for the Layer.</p>
|
246
240
|
</div></span>
|
247
241
|
|
248
242
|
</li>
|
@@ -273,9 +267,8 @@ Set the source attribute for the Layer.
|
|
273
267
|
|
274
268
|
</p><div class="docstring">
|
275
269
|
<div class="discussion">
|
276
|
-
|
277
|
-
Initialize a Layer
|
278
|
-
</p>
|
270
|
+
|
271
|
+
<p>Initialize a Layer</p>
|
279
272
|
|
280
273
|
|
281
274
|
</div>
|
@@ -308,9 +301,8 @@ Initialize a Layer
|
|
308
301
|
|
309
302
|
|
310
303
|
—
|
311
|
-
<div class='inline'
|
312
|
-
the object that the method was called on
|
313
|
-
</p>
|
304
|
+
<div class='inline'>
|
305
|
+
<p>the object that the method was called on</p>
|
314
306
|
</div>
|
315
307
|
|
316
308
|
</li>
|
@@ -331,11 +323,10 @@ the object that the method was called on
|
|
331
323
|
<td>
|
332
324
|
<pre class="code"><span class="info file"># File 'lib/simpler_tiles/layer.rb', line 8</span>
|
333
325
|
|
334
|
-
<span class='
|
335
|
-
<span class='
|
336
|
-
<span class='
|
337
|
-
<span class='
|
338
|
-
</pre>
|
326
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='rparen'>)</span>
|
327
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_source'>source</span> <span class='op'>=</span> <span class='id identifier rubyid_source'>source</span>
|
328
|
+
<span class='kw'>yield</span> <span class='kw'>self</span> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
329
|
+
<span class='kw'>end</span></pre>
|
339
330
|
</td>
|
340
331
|
</tr>
|
341
332
|
</table>
|
@@ -357,9 +348,8 @@ the object that the method was called on
|
|
357
348
|
|
358
349
|
</p><div class="docstring">
|
359
350
|
<div class="discussion">
|
360
|
-
|
361
|
-
Add a query object to this Layer
|
362
|
-
</p>
|
351
|
+
|
352
|
+
<p>Add a query object to this Layer's list of queries.</p>
|
363
353
|
|
364
354
|
|
365
355
|
</div>
|
@@ -406,9 +396,8 @@ Add a query object to this Layer’s list of queries.
|
|
406
396
|
<td>
|
407
397
|
<pre class="code"><span class="info file"># File 'ext/simpler_tiles/layer.c'</span>
|
408
398
|
|
409
|
-
|
410
|
-
|
411
|
-
</pre>
|
399
|
+
static VALUE
|
400
|
+
add_query(VALUE self, VALUE query){</pre>
|
412
401
|
</td>
|
413
402
|
</tr>
|
414
403
|
</table>
|
@@ -423,9 +412,8 @@ Add a query object to this Layer’s list of queries.
|
|
423
412
|
|
424
413
|
</p><div class="docstring">
|
425
414
|
<div class="discussion">
|
426
|
-
|
427
|
-
Add a query to this Layer
|
428
|
-
</p>
|
415
|
+
|
416
|
+
<p>Add a query to this Layer's c list.</p>
|
429
417
|
|
430
418
|
|
431
419
|
</div>
|
@@ -447,11 +435,10 @@ Add a query to this Layer’s c list.
|
|
447
435
|
<td>
|
448
436
|
<pre class="code"><span class="info file"># File 'lib/simpler_tiles/layer.rb', line 14</span>
|
449
437
|
|
450
|
-
<span class='
|
451
|
-
<span class='
|
452
|
-
<span class='
|
453
|
-
<span class='
|
454
|
-
</pre>
|
438
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_query'>query</span><span class='lparen'>(</span><span class='id identifier rubyid_sql'>sql</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span><span class='rparen'>)</span>
|
439
|
+
<span class='id identifier rubyid_layer'>layer</span> <span class='op'>=</span> <span class='const'>SimplerTiles</span><span class='op'>::</span><span class='const'>Query</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_sql'>sql</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span><span class='rparen'>)</span>
|
440
|
+
<span class='id identifier rubyid_add_query'>add_query</span> <span class='id identifier rubyid_layer'>layer</span>
|
441
|
+
<span class='kw'>end</span></pre>
|
455
442
|
</td>
|
456
443
|
</tr>
|
457
444
|
</table>
|
@@ -466,9 +453,8 @@ Add a query to this Layer’s c list.
|
|
466
453
|
|
467
454
|
</p><div class="docstring">
|
468
455
|
<div class="discussion">
|
469
|
-
|
470
|
-
Get a copy of the Layer
|
471
|
-
</p>
|
456
|
+
|
457
|
+
<p>Get a copy of the Layer's source.</p>
|
472
458
|
|
473
459
|
|
474
460
|
</div>
|
@@ -500,14 +486,13 @@ Get a copy of the Layer’s source.
|
|
500
486
|
<td>
|
501
487
|
<pre class="code"><span class="info file"># File 'ext/simpler_tiles/layer.c'</span>
|
502
488
|
|
503
|
-
<span class='
|
504
|
-
<span class='
|
505
|
-
<span class='
|
506
|
-
<span class='
|
507
|
-
<span class='
|
508
|
-
<span class='
|
509
|
-
<span class='rbrace
|
510
|
-
</pre>
|
489
|
+
<span class='id identifier rubyid_static'>static</span> <span class='const'>VALUE</span>
|
490
|
+
<span class='id identifier rubyid_get_source'>get_source</span><span class='lparen'>(</span><span class='const'>VALUE</span> <span class='kw'>self</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
491
|
+
<span class='id identifier rubyid_simplet_layer_t'>simplet_layer_t</span> <span class='op'>*</span><span class='id identifier rubyid_layer'>layer</span> <span class='op'>=</span> <span class='id identifier rubyid_get_layer'>get_layer</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span><span class='semicolon'>;</span>
|
492
|
+
<span class='id identifier rubyid_char'>char</span> <span class='op'>*</span><span class='id identifier rubyid_source'>source</span><span class='semicolon'>;</span>
|
493
|
+
<span class='id identifier rubyid_simplet_layer_get_source'>simplet_layer_get_source</span><span class='lparen'>(</span><span class='id identifier rubyid_layer'>layer</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_source'>source</span><span class='rparen'>)</span><span class='semicolon'>;</span>
|
494
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_rb_str_new2'>rb_str_new2</span><span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='rparen'>)</span><span class='semicolon'>;</span>
|
495
|
+
<span class='rbrace'>}</span></pre>
|
511
496
|
</td>
|
512
497
|
</tr>
|
513
498
|
</table>
|
@@ -522,9 +507,8 @@ Get a copy of the Layer’s source.
|
|
522
507
|
|
523
508
|
</p><div class="docstring">
|
524
509
|
<div class="discussion">
|
525
|
-
|
526
|
-
Set the source attribute for the Layer
|
527
|
-
</p>
|
510
|
+
|
511
|
+
<p>Set the source attribute for the Layer.</p>
|
528
512
|
|
529
513
|
|
530
514
|
</div>
|
@@ -571,9 +555,8 @@ Set the source attribute for the Layer.
|
|
571
555
|
<td>
|
572
556
|
<pre class="code"><span class="info file"># File 'ext/simpler_tiles/layer.c'</span>
|
573
557
|
|
574
|
-
|
575
|
-
|
576
|
-
</pre>
|
558
|
+
static VALUE
|
559
|
+
set_source(VALUE self, VALUE source){</pre>
|
577
560
|
</td>
|
578
561
|
</tr>
|
579
562
|
</table>
|
@@ -584,9 +567,9 @@ Set the source attribute for the Layer.
|
|
584
567
|
</div>
|
585
568
|
|
586
569
|
<div id="footer">
|
587
|
-
Generated on
|
570
|
+
Generated on Sat Dec 8 18:04:34 2012 by
|
588
571
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
589
|
-
0.7.5 (ruby-1.
|
572
|
+
0.7.5 (ruby-1.9.3).
|
590
573
|
</div>
|
591
574
|
|
592
575
|
</body>
|