Skip to content

Commit 176a0b0

Browse files
Sync rdoc of JS.is_a? with actual implementation
1 parent 2e3fac7 commit 176a0b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/js/js-core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@ VALUE _rb_js_try_convert(VALUE klass, VALUE obj) {
119119

120120
/*
121121
* call-seq:
122-
* js_obj.is_a?(js_class) -> true or false
122+
* JS.is_a?(js_obj, js_class) -> true or false
123123
*
124124
* Returns <code>true</code> if <i>js_class</i> is the instance of
125125
* <i>js_obj</i>, otherwise returns <code>false</code>.
126126
* Comparison is done using the <code>instanceof</code> in JavaScript.
127127
*
128-
* p JS.global.is_a?(JS.global[:Object]) #=> true
129-
* p JS.global.is_a?(Object) #=> false
128+
* p JS.is_a?(JS.global, JS.global[:Object]) #=> true
129+
* p JS.is_a?(JS.global, Object) #=> false
130130
*/
131131
static VALUE _rb_js_is_kind_of(VALUE klass, VALUE obj, VALUE c) {
132132
if (!IS_JSVALUE(obj)) {

0 commit comments

Comments
 (0)