Lines Matching refs:kwargs
1823 var kwargs = parameters[parameters.length - 1];
1824 if (kwargs != null && Opal.respond_to(kwargs, '$to_hash', true)) {
1826 return kwargs;
1837 // @param given_args [Hash] all kwargs given to method
1838 // @param used_args [Object<String: true>] all keys used as named kwargs
2918 Opal.ensure_kwargs = function(kwargs) {
2919 if (kwargs == null) {
2921 } else if (kwargs.$$is_hash) {
2922 return kwargs;
2924 $raise(Opal.ArgumentError, 'expected kwargs');
2928 Opal.get_kwarg = function(kwargs, key) {
2929 if (!$has_own(kwargs.$$smap, key)) {
2932 return kwargs.$$smap[key];
4718 $def(self, '$clone', function $$clone($kwargs) {
4722 $kwargs = $ensure_kwargs($kwargs);
4724 freeze = $kwargs.$$smap["freeze"];if (freeze == null) freeze = nil;
4736 $def(self, '$initialize_clone', function $$initialize_clone(other, $kwargs) {
4740 $kwargs = $ensure_kwargs($kwargs);
4742 $kwargs.$$smap["freeze"]; self.$initialize_copy(other);
5248 var $post_args, $kwargs, strs, uplevel, $c, $d, self = this, location = nil;
5254 $kwargs = $extract_kwargs($post_args);
5255 $kwargs = $ensure_kwargs($kwargs);
5258 uplevel = $kwargs.$$smap["uplevel"];if (uplevel == null) uplevel = nil;
5381 $def(self, '$require_tree', function $$require_tree(path, $kwargs) {
5385 $kwargs = $ensure_kwargs($kwargs);
5387 autoload = $kwargs.$$smap["autoload"];if (autoload == null) autoload = false;
5771 $def(self, '$full_message', function $$full_message(kwargs) {
5776 if (kwargs == null) kwargs = nil;
5779 …} kwargs = $hash2(["highlight", "order"], {"highlight": $gvars.stderr['$tty?'](), "order": "t…
5780 … $b = [kwargs['$[]']("highlight"), kwargs['$[]']("order")], (highlight = $b[0]), (order = $b[1]);
5910 return $def(self, '$initialize', function $$initialize(message, $kwargs) {
5915 $kwargs = $ensure_kwargs($kwargs);
5917 receiver = $kwargs.$$smap["receiver"];if (receiver == null) receiver = nil;
5988 $def(self, '$initialize', function $$initialize(message, $kwargs) {
5993 $kwargs = $ensure_kwargs($kwargs);
5995 receiver = $kwargs.$$smap["receiver"];if (receiver == null) receiver = nil;
5997 key = $kwargs.$$smap["key"];if (key == null) key = nil;
6105 $def(self, '$clone', function $$clone($kwargs) {
6108 $kwargs = $ensure_kwargs($kwargs);
6110 $kwargs.$$smap["freeze"]; return nil;
6262 $def(self, '$clone', function $$clone($kwargs) {
6266 $kwargs = $ensure_kwargs($kwargs);
6268 $kwargs.$$smap["freeze"]; return self;
6787 $def(self, '$initialize', function $$initialize(regexp, match_groups, $kwargs) {
6791 $kwargs = $ensure_kwargs($kwargs);
6793 no_matchdata = $kwargs.$$smap["no_matchdata"];if (no_matchdata == null) no_matchdata = false;
7038 var $post_args, $kwargs;
7042 $kwargs = $extract_kwargs($post_args);
7043 $kwargs = $ensure_kwargs($kwargs);
7046 $kwargs.$$smap["encoding"];
7047 $kwargs.$$smap["capacity"]; return nil;
7374 $def(self, '$clone', function $$clone($kwargs) {
7378 $kwargs = $ensure_kwargs($kwargs);
7380 freeze = $kwargs.$$smap["freeze"];if (freeze == null) freeze = nil;
7475 var block = $$each_line.$$p || nil, $post_args, $kwargs, separator, chomp, self = this;
7480 $kwargs = $extract_kwargs($post_args);
7481 $kwargs = $ensure_kwargs($kwargs);
7485 chomp = $kwargs.$$smap["chomp"];if (chomp == null) chomp = false;
7746 var block = $$lines.$$p || nil, $post_args, $kwargs, separator, chomp, self = this, e = nil;
7751 $kwargs = $extract_kwargs($post_args);
7752 $kwargs = $ensure_kwargs($kwargs);
7756 chomp = $kwargs.$$smap["chomp"];if (chomp == null) chomp = false;
8104 $def(self, '$scan', function $$scan(pattern, $kwargs) {
8108 $kwargs = $ensure_kwargs($kwargs);
8110 no_matchdata = $kwargs.$$smap["no_matchdata"];if (no_matchdata == null) no_matchdata = false;
11814 …var block = $$step.$$p || nil, $post_args, $kwargs, limit, step, to, by, self = this, counter = ni…
11818 $kwargs = $extract_kwargs($post_args);
11819 $kwargs = $ensure_kwargs($kwargs);
11823 to = $kwargs.$$smap["to"];
11824 by = $kwargs.$$smap["by"];
12017 $def(self, '$clone', function $$clone($kwargs) {
12021 $kwargs = $ensure_kwargs($kwargs);
12023 $kwargs.$$smap["freeze"]; return self;
17703 $def(self, '$parameters', function $$parameters($kwargs) {
17707 $kwargs = $ensure_kwargs($kwargs);
17709 lambda = $kwargs.$$smap["lambda"];
21550 …var block = $Struct_new$1.$$p || nil, $post_args, $kwargs, args, keyword_init, self = this, klass …
21554 $kwargs = $extract_kwargs($post_args);
21555 $kwargs = $ensure_kwargs($kwargs);
21558 keyword_init = $kwargs.$$smap["keyword_init"];if (keyword_init == null) keyword_init = false;
21650 var $post_args, args, self = this, kwargs = nil, $ret_or_1 = nil, extra = nil;
21657 kwargs = ($truthy(($ret_or_1 = args.$last())) ? ($ret_or_1) : ($hash2([], {})));
21658 … if (($truthy($rb_gt(args.$length(), 1)) || ($truthy((args.length === 1 && !kwargs.$$is_hash))))) {
21660 } extra = $rb_minus(kwargs.$keys(), self.$class().$members());
21667 …return ($b = [name, kwargs['$[]'](name)], $send(self, '[]=', $b), $b[$b.length - 1]);}, {$$s: self…