public
Rubygem
Description: Johnson wraps JavaScript in a loving Ruby embrace.
Homepage: http://github.com/jbarnette/johnson/wikis
Clone URL: git://github.com/jbarnette/johnson.git
Search Repo:
Added RDoc to the native code.

Squashed commit of the following:

commit d0fceeeb51842abb9b60cbb370b7dafbde4b79da
Author: Aaron Patterson <aaron.patterson@gmail.com>
Date:   Fri May 9 10:25:02 2008 -0700

    rdocing native_initialize

commit 0a0efb23a53e487bb91fa95aef62b857b8d254b8
Author: Aaron Patterson <aaron.patterson@gmail.com>
Date:   Fri May 9 10:22:50 2008 -0700

    Rdoc'd RubyLandProxy.

commit 63207580fae6a97ef8b7cbea36b13be65b87e987
Author: Aaron Patterson <aaron.patterson@gmail.com>
Date:   Fri May 9 09:02:05 2008 -0700

    documenting immutable node

commit 6383e54f1f9dd526b36b9b216e5f80805f290869
Author: Aaron Patterson <aaron.patterson@gmail.com>
Date:   Fri May 9 08:40:42 2008 -0700

    adding some rdoc
aaronp (author)
Fri May 09 10:28:57 -0700 2008
commit  2fc2742302331b2a95a339c5c41977e08ce1ce66
tree    07e04c7b1ce4664c5bea8c5bfde7cf678aaffc65
parent  17c439562837ef5473f86a3ebadc628a1d6cbc0e
...
121
122
123
124
 
 
 
 
 
 
 
125
126
127
...
121
122
123
 
124
125
126
127
128
129
130
131
132
133
0
@@ -121,7 +121,13 @@
0
   return JS_TRUE;
0
 }
0
 
0
-/* private */ static VALUE /* Context#initialize_native(options={}) */
0
+/*
0
+ * call-seq:
0
+ * native_initialize(options={})
0
+ *
0
+ * Initializes the native spidermonkey values.
0
+ */
0
+static VALUE
0
 initialize_native(VALUE self, VALUE UNUSED(options))
