Lines Matching refs:const_set
449 function $const_set(cref, name, value) {
486 Opal.const_set = $const_set;
722 $const_set(scope, name, klass);
811 $const_set(scope, name, module);
2976 // BasicObject can reach itself, avoid const_set to skip the $$base_module logic
2980 $const_set(_Object, "BasicObject", BasicObject);
2981 $const_set(_Object, "Object", _Object);
2982 $const_set(_Object, "Module", Module);
2983 $const_set(_Object, "Class", Class);
2984 $const_set(_Object, "Opal", _Opal);
2985 $const_set(_Object, "Kernel", Kernel);
3024 $const_set(_Object, 'NilClass', Opal.NilClass);
3245 …var $truthy = Opal.truthy, $coerce_to = Opal.coerce_to, $const_set = Opal.const_set, $Object = Opa…
3678 $def(self, '$const_set', function $$const_set(name, value) {
3686 } $const_set(self, name, value);
4118 $const_set(self, name, other_constants[name]);
6032 var $const_set = Opal.const_set; Opal.nil; var $$$ = Opal.$$$;
6035 $const_set('::', 'RUBY_PLATFORM', "opal");
6036 $const_set('::', 'RUBY_ENGINE', "opal");
6037 $const_set('::', 'RUBY_VERSION', "3.2.0");
6038 $const_set('::', 'RUBY_ENGINE_VERSION', "1.7.3");
6039 $const_set('::', 'RUBY_RELEASE_DATE', "2023-03-23");
6040 $const_set('::', 'RUBY_PATCHLEVEL', 0);
6041 $const_set('::', 'RUBY_REVISION', "0");
6042 …$const_set('::', 'RUBY_COPYRIGHT', "opal - Copyright (C) 2011-2023 Adam Beynon and the Opal contri…
6043 …return $const_set('::', 'RUBY_DESCRIPTION', "opal " + ($$$('RUBY_ENGINE_VERSION')) + " (" + ($$$('…
6429 …prop = Opal.prop, $freeze = Opal.freeze, $klass = Opal.klass, $const_set = Opal.const_set, $send2 …
6440 $const_set(self, 'IGNORECASE', 1);
6441 $const_set(self, 'EXTENDED', 2);
6442 $const_set(self, 'MULTILINE', 4);
6994 … $eqeq = Opal.eqeq, $hash2 = Opal.hash2, $alias = Opal.alias, $const_set = Opal.const_set, self = …
9052 return $const_set($nesting[0], 'Symbol', $$('String'));
16138 …al.rb_le, $rb_ge = Opal.rb_ge, $return_val = Opal.return_val, $const_set = Opal.const_set, self = …
17139 $const_set('::', 'Fixnum', $$$('Number'));
17177 $const_set(self, 'MAX', Math.pow(2, 30) - 1);
17178 return $const_set(self, 'MIN', -Math.pow(2, 30));
17200 $const_set(self, 'INFINITY', Infinity);
17201 $const_set(self, 'MAX', Number.MAX_VALUE);
17202 $const_set(self, 'MIN', Number.MIN_VALUE);
17203 $const_set(self, 'NAN', NaN);
17204 $const_set(self, 'DIG', 15);
17205 $const_set(self, 'MANT_DIG', 53);
17206 $const_set(self, 'RADIX', 2);
17207 return $const_set(self, 'EPSILON', Number.EPSILON || 2.2204460492503130808472633361816E-16);
17994 …var $gvars = Opal.gvars, $const_set = Opal.const_set, $Object = Opal.Object, $hash2 = Opal.hash2, …
18003 $const_set('::', 'ARGV', []);
18004 $const_set('::', 'ARGF', $Object.$new());
18005 $const_set('::', 'ENV', $hash2([], {}));
18012 …var $klass = Opal.klass, $const_set = Opal.const_set, $not = Opal.not, $truthy = Opal.truthy, $def…
18023 $const_set(self, 'SEEK_SET', 0);
18024 $const_set(self, 'SEEK_CUR', 1);
18025 $const_set(self, 'SEEK_END', 2);
18026 $const_set(self, 'SEEK_DATA', 3);
18027 $const_set(self, 'SEEK_HOLE', 4);
18028 $const_set(self, 'READABLE', 1);
18029 $const_set(self, 'WRITABLE', 4);
18403 $const_set('::', 'STDIN', ($gvars.stdin = $$$('IO').$new(0, "r")));
18404 $const_set('::', 'STDOUT', ($gvars.stdout = $$$('IO').$new(1, "w")));
18405 $const_set('::', 'STDERR', ($gvars.stderr = $$$('IO').$new(2, "w")));
18413 …var $module = Opal.module, $const_set = Opal.const_set, $nesting = []; Opal.nil; var $$$ = Opal.$$…
18422 $const_set(self, 'REGEXP_START', "^");
18423 $const_set(self, 'REGEXP_END', "$");
18424 …$const_set(self, 'FORBIDDEN_STARTING_IDENTIFIER_CHARS', "\\u0001-\\u002F\\u003A-\\u0040\\u005B-\\u…
18425 …$const_set(self, 'FORBIDDEN_ENDING_IDENTIFIER_CHARS', "\\u0001-\\u0020\\u0022-\\u002F\\u003A-\\u00…
18426 …$const_set(self, 'INLINE_IDENTIFIER_REGEXP', $$('Regexp').$new("[^" + ($$$(self, 'FORBIDDEN_STARTI…
18427 …$const_set(self, 'FORBIDDEN_CONST_NAME_CHARS', "\\u0001-\\u0020\\u0021-\\u002F\\u003B-\\u003F\\u00…
18428 …return $const_set(self, 'CONST_NAME_REGEXP', $$('Regexp').$new("" + ($$$(self, 'REGEXP_START')) + …
19021 …Opal.add_stubs('require,+,[],clone,initialize,new,instance_eval,to_proc,each,const_set,tr,==,defau…
19052 self.$const_set(encoding_name.$tr("-", "_"), encoding);
19489 …var $type_error = Opal.type_error, $module = Opal.module, $const_set = Opal.const_set, $Class = Op…
19498 $const_set(self, 'E', Math.E);
19499 $const_set(self, 'PI', Math.PI);
19500 $const_set(self, 'DomainError', $Class.$new($$$('StandardError')));
19823 …al.rb_gt, $neqeq = Opal.neqeq, $return_val = Opal.return_val, $const_set = Opal.const_set, $alias …
20150 $const_set($nesting[0], 'I', self.$new(0, 1));
21539 …e_struct_attribute,allocate,initialize,alias_method,module_eval,to_proc,const_set,raise,<<,members…
21610 $$$('Struct').$const_set(const_name, klass);
22448 …var $truthy = Opal.truthy, $klass = Opal.klass, $const_set = Opal.const_set, $Opal = Opal.Opal, $r…
22457 $const_set($nesting[0], 'Separator', $const_set($nesting[0], 'SEPARATOR', "/"));
22458 $const_set($nesting[0], 'ALT_SEPARATOR', nil);
22459 $const_set($nesting[0], 'PATH_SEPARATOR', ":");
22460 $const_set($nesting[0], 'FNM_SYSCASE', 0);
22735 Opal.add_stubs('const_set,size,<<,__register_clock__,to_f,now,new,[],raise');
22748 self.$const_set(name, self.__clocks__.$size());
22964 …var $klass = Opal.klass, $const_set = Opal.const_set, $send = Opal.send, nil = Opal.nil, $$$ = Opa…
23056 $const_set(self, 'MERSENNE_TWISTER_GENERATOR', {
23068 …=,==,state,_verify_count,encode,join,new,chr,random_number,random_float,const_defined?,const_set');
23180 return self.$const_set("DEFAULT", self.$new(self.$new_seed()))
23376 …var $module = Opal.module, $const_set = Opal.const_set, $eqeq = Opal.eqeq, $lambda = Opal.lambda, …
23385 return $const_set($nesting[0], 'VERSION', process.version)
23388 $const_set($nesting[0], 'ARGV', process.argv.slice(2));
23417 …var $truthy = Opal.truthy, $klass = Opal.klass, $const_set = Opal.const_set, $Opal = Opal.Opal, $r…
23426 $const_set($nesting[0], 'Separator', $const_set($nesting[0], 'SEPARATOR', "/"));
23427 $const_set($nesting[0], 'ALT_SEPARATOR', nil);
23428 $const_set($nesting[0], 'PATH_SEPARATOR', ":");
23429 $const_set($nesting[0], 'FNM_SYSCASE', 0);
23679 …var $klass = Opal.klass, $truthy = Opal.truthy, $const_set = Opal.const_set, $defs = Opal.defs, $a…
23807 $const_set($nesting[0], 'ALT_SEPARATOR', __path__.sep);
24203 …var $const_set = Opal.const_set, $return_val = Opal.return_val, $def = Opal.def, $eqeq = Opal.eqeq…
24207 $const_set($nesting[0], 'ARGF', $$('Object').$new());
24550 …var $klass = Opal.klass, $const_set = Opal.const_set, $regexp = Opal.regexp, $eqeqeq = Opal.eqeqeq…
24563 …$const_set($nesting[0], 'SEPARATOR_PAT', $regexp([$$('Regexp').$quote($$$($$('File'), 'SEPARATOR')…
24795 …$const_set($nesting[0], 'SAME_PATHS', ($truthy($$$($$('File'), 'FNM_SYSCASE')['$nonzero?']()) ? ($…
24900 …var $const_set = Opal.const_set, $def = Opal.def, $truthy = Opal.truthy, $return_val = Opal.return…
24904 $const_set($nesting[0], 'ENV', $$('Object').$new());
25130 …var $klass = Opal.klass, $const_set = Opal.const_set, $regexp = Opal.regexp, $eqeqeq = Opal.eqeqeq…
25143 …$const_set($nesting[0], 'SEPARATOR_PAT', $regexp([$$('Regexp').$quote($$$($$('File'), 'SEPARATOR')…
25375 …$const_set($nesting[0], 'SAME_PATHS', ($truthy($$$($$('File'), 'FNM_SYSCASE')['$nonzero?']()) ? ($…