Lines Matching refs:respond_to
219 if (object['$respond_to?'].$$pristine && object.$method_missing.$$pristine) {
225 if (!object['$respond_to?'](method)) {
233 Opal.respond_to = function(obj, jsid, include_all) { function
238 if (obj['$respond_to?'].$$pristine) {
246 return Opal.send(obj, obj['$respond_to?'], [jsid.substr(1), include_all]);
1500 // `Kernel#respond_to?` uses this property to detect a methods presence.
1739 else if (value['$respond_to?']('to_hash', true)) {
1764 else if (value['$respond_to?']('to_ary', true)) {
1788 else if (value['$respond_to?']('to_a', true)) {
1815 if (kwargs != null && Opal.respond_to(kwargs, '$to_hash', true)) {
2824 if (Opal.respond_to(error, '$full_message')) {
3046 Opal.add_stubs('===,raise,respond_to?,nil?,__send__,<=>,class,coerce_to!,new,to_s,__id__');
3073 if (!$truthy(object['$respond_to?'](method))) {
3087 } if ($truthy(object['$respond_to?'](method))) {
3118 $defs(self, '$respond_to?', function $Opal_respond_to$ques$3(obj, method, include_all) {
3126 return obj['$respond_to?'](method, include_all);
4504 …var $truthy = Opal.truthy, $coerce_to = Opal.coerce_to, $respond_to = Opal.respond_to, $Opal = Opa…
4506 …variables,instance_variable_get,inspect,+,to_s,instance_variable_name!,respond_to?,to_int,coerce_t…
5006 if (value['$respond_to?']("to_int")) {
5280 else if ($respond_to(exception, '$to_str')) {
5283 // using respond_to? and not an undefined check to avoid method_missing matching as true
5284 else if (exception.$$is_class && $respond_to(exception, '$exception')) {
5328 $def(self, '$respond_to?', function $Kernel_respond_to$ques$15(name, include_all) {
5350 $Opal.$pristine(self, "respond_to?", "respond_to_missing?");
6985 …var $coerce_to = Opal.coerce_to, $respond_to = Opal.respond_to, $global_multiline_regexp = Opal.gl…
6987 …Opal.add_stubs('require,include,coerce_to?,initialize,===,format,raise,respond_to?,to_s,to_str,<=>…
7108 if ($truthy(other['$respond_to?']("to_str"))) {
7132 if ($respond_to(other, '$to_str')) {
7266 if (!$truthy(other['$respond_to?']("to_str"))) {
7798 if (($eqeqeq($$('String'), pattern) || ($truthy(pattern['$respond_to?']("to_str"))))) {
7807 if (($eqeqeq($$('String'), pattern) || ($truthy(pattern['$respond_to?']("to_str"))))) {
9049 …ice_when,!,enum_for,flatten,map,to_proc,compact,to_a,warn,proc,==,nil?,respond_to?,coerce_to!,>,*,…
9303 if ($truthy(self['$respond_to?']("size"))) {
9518 if ($truthy(self['$respond_to?']("size"))) {
9878 if ($truthy(self['$respond_to?']("size"))) {
10528 …$$$('Float'), 'INFINITY')['$-@']()]['$include?'](item)) && ($truthy(item['$respond_to?']("-"))))) {
10671 …Opal.add_stubs('is_a?,==,raise,respond_to?,class,attr_reader,begin,end,exclude_end?,>,step,<,<=,>=…
10705 } if ($truthy(self.step['$respond_to?']("to_int"))) {
10865 Opal.add_stubs('to_enum,size,each,<<,to_proc,include?,+,reverse_each,respond_to?,rewind,inspect');
10939 if ($truthy(enum$['$respond_to?']("rewind"))) {
11013 …Opal.add_stubs('raise,each,new,enumerator_size,yield,respond_to?,try_convert,<,===,+,for,class,to_…
11110 if ((value)['$respond_to?']("force") && (value)['$respond_to?']("each")) {
11403 …Opal.add_stubs('require,include,allocate,new,to_proc,!,respond_to?,empty?,nil?,+,class,__send__,ca…
11448 if (($truthy(self.size) && ($not(self.size['$respond_to?']("call"))))) {
11477 if ($truthy(self.size['$respond_to?']("call"))) {
11608 …Opal.add_stubs('require,include,instance_of?,class,Float,respond_to?,coerce,__send__,raise,equal?,…
11630 if ($truthy(other['$respond_to?']("coerce"))) {
12031 …hash_delete = Opal.hash_delete, $coerce_to = Opal.coerce_to, $respond_to = Opal.respond_to, $deny_…
12033 …Opal.add_stubs('require,include,to_a,warn,raise,replace,respond_to?,to_ary,coerce_to?,===,join,to_…
12142 } else if (size['$respond_to?']("to_ary")) {
12221 if ($truthy(other['$respond_to?']("to_str"))) {
12285 } else if ($truthy(other['$respond_to?']("to_ary"))) {
12320 if ($respond_to(other, '$to_ary')) {
12485 else if (value['$respond_to?']("to_ary"))
12533 else if (value['$respond_to?']("to_ary"))
13030 if (!$truthy(item['$respond_to?']("dig"))) {
13294 if (!$respond_to(item, '$to_ary', true)) {
13554 if ($respond_to(item, '$to_str')) {
13564 if ($respond_to(item, '$to_ary')) {
13578 if ($respond_to(item, '$to_s')) {
14073 …} rng = (($truthy(rng) && ($truthy(rng['$respond_to?']("rand")))) ? ($$('SampleRandom').$new(…
14227 if (rng !== nil && rng['$respond_to?']("rand")) {
14728 …each,fetch,>=,>,==,compare_by_identity,lambda?,abs,arity,enum_for,size,respond_to?,class,dig,excep…
15199 if (!$truthy(item['$respond_to?']("dig"))) {
16131 …Opal.add_stubs('require,bridge,raise,name,class,Float,respond_to?,coerce_to!,__coerced__,===,>,!,*…
16164 else if (other['$respond_to?']("to_f")) {
16457 else if (other['$respond_to?']("==")) {
17205 …,attr_reader,raise,nil?,<=>,include?,!,<,<=,enum_for,size,upto,to_proc,respond_to?,class,succ,==,=…
17306 if (!$truthy(current['$respond_to?']("succ"))) {
17422 if (!self.begin['$respond_to?']("succ")) {
18450 …Opal.add_stubs('respond_to?,[],==,length,coerce_to?,nil?,to_a,raise,to_int,fetch,Integer,Float,to_…
18464 if (($eqeq(args.$length(), 1) && ($truthy(args['$[]'](0)['$respond_to?']("to_ary"))))) {
18950 if ((arg)['$respond_to?']("to_ary")) { arg = (arg).$to_ary()[0]; }
18951 if ((arg)['$respond_to?']("to_str")) {
20689 …Opal.add_stubs('require,include,===,raise,coerce_to!,respond_to?,to_str,to_i,_parse_offset,new,<=>…
20742 if ((month)['$respond_to?']("to_str")) {
21530 …_,eql?,enum_for,+,name,each_pair,inspect,to_h,args,each_with_object,flatten,to_a,respond_to?,dig');
21944 if (!$truthy(item['$respond_to?']("dig"))) {
21957 …Opal.add_stubs('include,new,nil?,===,raise,each,add,merge,class,respond_to?,subtract,dup,join,to_a…
22007 if (!$truthy(enum$['$respond_to?']("each"))) {
22081 if ($truthy(self.hash['$respond_to?']("compare_by_identity"))) {
22093 if ($truthy(($ret_or_1 = self.hash['$respond_to?']("compare_by_identity?")))) {
22287 if (!$truthy(enum$['$respond_to?']("each"))) {
22441 …Opal.add_stubs('respond_to?,to_path,coerce_to!,pwd,split,sub,+,unshift,join,home,raise,start_with?…
22466 path = ($truthy(path['$respond_to?']("to_path")) ? (path.$to_path()) : (path));
22534 if ($truthy((path)['$respond_to?']("to_path"))) {
23501 …Opal.add_stubs('require,include,quote,===,to_s,path,respond_to?,to_path,is_a?,nil?,raise,class,==,…
23520 } else if ($truthy(path['$respond_to?']("to_path"))) {