Lines Matching refs:respond_to

228     if (object['$respond_to?'].$$pristine && object.$method_missing.$$pristine) {
234 if (!object['$respond_to?'](method)) {
242 Opal.respond_to = function(obj, jsid, include_all) {
247 if (obj['$respond_to?'].$$pristine) {
255 return Opal.send(obj, obj['$respond_to?'], [jsid.substr(1), include_all]);
1509 // `Kernel#respond_to?` uses this property to detect a methods presence.
1748 else if (value['$respond_to?']('to_hash', true)) {
1773 else if (value['$respond_to?']('to_ary', true)) {
1797 else if (value['$respond_to?']('to_a', true)) {
1824 if (kwargs != null && Opal.respond_to(kwargs, '$to_hash', true)) {
2833 if (Opal.respond_to(error, '$full_message')) {
3055 Opal.add_stubs('===,raise,respond_to?,nil?,__send__,<=>,class,coerce_to!,new,to_s,__id__');
3082 if (!$truthy(object['$respond_to?'](method))) {
3096 } if ($truthy(object['$respond_to?'](method))) {
3127 $defs(self, '$respond_to?', function $Opal_respond_to$ques$3(obj, method, include_all) {
3135 return obj['$respond_to?'](method, include_all);
4513 …var $truthy = Opal.truthy, $coerce_to = Opal.coerce_to, $respond_to = Opal.respond_to, $Opal = Opa…
4515 …variables,instance_variable_get,inspect,+,to_s,instance_variable_name!,respond_to?,to_int,coerce_t…
5015 if (value['$respond_to?']("to_int")) {
5289 else if ($respond_to(exception, '$to_str')) {
5292 // using respond_to? and not an undefined check to avoid method_missing matching as true
5293 else if (exception.$$is_class && $respond_to(exception, '$exception')) {
5337 $def(self, '$respond_to?', function $Kernel_respond_to$ques$15(name, include_all) {
5359 $Opal.$pristine(self, "respond_to?", "respond_to_missing?");
6994 …var $coerce_to = Opal.coerce_to, $respond_to = Opal.respond_to, $global_multiline_regexp = Opal.gl…
6996 …Opal.add_stubs('require,include,coerce_to?,initialize,===,format,raise,respond_to?,to_s,to_str,<=>…
7117 if ($truthy(other['$respond_to?']("to_str"))) {
7141 if ($respond_to(other, '$to_str')) {
7275 if (!$truthy(other['$respond_to?']("to_str"))) {
7807 if (($eqeqeq($$('String'), pattern) || ($truthy(pattern['$respond_to?']("to_str"))))) {
7816 if (($eqeqeq($$('String'), pattern) || ($truthy(pattern['$respond_to?']("to_str"))))) {
9058 …ice_when,!,enum_for,flatten,map,to_proc,compact,to_a,warn,proc,==,nil?,respond_to?,coerce_to!,>,*,…
9312 if ($truthy(self['$respond_to?']("size"))) {
9527 if ($truthy(self['$respond_to?']("size"))) {
9887 if ($truthy(self['$respond_to?']("size"))) {
10537 …$$$('Float'), 'INFINITY')['$-@']()]['$include?'](item)) && ($truthy(item['$respond_to?']("-"))))) {
10680 …Opal.add_stubs('is_a?,==,raise,respond_to?,class,attr_reader,begin,end,exclude_end?,>,step,<,<=,>=…
10714 } if ($truthy(self.step['$respond_to?']("to_int"))) {
10874 Opal.add_stubs('to_enum,size,each,<<,to_proc,include?,+,reverse_each,respond_to?,rewind,inspect');
10948 if ($truthy(enum$['$respond_to?']("rewind"))) {
11022 …Opal.add_stubs('raise,each,new,enumerator_size,yield,respond_to?,try_convert,<,===,+,for,class,to_…
11119 if ((value)['$respond_to?']("force") && (value)['$respond_to?']("each")) {
11412 …Opal.add_stubs('require,include,allocate,new,to_proc,!,respond_to?,empty?,nil?,+,class,__send__,ca…
11457 if (($truthy(self.size) && ($not(self.size['$respond_to?']("call"))))) {
11486 if ($truthy(self.size['$respond_to?']("call"))) {
11617 …Opal.add_stubs('require,include,instance_of?,class,Float,respond_to?,coerce,__send__,raise,equal?,…
11639 if ($truthy(other['$respond_to?']("coerce"))) {
12040 …hash_delete = Opal.hash_delete, $coerce_to = Opal.coerce_to, $respond_to = Opal.respond_to, $deny_…
12042 …Opal.add_stubs('require,include,to_a,warn,raise,replace,respond_to?,to_ary,coerce_to?,===,join,to_…
12151 } else if (size['$respond_to?']("to_ary")) {
12230 if ($truthy(other['$respond_to?']("to_str"))) {
12294 } else if ($truthy(other['$respond_to?']("to_ary"))) {
12329 if ($respond_to(other, '$to_ary')) {
12494 else if (value['$respond_to?']("to_ary"))
12542 else if (value['$respond_to?']("to_ary"))
13039 if (!$truthy(item['$respond_to?']("dig"))) {
13303 if (!$respond_to(item, '$to_ary', true)) {
13563 if ($respond_to(item, '$to_str')) {
13573 if ($respond_to(item, '$to_ary')) {
13587 if ($respond_to(item, '$to_s')) {
14082 …} rng = (($truthy(rng) && ($truthy(rng['$respond_to?']("rand")))) ? ($$('SampleRandom').$new(…
14236 if (rng !== nil && rng['$respond_to?']("rand")) {
14737 …each,fetch,>=,>,==,compare_by_identity,lambda?,abs,arity,enum_for,size,respond_to?,class,dig,excep…
15208 if (!$truthy(item['$respond_to?']("dig"))) {
16140 …Opal.add_stubs('require,bridge,raise,name,class,Float,respond_to?,coerce_to!,__coerced__,===,>,!,*…
16173 else if (other['$respond_to?']("to_f")) {
16466 else if (other['$respond_to?']("==")) {
17214 …,attr_reader,raise,nil?,<=>,include?,!,<,<=,enum_for,size,upto,to_proc,respond_to?,class,succ,==,=…
17315 if (!$truthy(current['$respond_to?']("succ"))) {
17431 if (!self.begin['$respond_to?']("succ")) {
18459 …Opal.add_stubs('respond_to?,[],==,length,coerce_to?,nil?,to_a,raise,to_int,fetch,Integer,Float,to_…
18473 if (($eqeq(args.$length(), 1) && ($truthy(args['$[]'](0)['$respond_to?']("to_ary"))))) {
18959 if ((arg)['$respond_to?']("to_ary")) { arg = (arg).$to_ary()[0]; }
18960 if ((arg)['$respond_to?']("to_str")) {
20698 …Opal.add_stubs('require,include,===,raise,coerce_to!,respond_to?,to_str,to_i,_parse_offset,new,<=>…
20751 if ((month)['$respond_to?']("to_str")) {
21539 …_,eql?,enum_for,+,name,each_pair,inspect,to_h,args,each_with_object,flatten,to_a,respond_to?,dig');
21953 if (!$truthy(item['$respond_to?']("dig"))) {
21966 …Opal.add_stubs('include,new,nil?,===,raise,each,add,merge,class,respond_to?,subtract,dup,join,to_a…
22016 if (!$truthy(enum$['$respond_to?']("each"))) {
22090 if ($truthy(self.hash['$respond_to?']("compare_by_identity"))) {
22102 if ($truthy(($ret_or_1 = self.hash['$respond_to?']("compare_by_identity?")))) {
22296 if (!$truthy(enum$['$respond_to?']("each"))) {
22450 …Opal.add_stubs('respond_to?,to_path,coerce_to!,pwd,split,sub,+,unshift,join,home,raise,start_with?…
22475 path = ($truthy(path['$respond_to?']("to_path")) ? (path.$to_path()) : (path));
22543 if ($truthy((path)['$respond_to?']("to_path"))) {
23419 …Opal.add_stubs('respond_to?,to_path,coerce_to!,pwd,split,sub,+,unshift,join,home,raise,start_with?…
23444 path = ($truthy(path['$respond_to?']("to_path")) ? (path.$to_path()) : (path));
23512 if ($truthy((path)['$respond_to?']("to_path"))) {
23681 …Opal.add_stubs('require,constants,raise,warn,const_get,new,size,delete,respond_to?,path,join,call,…
23835 if ($truthy(path['$respond_to?']("path"))) {
23927 if ($truthy(path['$respond_to?']("path"))) {
23944 path = ($truthy(path['$respond_to?']("to_path")) ? (path.$to_path()) : (path));
24073 Opal.add_stubs('respond_to?,flat_map,to_path,coerce_to!,pwd');
24133 if (!$truthy(pattern['$respond_to?']("each"))) {
24138 if ($truthy(subpattern['$respond_to?']("to_path"))) {
24552 …Opal.add_stubs('require,include,quote,===,to_s,path,respond_to?,to_path,is_a?,nil?,raise,class,==,…
24571 } else if ($truthy(path['$respond_to?']("to_path"))) {
25132 …Opal.add_stubs('require,include,quote,===,to_s,path,respond_to?,to_path,is_a?,nil?,raise,class,==,…
25151 } else if ($truthy(path['$respond_to?']("to_path"))) {