Lines Matching refs:to_a
1792 Opal.to_a = function(value) {
1797 else if (value['$respond_to?']('to_a', true)) {
1798 var ary = value.$to_a();
1807 " to Array (" + value.$$class + "#to_a gives " + ary.$$class + ")");
3245 …el, $rb_lt = Opal.rb_lt, $rb_gt = Opal.rb_gt, $slice = Opal.slice, $to_a = Opal.to_a, $hash2 = Opa…
3404 $send(self, 'attr_reader', $to_a(names));
3405 return $send(self, 'attr_writer', $to_a(names));
3421 return $send(self, 'attr_reader', $to_a(args));
3708 …return $send(bound, 'call', $to_a(args));}, {$$arity: -1, $$s: self})) : ($Kernel.$raise($$$('Type…
3890 …} $b = [].concat($to_a(args)), (string = ($b[0] == null ? nil : $b[0])), (file = ($b[1] == …
4317 …$truthy = Opal.truthy, $range = Opal.range, $Kernel = Opal.Kernel, $to_a = Opal.to_a, $hash2 = Opa…
4405 …} $b = [].concat($to_a(args)), (string = ($b[0] == null ? nil : $b[0])), (file = ($b[1] == …
4513 …rnel, $gvars = Opal.gvars, $slice = Opal.slice, $send = Opal.send, $to_a = Opal.to_a, $ensure_kwar…
4615 coerced = $Opal['$coerce_to?'](object, $$$('Array'), "to_a");
4658 return $send($send(self, 'caller', $to_a(args)), 'map', [], function $$4(loc){
4777 return $send($$$('Enumerator'), 'for', [self, method].concat($to_a(args)), block.$to_proc());
4876 return $send($gvars.stdin, 'gets', $to_a(args));
5186 self.$print($send(self, 'format', $to_a(args)));
5207 return $send($gvars.stdout, 'puts', $to_a(strs));
5234 return $send($gvars.stdout, 'print', $to_a(strs));
5244 return $send($gvars.stdin, 'readline', $to_a(args));
5274 return $send($gvars.stderr, 'puts', $to_a(strs))
5504 return $send($$$('File'), 'open', $to_a(args), block.$to_proc());
5621 ….slice, $gvars = Opal.gvars, $defs = Opal.defs, $send = Opal.send, $to_a = Opal.to_a, $def = Opal.…
5668 return $send(self, 'new', $to_a(args));
6122 $def(self, '$to_a', function $$to_a() {
6166 …= Opal.truthy, $send2 = Opal.send2, $find_super = Opal.find_super, $to_a = Opal.to_a, $alias = Opa…
6279 …d_missing', $$method_missing, false, true), 'method_missing', [method].concat($to_a(args)), block);
6429 …rb_plus, $ensure_kwargs = Opal.ensure_kwargs, $rb_ge = Opal.rb_ge, $to_a = Opal.to_a, $eqeqeq = Op…
6431 …der,>=,length,is_a?,include?,names,regexp,named_captures,===,captures,-,inspect,empty?,each,to_a');
6847 return $send(self.matches, '[]', $to_a(args))
6948 $def(self, '$to_a', $return_ivar("matches"));
6968 a = (args[i]).$to_a();
6994 …l.Opal, $defs = Opal.defs, $slice = Opal.slice, $send = Opal.send, $to_a = Opal.to_a, $extract_kwa…
6996 …lize_clone,initialize_dup,enum_for,chomp,[],to_i,length,each_line,to_proc,to_a,match,match?,captur…
7033 if (!str.$initialize.$$pristine) $send((str), 'initialize', $to_a(args));
7054 return $send(self, 'format', [self].concat($to_a(data)))
7761 return e.$to_a()
8983 return $send(self, 'new', $to_a(args));
9056 …ss, $module = Opal.module, $send = Opal.send, $slice = Opal.slice, $to_a = Opal.to_a, $Opal = Opal…
9058 …or_size,new,yield,raise,slice_when,!,enum_for,flatten,map,to_proc,compact,to_a,warn,proc,==,nil?,r…
9092 if ($truthy($send(pattern, 'public_send', ["==="].concat($to_a(comparable))))) {
9103 if ($truthy(Opal.yieldX(block, $to_a(value)))) {
9140 if ($truthy($send(pattern, 'public_send', ["==="].concat($to_a(comparable))))) {
9151 if ($truthy(Opal.yieldX(block, $to_a(value)))) {
9269 return self.$to_a().$compact()
9502 …return $send(self, 'to_enum', ["each_entry"].concat($to_a(data)), function $$19(){var self = $$19.…
9562 …return $send(self, 'enum_for', ["each_with_index"].concat($to_a(args)), function $$21(){var self =…
9685 if ($truthy(Opal.yieldX(block, $to_a(value)))) {
9746 if (!$truthy($send(pattern, '__send__', ["==="].concat($to_a(cmp))))) {
9752 } value = Opal.yieldX(block, $to_a(value));
9770 if ($truthy($send(pattern, '__send__', ["==="].concat($to_a(cmp))))) {
9776 } value = Opal.yieldX(block, $to_a(value));
9881 return $send(enum$, 'yield', $to_a(args));}, -2)
10157 if ($truthy($send(pattern, 'public_send', ["==="].concat($to_a(comparable))))) {
10168 if ($truthy(Opal.yieldX(block, $to_a(value)))) {
10207 if ($truthy($send(pattern, 'public_send', ["==="].concat($to_a(comparable))))) {
10224 if (!$truthy(Opal.yieldX(block, $to_a(value)))) {
10489 ary = self.$to_a();
10536 item = (($yield !== nil) ? (Opal.yieldX($yield, $to_a(args))) : ($Opal.$destructure(args)));
10623 return $send($send(self, 'map', [], block.$to_proc()), 'to_h', $to_a(args))
10655 return $send(klass, 'new', [self].concat($to_a(args)), block.$to_proc());
10664 return $send(self.$to_a(), 'zip', $to_a(others));
10673 return $alias(self, "to_a", "entries");
10678 …var $klass = Opal.klass, $truthy = Opal.truthy, $to_a = Opal.to_a, $eqeq = Opal.eqeq, $Kernel = Op…
10702 …$a = [].concat($to_a(range)), (self.step_arg1 = ($a[0] == null ? nil : $a[0])), (self.step_arg2 = …
10872 …al.klass, $slice = Opal.slice, $def = Opal.def, $send = Opal.send, $to_a = Opal.to_a, $truthy = Op…
10906 …return $send(self, 'to_enum', ["each"].concat($to_a(args)), function $$1(){var self = $$1.$$s == n…
10915 return $send(enum$, 'each', $to_a(args), block.$to_proc());}, {$$s: self});
10930 size = $send(enum$, 'size', $to_a(args));
11020 … = Opal.slice, $send2 = Opal.send2, $find_super = Opal.find_super, $to_a = Opal.to_a, $defs = Opal…
11022 …eld,respond_to?,try_convert,<,===,+,for,class,to_proc,destructure,inspect,to_a,find_all,collect_co…
11043 …ind_super(self, 'for', $Lazy_for$1, false, true), 'for', [object].concat($to_a($fwd_rest)), $yield…
11064 return $send(object, 'each', $to_a(each_args), function $$3($b){var $post_args, args;
11160 return $send(enum$, 'yield', $to_a(args))
11184 $send(enum$, 'yield', $to_a(args));
11188 return $send(enum$, 'yield', $to_a(args))
11200 return $send(self.$class(), 'for', [self, method].concat($to_a(args)), block.$to_proc());
11219 $send(enum$, 'yield', $to_a(args));
11278 $send(enum$, 'yield', $to_a(args));
11301 $send(enum$, 'yield', $to_a(args));
11324 $send(enum$, 'yield', $to_a(args));
11337 $alias(self, "force", "to_a");
11348 …al.klass, $def = Opal.def, $slice = Opal.slice, $send = Opal.send, $to_a = Opal.to_a, $nesting = […
11403 return $send(self, 'yield', $to_a(values));}, {$$arity: -1, $$s: self})
11410 …l.send, $not = Opal.not, $def = Opal.def, $rb_plus = Opal.rb_plus, $to_a = Opal.to_a, $Opal = Opal…
11479 return $send(self.$class(), 'new', [self.object, self.method].concat($to_a(args)))
11480 … } return $send(self.object, '__send__', [self.method].concat($to_a(args)), block.$to_proc());
11487 return $send(self.size, 'call', $to_a(self.args))
12040 …mes = Opal.rb_times, $eqeq = Opal.eqeq, $rb_minus = Opal.rb_minus, $to_a = Opal.to_a, $to_ary = Op…
12042 …Opal.add_stubs('require,include,to_a,warn,raise,replace,respond_to?,to_ary,coerce_to?,===,join,to_…
12082 return klass.$allocate().$replace((obj).$to_a());
12149 self.$replace(size.$to_a());
12189 …her = ($eqeqeq($$$('Array'), other) ? (other.$to_a()) : (($coerce_to(other, $$$('Array'), 'to_ary'…
12211 …her = ($eqeqeq($$$('Array'), other) ? (other.$to_a()) : (($coerce_to(other, $$$('Array'), 'to_ary'…
12237 converted = self.$to_a();
12250 …her = ($eqeqeq($$$('Array'), other) ? (other.$to_a()) : (($coerce_to(other, $$$('Array'), 'to_ary'…
12257 …her = ($eqeqeq($$$('Array'), other) ? (other.$to_a()) : (($coerce_to(other, $$$('Array'), 'to_ary'…
12293 other = other.$to_a();
12295 other = other.$to_ary().$to_a();
12337 array = (array).$to_a();
12339 other = (other).$to_a();
12493 data = value.$to_a();
12495 data = value.$to_ary().$to_a();
12541 data = value.$to_a();
12543 data = value.$to_ary().$to_a();
12931 …her = ($eqeqeq($$$('Array'), other) ? (other.$to_a()) : (($coerce_to(other, $$$('Array'), 'to_ary'…
13021 return $send(arrays, 'reduce', [self.$to_a().$dup()], function $$24(a, b){
13041 } return $send(item, 'dig', $to_a(idxs));
13122 other = other.$to_a();
13298 array = (array).$to_a();
13533 return $send(arrays, 'reduce', [self.$to_a().$dup()], function $$31(a, b){
13925 …her = ($eqeqeq($$$('Array'), other) ? (other.$to_a()) : (($coerce_to(other, $$$('Array'), 'to_ary'…
14220 return self.$dup().$to_a()['$shuffle!'](rng);
14440 $def(self, '$to_a', function $$to_a() {
14493 …row = ($eqeqeq($$$('Array'), row) ? (row.$to_a()) : (($coerce_to(row, $$$('Array'), 'to_ary')).$to…
14661 …o_ary"))) ? ($ret_or_1) : ($Opal['$coerce_to!'](o, $$$('Enumerator'), "to_enum", "each"))).$to_a();
14693 klass.$$prototype.$to_a = function() {
14735 …, $rb_gt = Opal.rb_gt, $hash2 = Opal.hash2, $truthy = Opal.truthy, $to_a = Opal.to_a, $return_self…
15210 } return $send(item, 'dig', $to_a(keys));
15286 return $send(self.$dup(), 'except!', $to_a(keys));
15633 return $send(self.$dup(), 'merge!', $to_a(others), block.$to_proc());
15924 $def(self, '$to_a', function $$to_a() {
17214 …to,to_proc,respond_to?,class,succ,==,===,exclude_end?,eql?,begin,end,last,to_a,>,-@,-,to_i,coerce_…
17264 $def(self, '$to_a', function $$to_a() {
17265 var $yield = $$to_a.$$p || nil, self = this;
17267 $$to_a.$$p = null;
17271 … } return $send2(self, $find_super(self, 'to_a', $$to_a, false, true), 'to_a', [], $yield);
17357 } return self.$to_a().$last(n);
17535 } return $send(self.$to_a(), 'bsearch', [], block.$to_proc());
17571 …pal.Kernel, $defs = Opal.defs, $def = Opal.def, $send = Opal.send, $to_a = Opal.to_a, $return_self…
17644 out = $send(self, 'call', $to_a(args), block.$to_proc());
17657 out = $send(other, 'call', $to_a(args), block.$to_proc());
17802 …ce, $alias = Opal.alias, $Kernel = Opal.Kernel, $send = Opal.send, $to_a = Opal.to_a, nil = Opal.n…
17983 return $send(self.$bind(object), 'call', $to_a(args), block.$to_proc());
18012 …ce, $Kernel = Opal.Kernel, $gvars = Opal.gvars, $send = Opal.send, $to_a = Opal.to_a, $rb_plus = O…
18014 …+,!=,[],ord,getc,readchar,raise,gets,==,to_str,length,split,sub,sysread,>,to_a,each_line,enum_for,…
18105 if (ary.length > 0) $send(self, 'puts', $to_a((ary)));
18165 if ($truthy(($ret_or_1 = $send(self, 'gets', $to_a(args))))) {
18292 return self.$each_line(separator).$to_a();
18305 return $send(self, 'enum_for', ["each", sep].concat($to_a(args)))
18306 } while ($truthy((s = $send(self, 'gets', [sep].concat($to_a(args)))))) {
18459 …Opal.add_stubs('respond_to?,[],==,length,coerce_to?,nil?,to_a,raise,to_int,fetch,Integer,Float,to_…
18477 args = ary.$to_a();
19021 …aise,register,length,bytes,force_encoding,dup,bytesize,enum_for,each_byte,to_a,each_char,each_code…
19394 return (new String(self)).$each_byte().$to_a();
19396 self.bytes = ($truthy(($ret_or_1 = self.bytes)) ? ($ret_or_1) : (self.$each_byte().$to_a()));
19417 return self.$each_char().$to_a()
19440 } return self.$each_codepoint().$to_a();
21470 $def(self, '$to_a', function $$to_a() {
21537 …l.eqeq, $Opal = Opal.Opal, $send = Opal.send, $Class = Opal.Class, $to_a = Opal.to_a, $def = Opal.…
21539 …_,eql?,enum_for,+,name,each_pair,inspect,to_h,args,each_with_object,flatten,to_a,respond_to?,dig');
21601 $send(instance, 'initialize', $to_a(args));
21868 $def(self, '$to_a', function $$to_a() {
21912 return $send($send(self, 'map', [], block.$to_proc()), 'to_h', $to_a(self.$args()))
21930 return arg.$$is_range ? arg.$to_a() : arg;}).$flatten();
21955 } return $send(item, 'dig', $to_a(keys));
21959 return $alias(self, "values", "to_a");
21966 …ude,new,nil?,===,raise,each,add,merge,class,respond_to?,subtract,dup,join,to_a,equal?,instance_of?…
22024 return "#<Set: {" + (self.$to_a().$join(",")) + "}>"
22383 $def(self, '$to_a', function $$to_a() {
22953 …", false), $range("a", "z", false), $range("A", "Z", false)], 'map', [], "to_a".$to_proc()).$flatt…
24203 …rs, $truthy = Opal.truthy, $slice = Opal.slice, $send = Opal.send, $to_a = Opal.to_a, $rb_plus = O…
24205 …n,argv,shift,close,file,closed?,enum_for,gets,nil?,+,loop,read,-,length,>,to_a,each,attr_accessor,…
24279 } while ($truthy((l = $send(self, 'gets', $to_a(args))))) {
24290 s = $send(self.$file(), 'gets', $to_a(args));
24294 s = $send(self.$file(), 'gets', $to_a(args));
24333 return $send(self, 'each', $to_a(args)).$to_a();
24550 …fs, $to_ary = Opal.to_ary, $slice = Opal.slice, $send = Opal.send, $to_a = Opal.to_a, $return_ivar…
24646 return $$('Pathname').$new($send(self.path, 'sub', $to_a(args)));
24838 return $$('Pathname').$new($send($$('File'), 'join', $to_a(relpath_names)))
25130 …fs, $to_ary = Opal.to_ary, $slice = Opal.slice, $send = Opal.send, $to_a = Opal.to_a, $return_ivar…
25226 return $$('Pathname').$new($send(self.path, 'sub', $to_a(args)));
25418 return $$('Pathname').$new($send($$('File'), 'join', $to_a(relpath_names)))