Lines Matching refs:to_a
1783 Opal.to_a = function(value) { function
1788 else if (value['$respond_to?']('to_a', true)) {
1789 var ary = value.$to_a();
1798 " to Array (" + value.$$class + "#to_a gives " + ary.$$class + ")");
3236 …el, $rb_lt = Opal.rb_lt, $rb_gt = Opal.rb_gt, $slice = Opal.slice, $to_a = Opal.to_a, $hash2 = Opa…
3395 $send(self, 'attr_reader', $to_a(names));
3396 return $send(self, 'attr_writer', $to_a(names));
3412 return $send(self, 'attr_reader', $to_a(args));
3699 …return $send(bound, 'call', $to_a(args));}, {$$arity: -1, $$s: self})) : ($Kernel.$raise($$$('Type…
3881 …} $b = [].concat($to_a(args)), (string = ($b[0] == null ? nil : $b[0])), (file = ($b[1] == …
4308 …$truthy = Opal.truthy, $range = Opal.range, $Kernel = Opal.Kernel, $to_a = Opal.to_a, $hash2 = Opa…
4396 …} $b = [].concat($to_a(args)), (string = ($b[0] == null ? nil : $b[0])), (file = ($b[1] == …
4504 …rnel, $gvars = Opal.gvars, $slice = Opal.slice, $send = Opal.send, $to_a = Opal.to_a, $ensure_kwar…
4606 coerced = $Opal['$coerce_to?'](object, $$$('Array'), "to_a");
4649 return $send($send(self, 'caller', $to_a(args)), 'map', [], function $$4(loc){
4768 return $send($$$('Enumerator'), 'for', [self, method].concat($to_a(args)), block.$to_proc());
4867 return $send($gvars.stdin, 'gets', $to_a(args));
5177 self.$print($send(self, 'format', $to_a(args)));
5198 return $send($gvars.stdout, 'puts', $to_a(strs));
5225 return $send($gvars.stdout, 'print', $to_a(strs));
5235 return $send($gvars.stdin, 'readline', $to_a(args));
5265 return $send($gvars.stderr, 'puts', $to_a(strs))
5495 return $send($$$('File'), 'open', $to_a(args), block.$to_proc());
5612 ….slice, $gvars = Opal.gvars, $defs = Opal.defs, $send = Opal.send, $to_a = Opal.to_a, $def = Opal.…
5659 return $send(self, 'new', $to_a(args));
6113 $def(self, '$to_a', function $$to_a() {
6157 …= Opal.truthy, $send2 = Opal.send2, $find_super = Opal.find_super, $to_a = Opal.to_a, $alias = Opa…
6270 …d_missing', $$method_missing, false, true), 'method_missing', [method].concat($to_a(args)), block);
6420 …rb_plus, $ensure_kwargs = Opal.ensure_kwargs, $rb_ge = Opal.rb_ge, $to_a = Opal.to_a, $eqeqeq = Op…
6422 …der,>=,length,is_a?,include?,names,regexp,named_captures,===,captures,-,inspect,empty?,each,to_a');
6838 return $send(self.matches, '[]', $to_a(args))
6939 $def(self, '$to_a', $return_ivar("matches"));
6959 a = (args[i]).$to_a();
6985 …l.Opal, $defs = Opal.defs, $slice = Opal.slice, $send = Opal.send, $to_a = Opal.to_a, $extract_kwa…
6987 …lize_clone,initialize_dup,enum_for,chomp,[],to_i,length,each_line,to_proc,to_a,match,match?,captur…
7024 if (!str.$initialize.$$pristine) $send((str), 'initialize', $to_a(args));
7045 return $send(self, 'format', [self].concat($to_a(data)))
7752 return e.$to_a()
8974 return $send(self, 'new', $to_a(args));
9047 …ss, $module = Opal.module, $send = Opal.send, $slice = Opal.slice, $to_a = Opal.to_a, $Opal = Opal…
9049 …or_size,new,yield,raise,slice_when,!,enum_for,flatten,map,to_proc,compact,to_a,warn,proc,==,nil?,r…
9083 if ($truthy($send(pattern, 'public_send', ["==="].concat($to_a(comparable))))) {
9094 if ($truthy(Opal.yieldX(block, $to_a(value)))) {
9131 if ($truthy($send(pattern, 'public_send', ["==="].concat($to_a(comparable))))) {
9142 if ($truthy(Opal.yieldX(block, $to_a(value)))) {
9260 return self.$to_a().$compact()
9493 …return $send(self, 'to_enum', ["each_entry"].concat($to_a(data)), function $$19(){var self = $$19.…
9553 …return $send(self, 'enum_for', ["each_with_index"].concat($to_a(args)), function $$21(){var self =…
9676 if ($truthy(Opal.yieldX(block, $to_a(value)))) {
9737 if (!$truthy($send(pattern, '__send__', ["==="].concat($to_a(cmp))))) {
9743 } value = Opal.yieldX(block, $to_a(value));
9761 if ($truthy($send(pattern, '__send__', ["==="].concat($to_a(cmp))))) {
9767 } value = Opal.yieldX(block, $to_a(value));
9872 return $send(enum$, 'yield', $to_a(args));}, -2)
10148 if ($truthy($send(pattern, 'public_send', ["==="].concat($to_a(comparable))))) {
10159 if ($truthy(Opal.yieldX(block, $to_a(value)))) {
10198 if ($truthy($send(pattern, 'public_send', ["==="].concat($to_a(comparable))))) {
10215 if (!$truthy(Opal.yieldX(block, $to_a(value)))) {
10480 ary = self.$to_a();
10527 item = (($yield !== nil) ? (Opal.yieldX($yield, $to_a(args))) : ($Opal.$destructure(args)));
10614 return $send($send(self, 'map', [], block.$to_proc()), 'to_h', $to_a(args))
10646 return $send(klass, 'new', [self].concat($to_a(args)), block.$to_proc());
10655 return $send(self.$to_a(), 'zip', $to_a(others));
10664 return $alias(self, "to_a", "entries");
10669 …var $klass = Opal.klass, $truthy = Opal.truthy, $to_a = Opal.to_a, $eqeq = Opal.eqeq, $Kernel = Op…
10693 …$a = [].concat($to_a(range)), (self.step_arg1 = ($a[0] == null ? nil : $a[0])), (self.step_arg2 = …
10863 …al.klass, $slice = Opal.slice, $def = Opal.def, $send = Opal.send, $to_a = Opal.to_a, $truthy = Op…
10897 …return $send(self, 'to_enum', ["each"].concat($to_a(args)), function $$1(){var self = $$1.$$s == n…
10906 return $send(enum$, 'each', $to_a(args), block.$to_proc());}, {$$s: self});
10921 size = $send(enum$, 'size', $to_a(args));
11011 … = Opal.slice, $send2 = Opal.send2, $find_super = Opal.find_super, $to_a = Opal.to_a, $defs = Opal…
11013 …eld,respond_to?,try_convert,<,===,+,for,class,to_proc,destructure,inspect,to_a,find_all,collect_co…
11034 …ind_super(self, 'for', $Lazy_for$1, false, true), 'for', [object].concat($to_a($fwd_rest)), $yield…
11055 return $send(object, 'each', $to_a(each_args), function $$3($b){var $post_args, args;
11151 return $send(enum$, 'yield', $to_a(args))
11175 $send(enum$, 'yield', $to_a(args));
11179 return $send(enum$, 'yield', $to_a(args))
11191 return $send(self.$class(), 'for', [self, method].concat($to_a(args)), block.$to_proc());
11210 $send(enum$, 'yield', $to_a(args));
11269 $send(enum$, 'yield', $to_a(args));
11292 $send(enum$, 'yield', $to_a(args));
11315 $send(enum$, 'yield', $to_a(args));
11328 $alias(self, "force", "to_a");
11339 …al.klass, $def = Opal.def, $slice = Opal.slice, $send = Opal.send, $to_a = Opal.to_a, $nesting = […
11394 return $send(self, 'yield', $to_a(values));}, {$$arity: -1, $$s: self})
11401 …l.send, $not = Opal.not, $def = Opal.def, $rb_plus = Opal.rb_plus, $to_a = Opal.to_a, $Opal = Opal…
11470 return $send(self.$class(), 'new', [self.object, self.method].concat($to_a(args)))
11471 … } return $send(self.object, '__send__', [self.method].concat($to_a(args)), block.$to_proc());
11478 return $send(self.size, 'call', $to_a(self.args))
12031 …mes = Opal.rb_times, $eqeq = Opal.eqeq, $rb_minus = Opal.rb_minus, $to_a = Opal.to_a, $to_ary = Op…
12033 …Opal.add_stubs('require,include,to_a,warn,raise,replace,respond_to?,to_ary,coerce_to?,===,join,to_…
12073 return klass.$allocate().$replace((obj).$to_a());
12140 self.$replace(size.$to_a());
12180 …her = ($eqeqeq($$$('Array'), other) ? (other.$to_a()) : (($coerce_to(other, $$$('Array'), 'to_ary'…
12202 …her = ($eqeqeq($$$('Array'), other) ? (other.$to_a()) : (($coerce_to(other, $$$('Array'), 'to_ary'…
12228 converted = self.$to_a();
12241 …her = ($eqeqeq($$$('Array'), other) ? (other.$to_a()) : (($coerce_to(other, $$$('Array'), 'to_ary'…
12248 …her = ($eqeqeq($$$('Array'), other) ? (other.$to_a()) : (($coerce_to(other, $$$('Array'), 'to_ary'…
12284 other = other.$to_a();
12286 other = other.$to_ary().$to_a();
12328 array = (array).$to_a();
12330 other = (other).$to_a();
12484 data = value.$to_a();
12486 data = value.$to_ary().$to_a();
12532 data = value.$to_a();
12534 data = value.$to_ary().$to_a();
12922 …her = ($eqeqeq($$$('Array'), other) ? (other.$to_a()) : (($coerce_to(other, $$$('Array'), 'to_ary'…
13012 return $send(arrays, 'reduce', [self.$to_a().$dup()], function $$24(a, b){
13032 } return $send(item, 'dig', $to_a(idxs));
13113 other = other.$to_a();
13289 array = (array).$to_a();
13524 return $send(arrays, 'reduce', [self.$to_a().$dup()], function $$31(a, b){
13916 …her = ($eqeqeq($$$('Array'), other) ? (other.$to_a()) : (($coerce_to(other, $$$('Array'), 'to_ary'…
14211 return self.$dup().$to_a()['$shuffle!'](rng);
14431 $def(self, '$to_a', function $$to_a() {
14484 …row = ($eqeqeq($$$('Array'), row) ? (row.$to_a()) : (($coerce_to(row, $$$('Array'), 'to_ary')).$to…
14652 …o_ary"))) ? ($ret_or_1) : ($Opal['$coerce_to!'](o, $$$('Enumerator'), "to_enum", "each"))).$to_a();
14684 klass.$$prototype.$to_a = function() {
14726 …, $rb_gt = Opal.rb_gt, $hash2 = Opal.hash2, $truthy = Opal.truthy, $to_a = Opal.to_a, $return_self…
15201 } return $send(item, 'dig', $to_a(keys));
15277 return $send(self.$dup(), 'except!', $to_a(keys));
15624 return $send(self.$dup(), 'merge!', $to_a(others), block.$to_proc());
15915 $def(self, '$to_a', function $$to_a() {
17205 …to,to_proc,respond_to?,class,succ,==,===,exclude_end?,eql?,begin,end,last,to_a,>,-@,-,to_i,coerce_…
17255 $def(self, '$to_a', function $$to_a() {
17256 var $yield = $$to_a.$$p || nil, self = this;
17258 $$to_a.$$p = null;
17262 … } return $send2(self, $find_super(self, 'to_a', $$to_a, false, true), 'to_a', [], $yield);
17348 } return self.$to_a().$last(n);
17526 } return $send(self.$to_a(), 'bsearch', [], block.$to_proc());
17562 …pal.Kernel, $defs = Opal.defs, $def = Opal.def, $send = Opal.send, $to_a = Opal.to_a, $return_self…
17635 out = $send(self, 'call', $to_a(args), block.$to_proc());
17648 out = $send(other, 'call', $to_a(args), block.$to_proc());
17793 …ce, $alias = Opal.alias, $Kernel = Opal.Kernel, $send = Opal.send, $to_a = Opal.to_a, nil = Opal.n…
17974 return $send(self.$bind(object), 'call', $to_a(args), block.$to_proc());
18003 …ce, $Kernel = Opal.Kernel, $gvars = Opal.gvars, $send = Opal.send, $to_a = Opal.to_a, $rb_plus = O…
18005 …+,!=,[],ord,getc,readchar,raise,gets,==,to_str,length,split,sub,sysread,>,to_a,each_line,enum_for,…
18096 if (ary.length > 0) $send(self, 'puts', $to_a((ary)));
18156 if ($truthy(($ret_or_1 = $send(self, 'gets', $to_a(args))))) {
18283 return self.$each_line(separator).$to_a();
18296 return $send(self, 'enum_for', ["each", sep].concat($to_a(args)))
18297 } while ($truthy((s = $send(self, 'gets', [sep].concat($to_a(args)))))) {
18450 …Opal.add_stubs('respond_to?,[],==,length,coerce_to?,nil?,to_a,raise,to_int,fetch,Integer,Float,to_…
18468 args = ary.$to_a();
19012 …aise,register,length,bytes,force_encoding,dup,bytesize,enum_for,each_byte,to_a,each_char,each_code…
19385 return (new String(self)).$each_byte().$to_a();
19387 self.bytes = ($truthy(($ret_or_1 = self.bytes)) ? ($ret_or_1) : (self.$each_byte().$to_a()));
19408 return self.$each_char().$to_a()
19431 } return self.$each_codepoint().$to_a();
21461 $def(self, '$to_a', function $$to_a() {
21528 …l.eqeq, $Opal = Opal.Opal, $send = Opal.send, $Class = Opal.Class, $to_a = Opal.to_a, $def = Opal.…
21530 …_,eql?,enum_for,+,name,each_pair,inspect,to_h,args,each_with_object,flatten,to_a,respond_to?,dig');
21592 $send(instance, 'initialize', $to_a(args));
21859 $def(self, '$to_a', function $$to_a() {
21903 return $send($send(self, 'map', [], block.$to_proc()), 'to_h', $to_a(self.$args()))
21921 return arg.$$is_range ? arg.$to_a() : arg;}).$flatten();
21946 } return $send(item, 'dig', $to_a(keys));
21950 return $alias(self, "values", "to_a");
21957 …ude,new,nil?,===,raise,each,add,merge,class,respond_to?,subtract,dup,join,to_a,equal?,instance_of?…
22015 return "#<Set: {" + (self.$to_a().$join(",")) + "}>"
22374 $def(self, '$to_a', function $$to_a() {
22944 …", false), $range("a", "z", false), $range("A", "Z", false)], 'map', [], "to_a".$to_proc()).$flatt…
23499 …fs, $to_ary = Opal.to_ary, $slice = Opal.slice, $send = Opal.send, $to_a = Opal.to_a, $return_ivar…
23595 return $$('Pathname').$new($send(self.path, 'sub', $to_a(args)));
23787 return $$('Pathname').$new($send($$('File'), 'join', $to_a(relpath_names)))