Lines Matching refs:const_set
440 function $const_set(cref, name, value) {
477 Opal.const_set = $const_set;
713 $const_set(scope, name, klass);
802 $const_set(scope, name, module);
2967 // BasicObject can reach itself, avoid const_set to skip the $$base_module logic
2971 $const_set(_Object, "BasicObject", BasicObject);
2972 $const_set(_Object, "Object", _Object);
2973 $const_set(_Object, "Module", Module);
2974 $const_set(_Object, "Class", Class);
2975 $const_set(_Object, "Opal", _Opal);
2976 $const_set(_Object, "Kernel", Kernel);
3015 $const_set(_Object, 'NilClass', Opal.NilClass);
3236 …var $truthy = Opal.truthy, $coerce_to = Opal.coerce_to, $const_set = Opal.const_set, $Object = Opa…
3669 $def(self, '$const_set', function $$const_set(name, value) {
3677 } $const_set(self, name, value);
4109 $const_set(self, name, other_constants[name]);
6023 var $const_set = Opal.const_set; Opal.nil; var $$$ = Opal.$$$;
6026 $const_set('::', 'RUBY_PLATFORM', "opal");
6027 $const_set('::', 'RUBY_ENGINE', "opal");
6028 $const_set('::', 'RUBY_VERSION', "3.2.0");
6029 $const_set('::', 'RUBY_ENGINE_VERSION', "1.7.3");
6030 $const_set('::', 'RUBY_RELEASE_DATE', "2023-03-23");
6031 $const_set('::', 'RUBY_PATCHLEVEL', 0);
6032 $const_set('::', 'RUBY_REVISION', "0");
6033 …$const_set('::', 'RUBY_COPYRIGHT', "opal - Copyright (C) 2011-2023 Adam Beynon and the Opal contri…
6034 …return $const_set('::', 'RUBY_DESCRIPTION', "opal " + ($$$('RUBY_ENGINE_VERSION')) + " (" + ($$$('…
6420 …prop = Opal.prop, $freeze = Opal.freeze, $klass = Opal.klass, $const_set = Opal.const_set, $send2 …
6431 $const_set(self, 'IGNORECASE', 1);
6432 $const_set(self, 'EXTENDED', 2);
6433 $const_set(self, 'MULTILINE', 4);
6985 … $eqeq = Opal.eqeq, $hash2 = Opal.hash2, $alias = Opal.alias, $const_set = Opal.const_set, self = …
9043 return $const_set($nesting[0], 'Symbol', $$('String'));
16129 …al.rb_le, $rb_ge = Opal.rb_ge, $return_val = Opal.return_val, $const_set = Opal.const_set, self = …
17130 $const_set('::', 'Fixnum', $$$('Number'));
17168 $const_set(self, 'MAX', Math.pow(2, 30) - 1);
17169 return $const_set(self, 'MIN', -Math.pow(2, 30));
17191 $const_set(self, 'INFINITY', Infinity);
17192 $const_set(self, 'MAX', Number.MAX_VALUE);
17193 $const_set(self, 'MIN', Number.MIN_VALUE);
17194 $const_set(self, 'NAN', NaN);
17195 $const_set(self, 'DIG', 15);
17196 $const_set(self, 'MANT_DIG', 53);
17197 $const_set(self, 'RADIX', 2);
17198 return $const_set(self, 'EPSILON', Number.EPSILON || 2.2204460492503130808472633361816E-16);
17985 …var $gvars = Opal.gvars, $const_set = Opal.const_set, $Object = Opal.Object, $hash2 = Opal.hash2, …
17994 $const_set('::', 'ARGV', []);
17995 $const_set('::', 'ARGF', $Object.$new());
17996 $const_set('::', 'ENV', $hash2([], {}));
18003 …var $klass = Opal.klass, $const_set = Opal.const_set, $not = Opal.not, $truthy = Opal.truthy, $def…
18014 $const_set(self, 'SEEK_SET', 0);
18015 $const_set(self, 'SEEK_CUR', 1);
18016 $const_set(self, 'SEEK_END', 2);
18017 $const_set(self, 'SEEK_DATA', 3);
18018 $const_set(self, 'SEEK_HOLE', 4);
18019 $const_set(self, 'READABLE', 1);
18020 $const_set(self, 'WRITABLE', 4);
18394 $const_set('::', 'STDIN', ($gvars.stdin = $$$('IO').$new(0, "r")));
18395 $const_set('::', 'STDOUT', ($gvars.stdout = $$$('IO').$new(1, "w")));
18396 $const_set('::', 'STDERR', ($gvars.stderr = $$$('IO').$new(2, "w")));
18404 …var $module = Opal.module, $const_set = Opal.const_set, $nesting = []; Opal.nil; var $$$ = Opal.$$…
18413 $const_set(self, 'REGEXP_START', "^");
18414 $const_set(self, 'REGEXP_END', "$");
18415 …$const_set(self, 'FORBIDDEN_STARTING_IDENTIFIER_CHARS', "\\u0001-\\u002F\\u003A-\\u0040\\u005B-\\u…
18416 …$const_set(self, 'FORBIDDEN_ENDING_IDENTIFIER_CHARS', "\\u0001-\\u0020\\u0022-\\u002F\\u003A-\\u00…
18417 …$const_set(self, 'INLINE_IDENTIFIER_REGEXP', $$('Regexp').$new("[^" + ($$$(self, 'FORBIDDEN_STARTI…
18418 …$const_set(self, 'FORBIDDEN_CONST_NAME_CHARS', "\\u0001-\\u0020\\u0021-\\u002F\\u003B-\\u003F\\u00…
18419 …return $const_set(self, 'CONST_NAME_REGEXP', $$('Regexp').$new("" + ($$$(self, 'REGEXP_START')) + …
19012 …Opal.add_stubs('require,+,[],clone,initialize,new,instance_eval,to_proc,each,const_set,tr,==,defau…
19043 self.$const_set(encoding_name.$tr("-", "_"), encoding);
19480 …var $type_error = Opal.type_error, $module = Opal.module, $const_set = Opal.const_set, $Class = Op…
19489 $const_set(self, 'E', Math.E);
19490 $const_set(self, 'PI', Math.PI);
19491 $const_set(self, 'DomainError', $Class.$new($$$('StandardError')));
19814 …al.rb_gt, $neqeq = Opal.neqeq, $return_val = Opal.return_val, $const_set = Opal.const_set, $alias …
20141 $const_set($nesting[0], 'I', self.$new(0, 1));
21530 …e_struct_attribute,allocate,initialize,alias_method,module_eval,to_proc,const_set,raise,<<,members…
21601 $$$('Struct').$const_set(const_name, klass);
22439 …var $truthy = Opal.truthy, $klass = Opal.klass, $const_set = Opal.const_set, $Opal = Opal.Opal, $r…
22448 $const_set($nesting[0], 'Separator', $const_set($nesting[0], 'SEPARATOR', "/"));
22449 $const_set($nesting[0], 'ALT_SEPARATOR', nil);
22450 $const_set($nesting[0], 'PATH_SEPARATOR', ":");
22451 $const_set($nesting[0], 'FNM_SYSCASE', 0);
22726 Opal.add_stubs('const_set,size,<<,__register_clock__,to_f,now,new,[],raise');
22739 self.$const_set(name, self.__clocks__.$size());
22955 …var $klass = Opal.klass, $const_set = Opal.const_set, $send = Opal.send, nil = Opal.nil, $$$ = Opa…
23047 $const_set(self, 'MERSENNE_TWISTER_GENERATOR', {
23059 …=,==,state,_verify_count,encode,join,new,chr,random_number,random_float,const_defined?,const_set');
23171 return self.$const_set("DEFAULT", self.$new(self.$new_seed()))
23499 …var $klass = Opal.klass, $const_set = Opal.const_set, $regexp = Opal.regexp, $eqeqeq = Opal.eqeqeq…
23512 …$const_set($nesting[0], 'SEPARATOR_PAT', $regexp([$$('Regexp').$quote($$$($$('File'), 'SEPARATOR')…
23744 …$const_set($nesting[0], 'SAME_PATHS', ($truthy($$$($$('File'), 'FNM_SYSCASE')['$nonzero?']()) ? ($…