0
 {
0
   OurContext* context;
...
4
5
6
 
 
 
 
 
7
8
9
...
4
5
6
7
8
9
10
11
12
13
14
0
@@ -4,6 +4,11 @@
0
 
0
 void init_Johnson_Error(VALUE johnson)
0
 {
0
+ /* HACK: These comments are *only* to make RDoc happy.
0
+ VALUE johnson = rb_define_module("Johnson");
0
+ */
0
+
0
+ /* Johnson::Error class. */
0
   error = rb_define_class_under(johnson, "Error", rb_eStandardError);
0
 }
0
 
...
27
28
29
 
 
 
 
 
 
30
31
32
33
34
...
81
82
83
84
85
 
 
 
 
 
 
 
86
87
88
89
90
91
92
93
 
 
 
 
 
 
 
94
95
96
97
98
99
100
101
 
 
 
 
 
 
 
102
103
104
...
121
122
123
124
125
 
 
 
 
 
 
 
126
127
128
...
134
135
136
137
138
 
 
 
 
 
 
 
139
140
141
...
149
150
151
152
153
 
 
 
 
 
 
 
154
155
156
...
164
165
166
167
168
 
 
 
 
 
 
 
169
170
171
...
179
180
181
182
183
 
 
 
 
 
 
 
184
185
186
...
194
195
196
197
198
 
 
 
 
 
 
 
199
200
201
...
209
210
211
212
213
 
 
 
 
 
 
 
214
215
216
...
221
222
223
224
225
 
 
 
 
 
 
 
226
227
228
...
234
235
236
237
238
 
 
 
 
 
 
 
239
240
241
...
250
251
252
253
254
 
 
 
 
 
 
 
255
256
257
258
...
259
260
261
262
263
 
 
 
 
 
 
 
264
265
266
267
268
269
270
271
 
 
 
 
 
 
 
272
273
274
...
277
278
279
280
281
 
 
 
 
 
 
 
282
283
284
...
294
295
296
297
298
 
 
 
 
 
 
 
299
300
301
...
319
320
321
322
323
 
 
 
 
 
 
 
324
325
326
...
339
340
341
342
343
 
 
 
 
 
 
 
344
345
346
...
356
357
358
359
360
 
 
 
 
 
 
 
361
362
363
...
378
379
380
 
 
 
 
 
 
381
382
383
...
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
87
88
89
 
 
90
91
92
93
94
95
96
97
98
99
100
101
102
 
 
103
104
105
106
107
108
109
110
111
112
113
114
115
 
 
116
117
118
119
120
121
122
123
124
125
...
142
143
144
 
 
145
146
147
148
149
150
151
152
153
154
...
160
161
162
 
 
163
164
165
166
167
168
169
170
171
172
...
180
181
182
 
 
183
184
185
186
187
188
189
190
191
192
...
200
201
202
 
 
203
204
205
206
207
208
209
210
211
212
...
220
221
222
 
 
223
224
225
226
227
228
229
230
231
232
...
240
241
242
 
 
243
244
245
246
247
248
249
250
251
252
...
260
261
262
 
 
263
264
265
266
267
268
269
270
271
272
...
277
278
279
 
 
280
281
282
283
284
285
286
287
288
289
...
295
296
297
 
 
298
299
300
301
302
303
304
305
306
307
...
316
317
318
 
 
319
320
321
322
323
324
325
326
327
328
329
...
330
331
332
 
 
333
334
335
336
337
338
339
340
341
342
343
344
345
 
 
346
347
348
349
350
351
352
353
354
355
...
358
359
360
 
 
361
362
363
364
365
366
367
368
369
370
...
380
381
382
 
 
383
384
385
386
387
388
389
390
391
392
...
410
411
412
 
 
413
414
415
416
417
418
419
420
421
422
...
435
436
437
 
 
438
439
440
441
442
443
444
445
446
447
...
457
458
459
 
 
460
461
462
463
464
465
466
467
468
469
...
484
485
486
487
488
489
490
491
492
493
494
495
0
@@ -27,6 +27,12 @@
0
   return self;
0
 }
0
 
0
+/*
0
+ * call-seq:
0
+ * parse_io(stream, filename=nil, line_number=0)
0
+ *
0
+ * Parses an IO object, returning a native spidermonkey parse tree.
0
+ */
0
 static VALUE parse_io(int argc, VALUE *argv, VALUE klass) {
0
   VALUE self = allocate(klass);
0
   VALUE stream, filename, linenum;
0
0
0
@@ -81,24 +87,39 @@
0
   return self;
0
 }
0
 
