Lines Matching refs:kwargs
1814 var kwargs = parameters[parameters.length - 1];
1815 if (kwargs != null && Opal.respond_to(kwargs, '$to_hash', true)) {
1817 return kwargs;
1828 // @param given_args [Hash] all kwargs given to method
1829 // @param used_args [Object<String: true>] all keys used as named kwargs
2909 Opal.ensure_kwargs = function(kwargs) { argument
2910 if (kwargs == null) {
2912 } else if (kwargs.$$is_hash) {
2913 return kwargs;
2915 $raise(Opal.ArgumentError, 'expected kwargs');
2919 Opal.get_kwarg = function(kwargs, key) { argument
2920 if (!$has_own(kwargs.$$smap, key)) {
2923 return kwargs.$$smap[key];
4709 $def(self, '$clone', function $$clone($kwargs) { argument
4713 $kwargs = $ensure_kwargs($kwargs);
4715 freeze = $kwargs.$$smap["freeze"];if (freeze == null) freeze = nil;
4727 $def(self, '$initialize_clone', function $$initialize_clone(other, $kwargs) { argument
4731 $kwargs = $ensure_kwargs($kwargs);
4733 $kwargs.$$smap["freeze"]; self.$initialize_copy(other);
5239 var $post_args, $kwargs, strs, uplevel, $c, $d, self = this, location = nil;
5245 $kwargs = $extract_kwargs($post_args);
5246 $kwargs = $ensure_kwargs($kwargs);
5249 uplevel = $kwargs.$$smap["uplevel"];if (uplevel == null) uplevel = nil;
5372 $def(self, '$require_tree', function $$require_tree(path, $kwargs) { argument
5376 $kwargs = $ensure_kwargs($kwargs);
5378 autoload = $kwargs.$$smap["autoload"];if (autoload == null) autoload = false;
5762 $def(self, '$full_message', function $$full_message(kwargs) { argument
5767 if (kwargs == null) kwargs = nil;
5770 …} kwargs = $hash2(["highlight", "order"], {"highlight": $gvars.stderr['$tty?'](), "order": "t…
5771 … $b = [kwargs['$[]']("highlight"), kwargs['$[]']("order")], (highlight = $b[0]), (order = $b[1]);
5901 return $def(self, '$initialize', function $$initialize(message, $kwargs) { argument
5906 $kwargs = $ensure_kwargs($kwargs);
5908 receiver = $kwargs.$$smap["receiver"];if (receiver == null) receiver = nil;
5979 $def(self, '$initialize', function $$initialize(message, $kwargs) { argument
5984 $kwargs = $ensure_kwargs($kwargs);
5986 receiver = $kwargs.$$smap["receiver"];if (receiver == null) receiver = nil;
5988 key = $kwargs.$$smap["key"];if (key == null) key = nil;
6096 $def(self, '$clone', function $$clone($kwargs) { argument
6099 $kwargs = $ensure_kwargs($kwargs);
6101 $kwargs.$$smap["freeze"]; return nil;
6253 $def(self, '$clone', function $$clone($kwargs) { argument
6257 $kwargs = $ensure_kwargs($kwargs);
6259 $kwargs.$$smap["freeze"]; return self;
6778 $def(self, '$initialize', function $$initialize(regexp, match_groups, $kwargs) { argument
6782 $kwargs = $ensure_kwargs($kwargs);
6784 no_matchdata = $kwargs.$$smap["no_matchdata"];if (no_matchdata == null) no_matchdata = false;
7029 var $post_args, $kwargs;
7033 $kwargs = $extract_kwargs($post_args);
7034 $kwargs = $ensure_kwargs($kwargs);
7037 $kwargs.$$smap["encoding"];
7038 $kwargs.$$smap["capacity"]; return nil;
7365 $def(self, '$clone', function $$clone($kwargs) { argument
7369 $kwargs = $ensure_kwargs($kwargs);
7371 freeze = $kwargs.$$smap["freeze"];if (freeze == null) freeze = nil;
7466 var block = $$each_line.$$p || nil, $post_args, $kwargs, separator, chomp, self = this;
7471 $kwargs = $extract_kwargs($post_args);
7472 $kwargs = $ensure_kwargs($kwargs);
7476 chomp = $kwargs.$$smap["chomp"];if (chomp == null) chomp = false;
7737 var block = $$lines.$$p || nil, $post_args, $kwargs, separator, chomp, self = this, e = nil;
7742 $kwargs = $extract_kwargs($post_args);
7743 $kwargs = $ensure_kwargs($kwargs);
7747 chomp = $kwargs.$$smap["chomp"];if (chomp == null) chomp = false;
8095 $def(self, '$scan', function $$scan(pattern, $kwargs) { argument
8099 $kwargs = $ensure_kwargs($kwargs);
8101 no_matchdata = $kwargs.$$smap["no_matchdata"];if (no_matchdata == null) no_matchdata = false;
11805 …var block = $$step.$$p || nil, $post_args, $kwargs, limit, step, to, by, self = this, counter = ni…
11809 $kwargs = $extract_kwargs($post_args);
11810 $kwargs = $ensure_kwargs($kwargs);
11814 to = $kwargs.$$smap["to"];
11815 by = $kwargs.$$smap["by"];
12008 $def(self, '$clone', function $$clone($kwargs) { argument
12012 $kwargs = $ensure_kwargs($kwargs);
12014 $kwargs.$$smap["freeze"]; return self;
17694 $def(self, '$parameters', function $$parameters($kwargs) { argument
17698 $kwargs = $ensure_kwargs($kwargs);
17700 lambda = $kwargs.$$smap["lambda"];
21541 …var block = $Struct_new$1.$$p || nil, $post_args, $kwargs, args, keyword_init, self = this, klass …
21545 $kwargs = $extract_kwargs($post_args);
21546 $kwargs = $ensure_kwargs($kwargs);
21549 keyword_init = $kwargs.$$smap["keyword_init"];if (keyword_init == null) keyword_init = false;
21641 var $post_args, args, self = this, kwargs = nil, $ret_or_1 = nil, extra = nil;
21648 kwargs = ($truthy(($ret_or_1 = args.$last())) ? ($ret_or_1) : ($hash2([], {})));
21649 … if (($truthy($rb_gt(args.$length(), 1)) || ($truthy((args.length === 1 && !kwargs.$$is_hash))))) {
21651 } extra = $rb_minus(kwargs.$keys(), self.$class().$members());
21658 …return ($b = [name, kwargs['$[]'](name)], $send(self, '[]=', $b), $b[$b.length - 1]);}, {$$s: self…