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.
@@ -81,9 +81,8 @@
81
81
 
82
82
  <h2>Overview</h2><div class="docstring">
83
83
  <div class="discussion">
84
- <p>
85
- SimplerTiles contains all of the classes we&#8217;ll want to define.
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&#8217;ll want to define.
111
110
  <dt id="ROOT-constant" class="">ROOT =
112
111
  <div class="docstring">
113
112
  <div class="discussion">
114
- <p>
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='rubyid_File constant id'>File</span><span class='dot token'>.</span><span class='rubyid_expand_path identifier id'>expand_path</span> <span class='rubyid_File constant id'>File</span><span class='dot token'>.</span><span class='rubyid_dirname identifier id'>dirname</span><span class='lparen token'>(</span><span class='rubyid___FILE__ __file__ kw'>__FILE__</span><span class='rparen token'>)</span>
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
- <p>
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='string val'>&quot;0.0.2&quot;</span>
145
- </pre></dd>
140
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.0.4</span><span class='tstring_end'>&quot;</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 Tue Apr 10 17:04:09 2012 by
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.8.7).
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
- <p>
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'><p>
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'><p>
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'><p>
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'><p>
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
- <p>
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='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_maxx identifier id'>maxx</span><span class='comma token'>,</span> <span class='rubyid_maxy identifier id'>maxy</span><span class='comma token'>,</span> <span class='rubyid_minx identifier id'>minx</span><span class='comma token'>,</span> <span class='rubyid_miny identifier id'>miny</span><span class='rparen token'>)</span>
278
- <span class='rubyid_grow identifier id'>grow</span> <span class='rubyid_maxx identifier id'>maxx</span><span class='comma token'>,</span> <span class='rubyid_maxy identifier id'>maxy</span>
279
- <span class='rubyid_grow identifier id'>grow</span> <span class='rubyid_minx identifier id'>minx</span><span class='comma token'>,</span> <span class='rubyid_miny identifier id'>miny</span>
280
- <span class='rubyid_end end kw'>end</span>
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
- <p>
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
- <span class='rubyid_static identifier id'>static</span> <span class='rubyid_VALUE constant id'>VALUE</span>
353
- <span class='rubyid_grow identifier id'>grow</span><span class='lparen token'>(</span><span class='rubyid_VALUE constant id'>VALUE</span> <span class='rubyid_self self kw'>self</span><span class='comma token'>,</span> <span class='rubyid_VALUE constant id'>VALUE</span> <span class='rubyid_x identifier id'>x</span><span class='comma token'>,</span> <span class='rubyid_VALUE constant id'>VALUE</span> <span class='rubyid_y identifier id'>y</span><span class='rparen token'>)</span><span class='lbrace token'>{</span>
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
- <p>
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
- <span class='rubyid_static identifier id'>static</span> <span class='rubyid_VALUE constant id'>VALUE</span>
420
- <span class='rubyid_reproject identifier id'>reproject</span><span class='lparen token'>(</span><span class='rubyid_VALUE constant id'>VALUE</span> <span class='rubyid_self self kw'>self</span><span class='comma token'>,</span> <span class='rubyid_VALUE constant id'>VALUE</span> <span class='rubyid_from identifier id'>from</span><span class='comma token'>,</span> <span class='rubyid_VALUE constant id'>VALUE</span> <span class='rubyid_to identifier id'>to</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
421
- <span class='rubyid_Check_Type constant id'>Check_Type</span><span class='lparen token'>(</span><span class='rubyid_from identifier id'>from</span><span class='comma token'>,</span> <span class='rubyid_T_STRING constant id'>T_STRING</span><span class='rparen token'>)</span><span class='semicolon token'>;</span>
422
- <span class='rubyid_Check_Type constant id'>Check_Type</span><span class='lparen token'>(</span><span class='rubyid_to identifier id'>to</span><span class='comma token'>,</span> <span class='rubyid_T_STRING constant id'>T_STRING</span><span class='rparen token'>)</span><span class='semicolon token'>;</span>
423
- <span class='rubyid_simplet_bounds_t identifier id'>simplet_bounds_t</span> <span class='mult op'>*</span><span class='rubyid_bounds identifier id'>bounds</span><span class='semicolon token'>;</span>
424
- <span class='rubyid_if if kw'>if</span><span class='lparen token'>(</span><span class='notop op'>!</span><span class='lparen token'>(</span><span class='rubyid_bounds identifier id'>bounds</span> <span class='assign token'>=</span> <span class='rubyid_simplet_bounds_reproject identifier id'>simplet_bounds_reproject</span><span class='lparen token'>(</span><span class='rubyid_get_bounds identifier id'>get_bounds</span><span class='lparen token'>(</span><span class='rubyid_self self kw'>self</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='rubyid_RSTRING_PTR constant id'>RSTRING_PTR</span><span class='lparen token'>(</span><span class='rubyid_from identifier id'>from</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='rubyid_RSTRING_PTR constant id'>RSTRING_PTR</span><span class='lparen token'>(</span><span class='rubyid_to identifier id'>to</span><span class='rparen token'>)</span><span class='rparen token'>)</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
425
- <span class='rubyid_rb_raise identifier id'>rb_raise</span><span class='lparen token'>(</span><span class='rubyid_rb_eRuntimeError identifier id'>rb_eRuntimeError</span><span class='comma token'>,</span> <span class='string val'>&quot;Error in creating bounds.&quot;</span><span class='rparen token'>)</span><span class='semicolon token'>;</span>
426
-
427
- <span class='rubyid_VALUE constant id'>VALUE</span> <span class='rubyid_id identifier id'>id</span> <span class='assign token'>=</span> <span class='rubyid_rb_intern identifier id'>rb_intern</span><span class='lparen token'>(</span><span class='string val'>&quot;new&quot;</span><span class='rparen token'>)</span><span class='semicolon token'>;</span>
428
-
429
- <span class='rubyid_VALUE constant id'>VALUE</span> <span class='rubyid_rbounds identifier id'>rbounds</span> <span class='assign token'>=</span> <span class='rubyid_rb_funcall identifier id'>rb_funcall</span><span class='lparen token'>(</span><span class='rubyid_cSimplerTilesBounds identifier id'>cSimplerTilesBounds</span><span class='comma token'>,</span> <span class='rubyid_id identifier id'>id</span><span class='comma token'>,</span> <span class='integer val'>4</span><span class='comma token'>,</span>
430
- <span class='rubyid_rb_float_new identifier id'>rb_float_new</span><span class='lparen token'>(</span><span class='rubyid_bounds identifier id'>bounds</span><span class='minus op'>-</span><span class='gt op'>&gt;</span><span class='rubyid_nw identifier id'>nw</span><span class='dot token'>.</span><span class='rubyid_x identifier id'>x</span><span class='rparen token'>)</span><span class='comma token'>,</span>
431
- <span class='rubyid_rb_float_new identifier id'>rb_float_new</span><span class='lparen token'>(</span><span class='rubyid_bounds identifier id'>bounds</span><span class='minus op'>-</span><span class='gt op'>&gt;</span><span class='rubyid_nw identifier id'>nw</span><span class='dot token'>.</span><span class='rubyid_y identifier id'>y</span><span class='rparen token'>)</span><span class='comma token'>,</span>
432
- <span class='rubyid_rb_float_new identifier id'>rb_float_new</span><span class='lparen token'>(</span><span class='rubyid_bounds identifier id'>bounds</span><span class='minus op'>-</span><span class='gt op'>&gt;</span><span class='rubyid_se identifier id'>se</span><span class='dot token'>.</span><span class='rubyid_x identifier id'>x</span><span class='rparen token'>)</span><span class='comma token'>,</span>
433
- <span class='rubyid_rb_float_new identifier id'>rb_float_new</span><span class='lparen token'>(</span><span class='rubyid_bounds identifier id'>bounds</span><span class='minus op'>-</span><span class='gt op'>&gt;</span><span class='rubyid_se identifier id'>se</span><span class='dot token'>.</span><span class='rubyid_y identifier id'>y</span><span class='rparen token'>)</span><span class='rparen token'>)</span><span class='semicolon token'>;</span>
434
-
435
- <span class='rubyid_simplet_bounds_free identifier id'>simplet_bounds_free</span><span class='lparen token'>(</span><span class='rubyid_bounds identifier id'>bounds</span><span class='rparen token'>)</span><span class='semicolon token'>;</span>
436
- <span class='rubyid_return return kw'>return</span> <span class='rubyid_rbounds identifier id'>rbounds</span><span class='semicolon token'>;</span>
437
- <span class='rbrace token'>}</span>
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, &quot;Error in creating bounds.&quot;);
416
+
417
+ VALUE id = rb_intern(&quot;new&quot;);
418
+
419
+ VALUE rbounds = rb_funcall(cSimplerTilesBounds, id, 4,
420
+ rb_float_new(bounds-&gt;nw.x),
421
+ rb_float_new(bounds-&gt;nw.y),
422
+ rb_float_new(bounds-&gt;se.x),
423
+ rb_float_new(bounds-&gt;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
- <p>
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
- <span class='rubyid_static identifier id'>static</span> <span class='rubyid_VALUE constant id'>VALUE</span>
488
- <span class='rubyid_to_wkt identifier id'>to_wkt</span><span class='lparen token'>(</span><span class='rubyid_VALUE constant id'>VALUE</span> <span class='rubyid_self self kw'>self</span><span class='rparen token'>)</span><span class='lbrace token'>{</span>
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 Tue Apr 10 17:04:10 2012 by
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.8.7).
489
+ 0.7.5 (ruby-1.9.3).
503
490
  </div>
504
491
 
505
492
  </body>
@@ -100,10 +100,9 @@
100
100
 
101
101
  <h2>Overview</h2><div class="docstring">
102
102
  <div class="discussion">
103
- <p>
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'><p>
146
- Add a query object to this Layer&#8217;s list of queries.
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&#8217;s list of queries.
168
166
 
169
167
 
170
168
 
171
- <span class="summary_desc"><div class='inline'><p>
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'><p>
196
- Add a query to this Layer&#8217;s c list.
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&#8217;s c list.
216
212
 
217
213
 
218
214
 
219
- <span class="summary_desc"><div class='inline'><p>
220
- Get a copy of the Layer&#8217;s source.
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&#8217;s source.
240
235
 
241
236
 
242
237
 
243
- <span class="summary_desc"><div class='inline'><p>
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
- <p>
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
  &mdash;
311
- <div class='inline'><p>
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='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_source identifier id'>source</span><span class='rparen token'>)</span>
335
- <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_source identifier id'>source</span> <span class='assign token'>=</span> <span class='rubyid_source identifier id'>source</span>
336
- <span class='rubyid_yield yield kw'>yield</span> <span class='rubyid_self self kw'>self</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_block_given? fid id'>block_given?</span>
337
- <span class='rubyid_end end kw'>end</span>
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
- <p>
361
- Add a query object to this Layer&#8217;s list of queries.
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&#8217;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
- <span class='rubyid_static identifier id'>static</span> <span class='rubyid_VALUE constant id'>VALUE</span>
410
- <span class='rubyid_add_query identifier id'>add_query</span><span class='lparen token'>(</span><span class='rubyid_VALUE constant id'>VALUE</span> <span class='rubyid_self self kw'>self</span><span class='comma token'>,</span> <span class='rubyid_VALUE constant id'>VALUE</span> <span class='rubyid_query identifier id'>query</span><span class='rparen token'>)</span><span class='lbrace token'>{</span>
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&#8217;s list of queries.
423
412
 
424
413
  </p><div class="docstring">
425
414
  <div class="discussion">
426
- <p>
427
- Add a query to this Layer&#8217;s c list.
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&#8217;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='rubyid_def def kw'>def</span> <span class='rubyid_query identifier id'>query</span><span class='lparen token'>(</span><span class='rubyid_sql identifier id'>sql</span><span class='comma token'>,</span> <span class='bitand op'>&amp;</span><span class='rubyid_blk identifier id'>blk</span><span class='rparen token'>)</span>
451
- <span class='rubyid_layer identifier id'>layer</span> <span class='assign token'>=</span> <span class='rubyid_SimplerTiles constant id'>SimplerTiles</span><span class='colon2 op'>::</span><span class='rubyid_Query constant id'>Query</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span><span class='lparen token'>(</span><span class='rubyid_sql identifier id'>sql</span><span class='comma token'>,</span> <span class='bitand op'>&amp;</span><span class='rubyid_blk identifier id'>blk</span><span class='rparen token'>)</span>
452
- <span class='rubyid_add_query identifier id'>add_query</span> <span class='rubyid_layer identifier id'>layer</span>
453
- <span class='rubyid_end end kw'>end</span>
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'>&amp;</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'>&amp;</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&#8217;s c list.
466
453
 
467
454
  </p><div class="docstring">
468
455
  <div class="discussion">
469
- <p>
470
- Get a copy of the Layer&#8217;s source.
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&#8217;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='rubyid_static identifier id'>static</span> <span class='rubyid_VALUE constant id'>VALUE</span>
504
- <span class='rubyid_get_source identifier id'>get_source</span><span class='lparen token'>(</span><span class='rubyid_VALUE constant id'>VALUE</span> <span class='rubyid_self self kw'>self</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
505
- <span class='rubyid_simplet_layer_t identifier id'>simplet_layer_t</span> <span class='mult op'>*</span><span class='rubyid_layer identifier id'>layer</span> <span class='assign token'>=</span> <span class='rubyid_get_layer identifier id'>get_layer</span><span class='lparen token'>(</span><span class='rubyid_self self kw'>self</span><span class='rparen token'>)</span><span class='semicolon token'>;</span>
506
- <span class='rubyid_char identifier id'>char</span> <span class='mult op'>*</span><span class='rubyid_source identifier id'>source</span><span class='semicolon token'>;</span>
507
- <span class='rubyid_simplet_layer_get_source identifier id'>simplet_layer_get_source</span><span class='lparen token'>(</span><span class='rubyid_layer identifier id'>layer</span><span class='comma token'>,</span> <span class='bitand op'>&amp;</span><span class='rubyid_source identifier id'>source</span><span class='rparen token'>)</span><span class='semicolon token'>;</span>
508
- <span class='rubyid_return return kw'>return</span> <span class='rubyid_rb_str_new2 identifier id'>rb_str_new2</span><span class='lparen token'>(</span><span class='rubyid_source identifier id'>source</span><span class='rparen token'>)</span><span class='semicolon token'>;</span>
509
- <span class='rbrace token'>}</span>
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'>&amp;</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&#8217;s source.
522
507
 
523
508
  </p><div class="docstring">
524
509
  <div class="discussion">
525
- <p>
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
- <span class='rubyid_static identifier id'>static</span> <span class='rubyid_VALUE constant id'>VALUE</span>
575
- <span class='rubyid_set_source identifier id'>set_source</span><span class='lparen token'>(</span><span class='rubyid_VALUE constant id'>VALUE</span> <span class='rubyid_self self kw'>self</span><span class='comma token'>,</span> <span class='rubyid_VALUE constant id'>VALUE</span> <span class='rubyid_source identifier id'>source</span><span class='rparen token'>)</span><span class='lbrace token'>{</span>
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 Tue Apr 10 17:04:09 2012 by
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.8.7).
572
+ 0.7.5 (ruby-1.9.3).
590
573
  </div>
591
574
 
592
575
  </body>