0
-static VALUE /* line */
0
-line(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * line
0
+ *
0
+ * Returns the line number of the node.
0
+ */
0
+static VALUE line(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
 
0
   Data_Get_Struct(self, ImmutableNodeContext, ctx);
0
   return INT2NUM(ctx->node->pn_pos.begin.lineno);
0
 }
0
 
0
-static VALUE /* index */
0
-begin_index(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * index
0
+ *
0
+ * Returns the column number of the node.
0
+ */
0
+static VALUE begin_index(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
 
0
   Data_Get_Struct(self, ImmutableNodeContext, ctx);
0
   return INT2NUM(ctx->node->pn_pos.begin.index);
0
 }
0
 
0
-static VALUE /* pn_arity */
0
-pn_arity(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * pn_arity
0
+ *
0
+ * Returns the arity of the node as a symbol.
0
+ */
0
+static VALUE pn_arity(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
 
0
   Data_Get_Struct(self, ImmutableNodeContext, ctx);
0
@@ -121,8 +142,13 @@
0
   return Qnil;
0
 }
0
 
0
-static VALUE /* pn_type */
0
-pn_type(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * pn_type
0
+ *
0
+ * Returns the type of the node as a symbol.
0
+ */
0
+static VALUE pn_type(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
 
0
   Data_Get_Struct(self, ImmutableNodeContext, ctx);
0
@@ -134,8 +160,13 @@
0
   return INT2NUM(ctx->node->pn_type);
0
 }
0
 
0
-static VALUE /* pn_expr */
0
-data_pn_expr(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * pn_expr
0
+ *
0
+ * Returns the parse node expression as an ImmutableNode.
0
+ */
0
+static VALUE data_pn_expr(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
 
0
   Data_Get_Struct(self, ImmutableNodeContext, ctx);
0
@@ -149,8 +180,13 @@
0
   return Qnil;
0
 }
0
 
0
-static VALUE /* pn_kid */
0
-data_pn_kid(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * pn_kid
0
+ *
0
+ * Returns the child ImmutableNode.
0
+ */
0
+static VALUE data_pn_kid(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
 
0
   Data_Get_Struct(self, ImmutableNodeContext, ctx);
0
@@ -164,8 +200,13 @@
0
   return Qnil;
0
 }
0
 
0
-static VALUE /* pn_kid1 */
0
-data_pn_kid1(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * pn_kid1
0
+ *
0
+ * Returns the first child ImmutableNode.
0
+ */
0
+static VALUE data_pn_kid1(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
 
0
   Data_Get_Struct(self, ImmutableNodeContext, ctx);
0
@@ -179,8 +220,13 @@
0
   return Qnil;
0
 }
0
 
0
-static VALUE /* pn_kid2 */
0
-data_pn_kid2(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * pn_kid2
0
+ *
0
+ * Returns the second child ImmutableNode.
0
+ */
0
+static VALUE data_pn_kid2(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
 
0
   Data_Get_Struct(self, ImmutableNodeContext, ctx);
0
@@ -194,8 +240,13 @@
0
   return Qnil;
0
 }
0
 
0
-static VALUE /* pn_kid3 */
0
-data_pn_kid3(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * pn_kid3
0
+ *
0
+ * Returns the third child ImmutableNode.
0
+ */
0
+static VALUE data_pn_kid3(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
 
0
   Data_Get_Struct(self, ImmutableNodeContext, ctx);
0
@@ -209,8 +260,13 @@
0
   return Qnil;
0
 }
0
 
0
-static VALUE /* pn_dval */
0
-data_pn_dval(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * pn_dval
0
+ *
0
+ * Returns the numeric value of the node.
0
+ */
0
+static VALUE data_pn_dval(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
 
0
   Data_Get_Struct(self, ImmutableNodeContext, ctx);
0
@@ -221,8 +277,13 @@
0
   }
0
 }
0
 
0
-static VALUE /* pn_op */
0
-data_pn_op(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * pn_op
0
+ *
0
+ * Returns the op code for the node as a symbol.
0
+ */
0
+static VALUE data_pn_op(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
 
0
   Data_Get_Struct(self, ImmutableNodeContext, ctx);
0
@@ -234,8 +295,13 @@
0
   return INT2NUM(ctx->node->pn_op);
0
 }
0
 
0
-static VALUE /* pn_left */
0
-data_pn_left(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * pn_left
0
+ *
0
+ * Returns the left side ImmutableNode.
0
+ */
0
+static VALUE data_pn_left(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
 
0
   Data_Get_Struct(self, ImmutableNodeContext, ctx);
0
@@ -250,8 +316,13 @@
0
   return Qnil;
0
 }
0
 
0
-static VALUE /* pn_extra */
0
-data_pn_extra(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * pn_extra
0
+ *
0
+ * Returns extra informaton about the node as an Integer.
0
+ */
0
+static VALUE data_pn_extra(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
 
0
   Data_Get_Struct(self, ImmutableNodeContext, ctx);
0
0
@@ -259,16 +330,26 @@
0
   return INT2NUM(ctx->node->pn_extra);
0
 }
0
 
0
-static VALUE /* name */
0
-name(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * name
0
+ *
0
+ * Returns the name of the node.
0
+ */
0
+static VALUE name(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
 
0
   Data_Get_Struct(self, ImmutableNodeContext, ctx);
0
   return rb_str_new2(JS_GetStringBytes(ATOM_TO_STRING(ctx->node->pn_atom)));
0
 }
0
 
0
-static VALUE /* regexp */
0
-regexp(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * regexp
0
+ *
0
+ * Returns the regexp value as a String.
0
+ */
0
+static VALUE regexp(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
   jsval result;
0
 
0
@@ -277,8 +358,13 @@
0
   return rb_str_new2(JS_GetStringBytes(JSVAL_TO_STRING(result)));
0
 }
0
 
0
-static VALUE /* function_name */
0
-function_name(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * function_name
0
+ *
0
+ * Returns the function name as a String.
0
+ */
0
+static VALUE function_name(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
   JSFunction * f;
0
   JSObject * object;
0
@@ -294,8 +380,13 @@
0
   }
0
 }
0
 
0
-static VALUE /* function_args */
0
-function_args(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * function_args
0
+ *
0
+ * Returns the function argument names as an Array of String.
0
+ */
0
+static VALUE function_args(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
   JSFunction * f;
0
   JSObject * object;
0
@@ -319,8 +410,13 @@
0
   return func_args;
0
 }
0
 
0
-static VALUE /* function_body */
0
-function_body(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * function_body
0
+ *
0
+ * Returns the function body as an ImmutableNode.
0
+ */
0
+static VALUE function_body(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
   JSFunction * f;
0
   JSObject * object;
0
@@ -339,8 +435,13 @@
0
   return Qnil;
0
 }
0
 
0
-static VALUE /* pn_right */
0
-data_pn_right(VALUE self)
0
+/*
0
+ * call-seq:
0
+ * pn_right
0
+ *
0
+ * Returns right side as an ImmutableNode.
0
+ */
0
+static VALUE data_pn_right(VALUE self)
0
 {
0
   ImmutableNodeContext * ctx;
0
 
0
@@ -356,8 +457,13 @@
0
   return Qnil;
0
 }
0
 
0
-static VALUE /* children */
0
-children(VALUE self) {
0
+/*
0
+ * call-seq:
0
+ * children
0
+ *
0
+ * Returns children as an Array of ImmutableNode.
0
+ */
0
+static VALUE children(VALUE self) {
0
   ImmutableNodeContext * ctx;
0
   JSParseNode * p;
0
   VALUE children;
0
@@ -378,6 +484,12 @@
0
 
0
 void init_Johnson_SpiderMonkey_Immutable_Node(VALUE spidermonkey)
0
 {
0
+ /* HACK: These comments are *only* to make RDoc happy.
0
+ VALUE johnson = rb_define_module("Johnson");
0
+ VALUE spidermonkey = rb_define_module_under(johnson, "SpiderMonkey");
0
+ */
0
+
0
+ /* ImmutableNode class. */
0
   cNode = rb_define_class_under(spidermonkey, "ImmutableNode", rb_cObject);
0
 
0
   rb_define_alloc_func(cNode, allocate);
...
35
36
37
38
 
 
 
 
 
 
 
39
40
41
...
62
63
64
65
 
 
 
 
 
 
 
66
67
68
...
91
92
93
94
 
 
 
 
 
 
 
95
96
97
...
99
100
101
102
 
 
 
 
 
 
 
103
104
105
...
126
127
128
129
 
 
 
 
 
 
 
130
131
132
...
153
154
155
156
 
 
 
 
 
 
 
157
158
159
...
222
223
224
 
 
 
 
 
 
225
226
227
...
254
255
256
257
 
 
 
 
 
 
 
258
259
260
...
262
263
264
265
 
 
 
 
 
 
 
266
267
268
...
286
287
288
289
 
 
 
 
 
 
 
290
291
292
...
314
315
316
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
317
318
319
320
...
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
 
 
 
 
 
 
405
406
407
...
35
36
37
 
38
39
40
41
42
43
44
45
46
47
...
68
69
70
 
71
72
73
74
75
76
77
78
79
80
...
103
104
105
 
106
107
108
109
110
111
112
113
114
115
...
117
118
119
 
120
121
122
123
124
125
126
127
128
129
...
150
151
152
 
153
154
155
156
157
158
159
160
161
162
...
183
184
185
 
186
187
188
189
190
191
192
193
194
195
...
258
259
260
261
262
263
264
265
266
267
268
269
...
296
297
298
 
299
300
301
302
303
304
305
306
307
308
...
310
311
312
 
313
314
315
316
317
318
319
320
321
322
...
340
341
342
 
343
344
345
346
347
348
349
350
351
352
...
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
...
466
467
468
 
 
 
 
 
 
 
 
 
 
 
 
469
470
471
472
473
474
475
476
477
478
479
0
@@ -35,7 +35,13 @@
0
   JRETURN_RUBY(CONVERT_TO_RUBY(context, result));
0
 }
0
 
0
-static VALUE /* [] */
0
+/*
0
+ * call-seq:
0
+ * [](name)
0
+ *
0
+ * Returns the property with +name+.
0
+ */
0
+static VALUE
0
 get(VALUE self, VALUE name)
0
 {
0
   RubyLandProxy* proxy;
0
@@ -62,7 +68,13 @@
0
   JRETURN_RUBY(CONVERT_TO_RUBY(proxy->context, js_value));
0
 }
0
 
0
-static VALUE /* []= */
0
+/*
0
+ * call-seq:
0
+ * []=(name,value)
0
+ *
0
+ * Sets the property with +name+ to +value+.
0
+ */
0
+static VALUE
0
 set(VALUE self, VALUE name, VALUE value)
0
 {
0
   RubyLandProxy* proxy;
0
@@ -91,7 +103,13 @@
0
   JRETURN_RUBY(value);
0
 }
0
 
0
-static VALUE /* function? */
0
+/*
0
+ * call-seq:
0
+ * function?
0
+ *
0
+ * Returns <code>true</code> if this is a function.
0
+ */
0
+static VALUE
0
 function_p(VALUE self)
0
 {
0
   RubyLandProxy* proxy;
0
@@ -99,7 +117,13 @@
0
   return JS_TypeOfValue(proxy->context->js, proxy->value) == JSTYPE_FUNCTION;
0
 }
0
 
0
-static VALUE /* respond_to?(sym) */
0
+/*
0
+ * call-seq:
0
+ * respond_to?(symbol)
0
+ *
0
+ * Returns <code>true</code> if _obj_ responds to given method.
0
+ */
0
+static VALUE
0
 respond_to_p(VALUE self, VALUE sym)
0
 {
0
   RubyLandProxy* proxy;
0
@@ -126,7 +150,13 @@
0
   JRETURN_RUBY(found ? Qtrue : CALL_RUBY_WRAPPER(rb_call_super, 1, &sym));
0
 }
0
 
0
-/* private */ static VALUE /* native_call(global, *args) */
0
+/*
0
+ * call-seq:
0
+ * native_call(global, *args)
0
+ *
0
+ * Call as a function with given +global+ using *args.
0
+ */
0
+static VALUE
0
 native_call(int argc, VALUE* argv, VALUE self)
0
 {
0
   if (!function_p(self))
0
@@ -153,7 +183,13 @@
0
   JS_DestroyIdArray(context->js, (JSIdArray*)data);
0
 }
0
 
0
-static VALUE /* each(&block) */
0
+/*
0
+ * call-seq:
0
+ * each { |obj| block }
0
+ *
0
+ * Calls <em>block</em> with each item in the collection.
0
+ */
0
+static VALUE
0
 each(VALUE self)
0
 {
0
   RubyLandProxy* proxy;
0
@@ -222,6 +258,12 @@
0
   JRETURN_RUBY(self);
0
 }
0
 
0
+/*
0
+ * call-seq:
0
+ * length
0
+ *
0
+ * Returns the length of the collection.
0
+ */
0
 static VALUE
0
 length(VALUE self)
0
 {
0
@@ -254,7 +296,13 @@
0
   }
0
 }
0
 
0
-/* private */ static VALUE /* context */
0
+/*
0
+ * call-seq:
0
+ * context
0
+ *
0
+ * Returns context.
0
+ */
0
+static VALUE
0
 context(VALUE self)
0
 {
0
   RubyLandProxy* proxy;
0
@@ -262,7 +310,13 @@
0
   return (VALUE)JS_GetContextPrivate(proxy->context->js);
0
 }
0
 
0
-/* private */ static VALUE /* function_property?(name) */
0
+/*
0
+ * call-seq:
0
+ * function_property?(name)
0
+ *
0
+ * Returns <code>true</code> if +name+ is a function property.
0
+ */
0
+static VALUE
0
 function_property_p(VALUE self, VALUE name)
0
 {
0
   Check_Type(name, T_STRING);
0
@@ -286,7 +340,13 @@
0
   JRETURN_RUBY(type == JSTYPE_FUNCTION ? Qtrue : Qfalse);
0
 }
0
 
0
-/* private */ static VALUE
0
+/*
0
+ * call-seq:
0
+ * call_function_property(name, arguments)
0
+ *
0
+ * Calls function +name+ with +arguments+.
0
+ */
0
+static VALUE
0
 call_function_property(int argc, VALUE* argv, VALUE self)
0
 {
0
   RubyLandProxy* proxy;
0
@@ -314,6 +374,24 @@
0
   JRETURN_RUBY(call_js_function_value(proxy->context, proxy->value, function, argc - 1, &(argv[1])));
0
 }
0
 
0
+/*
0
+ * call-seq:
0
+ * to_s
0
+ *
0
+ * Converts object to a string.
0
+ */
0
+static VALUE to_s(VALUE self)
0
+{
0
+ RubyLandProxy* proxy;
0
+ Data_Get_Struct(self, RubyLandProxy, proxy);
0
+
0
+ PREPARE_RUBY_JROOTS(proxy->context, 1);
0
+ JROOT(proxy->value);
0
+ JSString* str = JS_ValueToString(proxy->context->js, proxy->value);
0
+
0
+ JRETURN_RUBY(convert_jsstring_to_ruby(proxy->context, str));
0
+}
0
+
0
 ///////////////////////////////////////////////////////////////////////////
0
 //// INFRASTRUCTURE BELOW HERE ////////////////////////////////////////////
0
 ///////////////////////////////////////////////////////////////////////////
0
0
@@ -388,20 +466,14 @@
0
   }
0
 }
0
 
0
-static VALUE to_s(VALUE self)
0
-{
0
- RubyLandProxy* proxy;
0
- Data_Get_Struct(self, RubyLandProxy, proxy);
0
-
0
- PREPARE_RUBY_JROOTS(proxy->context, 1);
0
- JROOT(proxy->value);
0
- JSString* str = JS_ValueToString(proxy->context->js, proxy->value);
0
-
0
- JRETURN_RUBY(convert_jsstring_to_ruby(proxy->context, str));
0
-}
0
-
0
 void init_Johnson_SpiderMonkey_Proxy(VALUE spidermonkey)
0
 {
0
+ /* HACK: These comments are *only* to make RDoc happy.
0
+ VALUE johnson = rb_define_module("Johnson");
0
+ VALUE spidermonkey = rb_define_module_under(johnson, "SpiderMonkey");
0
+ */
0
+
0
+ /* RubyLandProxy class. */
0
   proxy_class = rb_define_class_under(spidermonkey, "RubyLandProxy", rb_cObject);
0
 
0
   rb_define_method(proxy_class, "[]", get, 1);

Comments

    No one has commented yet.