Lines Matching refs:Opal

47   if (typeof(global_object.Opal) !== 'undefined') {
48 console.warn('Opal already loaded. Loading twice can cause troubles, please fix your setup.');
49 return global_object.Opal;
67 // The Opal.Opal class (helpers etc.)
73 // The Opal object that is exposed globally
74 var Opal = global_object.Opal = {};
77 Opal.global = global_object;
80 Opal.config = {
106 } Opal.uid = $uid;
109 Opal.id = function(obj) {
118 var $gvars = Opal.gvars = {};
122 Opal.exit = function(status) { if ($gvars.DEBUG) console.log('Exited with status '+status); };
125 Opal.exceptions = [];
129 Opal.pop_exception = function() {
130 var exception = Opal.exceptions.pop();
144 if (!klass) klass = Opal.Exception || Error;
182 Opal.prop = $prop;
185 Opal.defineProperty = Opal.prop;
187 Opal.slice = $slice;
192 var $truthy = Opal.truthy = function(val) {
196 Opal.falsy = function(val) {
200 Opal.type_error = function(object, type, method, coerced) {
205 $raise(Opal.TypeError,
210 $raise(Opal.TypeError,
216 Opal.coerce_to = function(object, type, method, args) {
219 if (method === 'to_int' && type === Opal.Integer && object.$$is_number)
222 if (method === 'to_str' && type === Opal.String && object.$$is_string)
225 if (Opal.is_a(object, type)) return object;
230 if (body == null || body.$$stub) Opal.type_error(object, type);
235 Opal.type_error(object, type);
239 return Opal.send(object, method, args);
242 Opal.respond_to = function(obj, jsid, include_all) {
252 return Opal.send(obj, obj['$respond_to_missing?'], [jsid.substr(1), include_all]);
255 return Opal.send(obj, obj['$respond_to?'], [jsid.substr(1), include_all]);
263 Opal.trace_class = false;
264 Opal.tracers_for_class = [];
269 for(i = 0, ii = Opal.tracers_for_class.length; i < ii; i++) {
270 tracer = Opal.tracers_for_class[i];
280 Opal.Kernel.$require(cref.$$autoload[name].path);
366 Opal.const_get_local = function(cref, name, skip_missing) {
374 $raise(Opal.TypeError, cref.toString() + " is not a class/module");
383 Opal.const_get_qualified = function(cref, name, skip_missing) {
384 var result, cache, cached, current_version = Opal.const_cache_version;
391 return Opal.const_get_qualified(_Object, cref, skip_missing);
399 $raise(Opal.TypeError, cref.toString() + " is not a class/module");
420 Opal.const_cache_version = 1;
424 Opal.const_get_relative = function(nesting, name, skip_missing) {
425 var cref = nesting[0], result, current_version = Opal.const_cache_version, cache, cached;
469 // Opal.$$.Regexp.$$.IGNORECASE
472 Opal.const_cache_version++;
474 // Expose top level constants onto the Opal object
475 if (cref === _Object) Opal[name] = value;
477 // Name new class directly onto current scope (Opal.Foo.Baz = klass)
486 Opal.const_set = $const_set;
490 Opal.constants = function(cref, inherit) {
496 …if (inherit && cref.$$is_module) modules = modules.concat([Opal.Object]).concat($ancestors(Opal.Ob…
518 Opal.const_remove = function(cref, name) {
519 Opal.const_cache_version++;
532 $raise(Opal.NameError, "constant "+cref+"::"+cref.$name()+" not defined");
536 Opal.const_get_relative_factory = function(nesting) {
538 return Opal.$$(nesting, name, skip_missing);
543 Opal.$$ = Opal.const_get_relative;
544 Opal.$$$ = Opal.const_get_qualified;
545 Opal.$r = Opal.const_get_relative_factory;
617 if (Opal.Class) {
618 $set_proto(klass, Opal.Class.prototype);
647 Opal.build_class_singleton_class(klass);
652 } Opal.allocate_class = $allocate_class;
663 $raise(Opal.TypeError, name + " is not a class");
672 $raise(Opal.TypeError, "superclass mismatch for class " + klass.$$name);
676 Opal.klass = function(scope, superclass, name) {
687 // If the superclass is not an Opal-generated class then we're bridging a native JS class
697 $raise(Opal.TypeError, "superclass must be a Class (" + (
730 Opal.bridge(bridged, klass);
734 if (Opal.trace_class) { invoke_tracers_for_class(klass); }
777 $set_proto(module, Opal.Module.prototype);
780 } Opal.allocate_module = $allocate_module;
788 $raise(Opal.TypeError, name + " is not a module");
795 Opal.module = function(scope, name) {
814 if (Opal.trace_class) { invoke_tracers_for_class(module); }
830 Opal.get_singleton_class = function(object) {
832 $raise(Opal.TypeError, "can't define singleton");
839 return Opal.build_class_singleton_class(object);
841 return Opal.build_module_singleton_class(object);
843 return Opal.build_object_singleton_class(object);
872 Opal.build_class_singleton_class = function(klass) {
880 var superclass = klass === BasicObject ? Class : Opal.get_singleton_class(klass.$$super);
888 $prop(klass, '$$class', Opal.Class);
893 Opal.build_module_singleton_class = function(mod) {
898 var meta = $allocate_class(null, Opal.Module, true);
904 $prop(mod, '$$class', Opal.Module);
913 Opal.build_object_singleton_class = function(object) {
927 Opal.is_method = function(prop) {
931 Opal.instance_methods = function(mod) {
947 if (Opal.is_method(prop)) {
965 Opal.own_instance_methods = function(mod) {
978 if (Opal.is_method(prop)) {
991 Opal.methods = function(obj) {
992 return Opal.instance_methods(obj.$$meta || obj.$$class);
995 Opal.own_methods = function(obj) {
996 return obj.$$meta ? Opal.own_instance_methods(obj.$$meta) : [];
999 Opal.receiver_methods = function(obj) {
1000 var mod = Opal.get_singleton_class(obj);
1001 var singleton_methods = Opal.own_instance_methods(mod);
1002 var instance_methods = Opal.own_instance_methods(mod.$$super);
1012 Opal.class_variables = function(module) {
1034 Opal.class_variable_set = function(module, name, value) {
1056 Opal.class_variable_get = function(module, name, tolerant) {
1072 $raise(Opal.NameError, 'uninitialized class variable '+name+' in '+module.$name());
1139 Opal.append_features = function(module, includer) {
1144 $raise(Opal.ArgumentError, 'cyclic include detected');
1226 Opal.const_cache_version++;
1229 Opal.prepend_features = function(module, prepender) {
1249 $raise(Opal.ArgumentError, 'cyclic prepend detected');
1305 $raise(Opal.RuntimeError, "Prepending a module multiple times is not supported");
1314 Opal.const_cache_version++;
1323 if (Opal.is_method(prop)) {
1394 // Opal.bridge(self, Function);
1400 Opal.bridge = function(native_klass, klass) {
1402 $raise(Opal.ArgumentError, "already bridged");
1414 // - Opal.Object
1415 // - Opal.Kernel
1416 // - Opal.BasicObject
1421 $set_proto(native_klass.prototype, (klass.$$super || Opal.Object).$$prototype);
1447 if (module.$$ancestors_cache_version === Opal.const_cache_version) {
1463 module.$$ancestors_cache_version = Opal.const_cache_version;
1467 } Opal.ancestors = $ancestors;
1469 Opal.included_modules = function(module) {
1505 // Opal.add_stubs("foo,bar,baz=");
1513 Opal.add_stubs = function(stubs) {
1514 var proto = Opal.BasicObject.$$prototype;
1522 Opal.add_stub_for(proto, stub);
1533 Opal.add_stub_for = function(prototype, stub) {
1534 // Opal.stub_for(stub) is the method_missing_stub
1535 $prop(prototype, stub, Opal.stub_for(stub));
1542 Opal.stub_for = function(method_name) {
1574 Opal.ac = function(actual, expected, object, meth) {
1584 …$raise(Opal.ArgumentError, '[' + inspect + '] wrong number of arguments (given ' + actual + ', exp…
1593 Opal.block_ac = function(actual, expected, context) {
1596 …$raise(Opal.ArgumentError, inspect + ': wrong number of arguments (given ' + actual + ', expected …
1607 Opal.find_super = function(obj, mid, current_func, defcheck, allow_stubs) {
1630 $raise(Opal.NoMethodError, 'super: no superclass method `'+mid+"' for "+obj, mid);
1637 Opal.find_block_super = function(obj, jsid, current_func, defcheck, implicit) {
1641 $raise(Opal.RuntimeError, "super called outside of method");
1645 $raise(Opal.RuntimeError,
1655 return Opal.find_super(obj, call_jsid, current_func, defcheck);
1659 Opal.find_super_dispatcher = Opal.find_super;
1662 Opal.find_iter_super_dispatcher = Opal.find_block_super;
1665 Opal.yield1 = function(block, arg) {
1667 $raise(Opal.LocalJumpError, "no block given");
1674 arg = Opal.to_ary(arg);
1686 Opal.yieldX = function(block, args) {
1688 $raise(Opal.LocalJumpError, "no block given");
1709 Opal.rescue = function(exception, candidates) {
1714 var result = Opal.rescue(exception, candidate);
1720 else if (candidate === Opal.JS.Error || candidate['$==='](exception)) {
1728 Opal.is_a = function(object, klass) {
1737 …var ancestors = $ancestors(object.$$is_class ? Opal.get_singleton_class(object) : (object.$$meta |…
1744 Opal.to_hash = function(value) {
1754 $raise(Opal.TypeError, "Can't convert " + value.$$class +
1759 $raise(Opal.TypeError, "no implicit conversion of " + value.$$class + " into Hash");
1769 Opal.to_ary = function(value) {
1782 $raise(Opal.TypeError, "Can't convert " + value.$$class +
1792 Opal.to_a = function(value) {
1806 $raise(Opal.TypeError, "Can't convert " + value.$$class +
1822 Opal.extract_kwargs = function(parameters) {
1824 if (kwargs != null && Opal.respond_to(kwargs, '$to_hash', true)) {
1841 Opal.kwrestargs = function(given_args, used_args) {
1854 return Opal.hash2(keys, map);
1871 Opal.jsid = $jsid;
1879 // Used internally by Opal to invoke method that takes a block or a splat.
1882 // Used internally by Opal to invoke 'super'.
1886 // Opal.send(my_array, 'length') # => 4
1887 // Opal.send(my_array, my_array.$length) # => 4
1889 // Opal.send(my_array, 'reverse!') # => [4, 3, 2, 1]
1890 // Opal.send(my_array, my_array['$reverse!']') # => [4, 3, 2, 1]
1898 Opal.send = function(recv, method, args, block, blockopts) {
1907 $raise(Opal.NameError, "Passed method should be a string or a function");
1910 return Opal.send2(recv, body, method, args, block, blockopts);
1913 Opal.send2 = function(recv, body, method, args, block, blockopts) {
1925 Opal.refined_send = function(refinement_groups, recv, method, args, block, blockopts) {
1932 ancestor = Opal.id(ancestors[i]);
1954 return Opal.send2(recv, body, method, args, block, blockopts);
1960 return Opal.send(recv, method, args, block, blockopts);
1963 Opal.lambda = function(block, blockopts) {
2008 Opal.def = function(obj, jsid, body, blockopts) {
2013 if (obj === Opal.top) {
2014 return Opal.defn(Opal.Object, jsid, body);
2018 return Opal.defn(obj, jsid, body);
2021 return Opal.defs(obj, jsid, body);
2025 // Define method on a module or class (see Opal.def).
2026 Opal.defn = function(module, jsid, body) {
2042 Opal.defs(module, jsid, body);
2062 // Define a singleton method on the given object (see Opal.def).
2063 Opal.defs = function(obj, jsid, body, blockopts) {
2067 $raise(Opal.TypeError, "can't define singleton");
2069 return Opal.defn(Opal.get_singleton_class(obj), jsid, body);
2073 Opal.rdef = function(obj, jsid) {
2075 $raise(Opal.NameError, "method '" + jsid.substr(1) + "' not defined in " + obj.$name());
2093 Opal.udef = function(obj, jsid) {
2095 $raise(Opal.NameError, "method '" + jsid.substr(1) + "' not defined in " + obj.$name());
2098 Opal.add_stub_for(obj.$$prototype, jsid);
2116 Opal.alias = function(obj, name, old) {
2124 obj = Opal.Object;
2131 return Opal.alias(Opal.get_singleton_class(obj), name, old);
2144 body = Opal.Object.$$prototype[old_id];
2148 $raise(Opal.NameError, "undefined method `" + old + "' for class `" + obj.$name() + "'");
2168 return Opal.send(this, body, args, block);
2174 // an exception is thrown breaking Opal altogether.
2188 Opal.defn(obj, id, alias);
2193 Opal.alias_gvar = function(new_name, old_name) {
2207 Opal.alias_native = function(obj, name, native_name) {
2212 …$raise(Opal.NameError, "undefined native method `" + native_name + "' for class `" + obj.$name() +…
2215 Opal.defn(obj, id, body);
2224 Opal.hash_init = function(hash) {
2230 Opal.hash_clone = function(from_hash, to_hash) {
2244 Opal.hash_put(to_hash, key, value);
2248 Opal.hash_put = function(hash, key, value) {
2258 key_hash = hash.$$by_identity ? Opal.id(key) : key.$hash();
2286 Opal.hash_get = function(hash, key) {
2295 key_hash = hash.$$by_identity ? Opal.id(key) : key.$hash();
2309 Opal.hash_delete = function(hash, key) {
2376 Opal.hash_rehash = function(hash) {
2437 Opal.hash = function() {
2444 hash = new Opal.Hash();
2445 Opal.hash_init(hash);
2455 $raise(Opal.ArgumentError, "value not of length 2: " + args[i].$inspect());
2461 Opal.hash_put(hash, key, value);
2472 Opal.hash_put(hash, key, value);
2481 $raise(Opal.ArgumentError, "odd number of arguments for Hash");
2488 Opal.hash_put(hash, key, value);
2499 Opal.hash2 = function(keys, smap) {
2500 var hash = new Opal.Hash();
2512 Opal.range = function(first, last, exc) {
2513 var range = new Opal.Range();
2532 Opal.ivar = function(name) {
2546 …$raise(Opal.FrozenError, "can't modify frozen " + (obj.$class()) + ": " + (obj), Opal.hash2(["rece…
2548 } Opal.deny_frozen_access = $deny_frozen_access;
2551 Opal.freeze = function(obj) {
2576 Opal.freeze_props = function(obj) {
2590 // for Opal 2.0 let for cv should do the trick, instead of a function
2610 Opal.escape_regexp = function(str) {
2621 Opal.global_regexp = function(pattern) {
2636 Opal.global_multiline_regexp = function(pattern) {
2660 Opal.regexp = function(parts, flags) {
2668 Opal.Kernel.$warn(
2670 Opal.hash({uplevel: 1})
2689 Opal.modules = {};
2690 Opal.loaded_features = ['corelib/runtime'];
2691 Opal.current_dir = '.';
2692 Opal.require_table = {'corelib/runtime': true};
2694 Opal.normalize = function(path) {
2697 if (Opal.current_dir !== '.') {
2698 path = Opal.current_dir.replace(/\/*$/, '/') + path;
2714 Opal.loaded = function(paths) {
2718 path = Opal.normalize(paths[i]);
2720 if (Opal.require_table[path]) {
2724 Opal.loaded_features.push(path);
2725 Opal.require_table[path] = true;
2729 Opal.load_normalized = function(path) {
2730 Opal.loaded([path]);
2732 var module = Opal.modules[path];
2735 var retval = module(Opal);
2743 var severity = Opal.config.missing_require_severity;
2747 $raise(Opal.LoadError, message);
2757 Opal.load = function(path) {
2758 path = Opal.normalize(path);
2760 return Opal.load_normalized(path);
2763 Opal.require = function(path) {
2764 path = Opal.normalize(path);
2766 if (Opal.require_table[path]) {
2770 return Opal.load_normalized(path);
2777 Opal.encodings = Object.create(null);
2785 Opal.set_encoding = function(str, name, type) {
2788 $raise(Opal.FrozenError, "can't modify frozen String");
2790 var encoding = Opal.find_encoding(name);
2800 Opal.find_encoding = function(name) {
2801 var register = Opal.encodings;
2803 if (!encoding) $raise(Opal.ArgumentError, "unknown encoding name - " + name);
2808 Opal.enc = function(str, name) {
2810 dup = Opal.set_encoding(dup, name);
2816 Opal.binary = function(str) {
2818 return Opal.set_encoding(dup, "binary", "internal_encoding");
2821 Opal.last_promise = null;
2822 Opal.promise_unhandled_exception = false;
2826 Opal.queue = function(proc) {
2827 if (Opal.last_promise) {
2830 Opal.last_promise = Opal.last_promise.then(function() {
2831 if (!Opal.promise_unhandled_exception) return proc(Opal);
2833 if (Opal.respond_to(error, '$full_message')) {
2838 Opal.promise_unhandled_exception = true;
2839 Opal.exit(1);
2841 return Opal.last_promise;
2844 var ret = proc(Opal);
2846 Opal.last_promise = ret;
2857 Opal.rb_plus = function(l,r) { return are_both_numbers(l,r) ? l + r : l['$+'](r); };
2858 Opal.rb_minus = function(l,r) { return are_both_numbers(l,r) ? l - r : l['$-'](r); };
2859 Opal.rb_times = function(l,r) { return are_both_numbers(l,r) ? l * r : l['$*'](r); };
2860 Opal.rb_divide = function(l,r) { return are_both_numbers(l,r) ? l / r : l['$/'](r); };
2861 Opal.rb_lt = function(l,r) { return are_both_numbers(l,r) ? l < r : l['$<'](r); };
2862 Opal.rb_gt = function(l,r) { return are_both_numbers(l,r) ? l > r : l['$>'](r); };
2863 Opal.rb_le = function(l,r) { return are_both_numbers(l,r) ? l <= r : l['$<='](r); };
2864 Opal.rb_ge = function(l,r) { return are_both_numbers(l,r) ? l >= r : l['$>='](r); };
2874 } Opal.eqeq = $eqeq;
2875 Opal.eqeqeq = function(lhs, rhs) {
2878 Opal.neqeq = function(lhs, rhs) {
2881 Opal.not = function(arg) {
2893 Opal.return_val = $return_val;
2895 Opal.return_self = function() {
2898 Opal.return_ivar = function(ivar) {
2904 Opal.assign_ivar = function(ivar) {
2910 Opal.assign_ivar_val = function(ivar, static_val) {
2918 Opal.ensure_kwargs = function(kwargs) {
2920 return Opal.hash2([], {});
2924 $raise(Opal.ArgumentError, 'expected kwargs');
2928 Opal.get_kwarg = function(kwargs, key) {
2930 $raise(Opal.ArgumentError, 'missing keyword: '+key);
2938 Opal.large_array_unpack = function(str) {
2964 Opal.BasicObject = BasicObject = $allocate_class('BasicObject', null);
2965 Opal.Object = _Object = $allocate_class('Object', Opal.BasicObject);
2966 Opal.Module = Module = $allocate_class('Module', Opal.Object);
2967 Opal.Class = Class = $allocate_class('Class', Opal.Module);
2968 Opal.Opal = _Opal = $allocate_module('Opal');
2969 Opal.Kernel = Kernel = $allocate_module('Kernel');
2971 $set_proto(Opal.BasicObject, Opal.Class.$$prototype);
2972 $set_proto(Opal.Object, Opal.Class.$$prototype);
2973 $set_proto(Opal.Module, Opal.Class.$$prototype);
2974 $set_proto(Opal.Class, Opal.Class.$$prototype);
2984 $const_set(_Object, "Opal", _Opal);
3008 $prop(_Object.$$prototype, '$require', Opal.require);
3011 Opal.top = new _Object();
3012 Opal.top.$to_s = Opal.top.$inspect = $return_val('main');
3013 Opal.top.$define_method = top_define_method;
3020 return Opal.send(_Object, 'define_method', args, block)
3023 Opal.NilClass = $allocate_class('NilClass', Opal.Object);
3024 $const_set(_Object, 'NilClass', Opal.NilClass);
3025 nil = Opal.nil = new Opal.NilClass();
3027 nil.call = nil.apply = function() { $raise(Opal.LocalJumpError, 'no block given'); };
3032 Opal.thrower = function(type) {
3043 Opal.t_eval_return = Opal.thrower("return");
3049 Opal.file_sources = {};
3051 Opal.loaded(["corelib/runtime.js"]);
3052 Opal.modules["corelib/helpers"] = function(Opal) {/* Generated by Opal 1.7.3 */
3053Opal.type_error, $coerce_to = Opal.coerce_to, $module = Opal.module, $defs = Opal.defs, $slice = O…
3055 Opal.add_stubs('===,raise,respond_to?,nil?,__send__,<=>,class,coerce_to!,new,to_s,__id__');
3057 var self = $module($base, 'Opal');
3063 return Opal.bridge(constructor, klass);
3140 name = $Opal['$coerce_to!'](name, $$$('String'), "to_str");
3148 name = $Opal['$coerce_to!'](name, $$$('String'), "to_str");
3157 (const_name = $Opal['$coerce_to!'](const_name, $$$('String'), "to_str"));
3168 const_name = $Opal['$coerce_to!'](const_name, $$$('String'), "to_str");
3185 method = owner_class.$$prototype[Opal.jsid(method_name)];
3224 // anything supporting Opal
3232 if (Opal.rescue($err, [$$$('Exception')])) {(e = $err);
3235 } finally { Opal.pop_exception(); }
3244 Opal.modules["corelib/module"] = function(Opal) {/* Generated by Opal 1.7.3 */
3245Opal.truthy, $coerce_to = Opal.coerce_to, $const_set = Opal.const_set, $Object = Opal.Object, $ret…
3247Opal.add_stubs('module_eval,to_proc,===,raise,equal?,<,>,nil?,attr_reader,attr_writer,warn,attr_ac…
3252 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
3259 var module = Opal.allocate_module(nil, function(){});
3261 if (self !== Opal.Module) Object.setPrototypeOf(module, self.$$prototype);
3282 } return Opal.is_a(object, self); });
3299 for (i = 0, ancestors = Opal.ancestors(self), length = ancestors.length; i < length; i++) {
3305 for (i = 0, ancestors = Opal.ancestors(other), length = ancestors.length; i < length; i++) {
3369 Opal.alias(self, newname, oldname);
3379 Opal.alias_native(self, mid, jsid);
3386 return Opal.ancestors(self);
3394 Opal.append_features(self, includer);
3443 Opal.prop(proto, ivar, nil);
3448 Opal.defn(self, id, body);
3475 Opal.prop(proto, ivar, nil);
3477 Opal.defn(self, id, body);
3488 if (!$$('Opal')['$const_name?'](const$)) {
3500 Opal.const_cache_version++;
3533 return Object.keys(Opal.class_variables(self));
3540 name = $Opal['$class_variable_name!'](name);
3541 return Opal.class_variable_get(self, name, false); });
3548 name = $Opal['$class_variable_name!'](name);
3549 return Opal.class_variable_set(self, name, value); });
3555 name = $Opal['$class_variable_name!'](name);
3556 return Opal.class_variables(self).hasOwnProperty(name); });
3559 $Opal.$pristine(self, "const_added");
3566 name = $Opal['$class_variable_name!'](name);
3568 if (Opal.hasOwnProperty.call(self.$$cvars, name)) {
3582 return Opal.constants(self, inherit); }, -1);
3598 return Opal.constants(self, inherit)
3612 name = $$('Opal')['$const_name!'](name);
3613 if (!$truthy(name['$=~']($$$($Opal, 'CONST_NAME_REGEXP')))) {
3620 modules = modules.concat(Opal.ancestors(self));
3624 modules = modules.concat([$Object]).concat(Opal.ancestors($Object));
3649 name = $$('Opal')['$const_name!'](name);
3660 } if (!$truthy(name['$=~']($$$($Opal, 'CONST_NAME_REGEXP')))) {
3664 return Opal.$$([self], name);
3666 return Opal.const_get_local(self, name);
3683 name = $Opal['$const_name!'](name);
3684 …if (($truthy(name['$!~']($$$($Opal, 'CONST_NAME_REGEXP'))) || ($truthy(name['$start_with?']("::"))…
3734 return Opal.defn(self, $jsid(name), block);
3763 Opal.rdef(self, "$" + name);
3797 return Opal.included_modules(self);
3808 var i, ii, mod2, ancestors = Opal.ancestors(self);
3842 return Opal.instance_methods(self);
3844 return Opal.own_instance_methods(self);
3886 if (($truthy(block['$nil?']()) && ($truthy(!!Opal.compile)))) {
3892 compiling_options = Opal.hash({ arity_check: false }).$merge(default_eval_options);
3893 compiled = $Opal.$compile(string, compiling_options);
3896 return new Function("Opal,self", "return " + compiled)(Opal, self);}, {$$s: self});
3958 Opal.defs(self, id, func);
4030 Opal.prepend_features(self, prepender)
4042 return Opal.const_remove(self, name); });
4047 if ($truthy(($ret_or_1 = Opal.Module.$name.call(self)))) {
4068 Opal.udef(self, "$" + names[i]);
4077 consts = (Opal.Module.$$nesting = $nesting, self.$constants());
4129 klass_id = Opal.id(klass);
4187 Opal.modules["corelib/class"] = function(Opal) {/* Generated by Opal 1.7.3 */
4188Opal.klass, $send = Opal.send, $defs = Opal.defs, $def = Opal.def, $rb_plus = Opal.rb_plus, $retur…
4190Opal.add_stubs('require,class_eval,to_proc,+,subclasses,flatten,map,initialize_copy,allocate,name,…
4196 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
4206 throw Opal.TypeError.$new("superclass must be a Class");
4209 var klass = Opal.allocate_class(nil, superclass);
4220 obj.$$id = Opal.uid();
4251 Opal.send(object, object.$initialize, args, block);
4293 …return "#<Class:#<" + ((singleton_of.$$class).$name()) + ":0x" + ((Opal.id(singleton_of)).$to_s(16…
4316 Opal.modules["corelib/basic_object"] = function(Opal) {/* Generated by Opal 1.7.3 */
4317Opal.klass, $slice = Opal.slice, $def = Opal.def, $alias = Opal.alias, $return_val = Opal.return_v…
4319Opal.add_stubs('==,raise,inspect,pristine,!,nil?,cover?,size,merge,compile,proc,[],first,>=,length…
4353 Opal.prop(self, '$$id', Opal.uid());
4369 var func = self[Opal.jsid(symbol)];
4387 $Opal.$pristine("!");
4401 if (($truthy(block['$nil?']()) && ($truthy(!!Opal.compile)))) {
4407 compiling_options = Opal.hash({ arity_check: false }).$merge(default_eval_options);
4408 compiled = $Opal.$compile(string, compiling_options);
4411 return new Function("Opal,self", "return " + compiled)(Opal, self);}, {$$s: self});
4502 inspect_result = $Opal.$inspect(self);
4505 $Opal.$pristine(self, "method_missing");
4512 Opal.modules["corelib/kernel"] = function(Opal) {/* Generated by Opal 1.7.3 */
4513Opal.truthy, $coerce_to = Opal.coerce_to, $respond_to = Opal.respond_to, $Opal = Opal.Opal, $deny_…
4515Opal.add_stubs('!,=~,==,object_id,raise,new,class,coerce_to?,<<,map,caller,nil?,allocate,copy_inst…
4520 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
4580 return Opal.methods(self);
4582 return Opal.own_methods(self);
4593 return Opal.methods(self);
4595 return Opal.receiver_methods(self);
4612 coerced = $Opal['$coerce_to?'](object, $$$('Array'), "to_ary");
4615 coerced = $Opal['$coerce_to?'](object, $$$('Array'), "to_a");
4691 var other_singleton_class = Opal.get_singleton_class(other);
4692 var self_singleton_class = Opal.get_singleton_class(self);
4697 if (Opal.is_method(name)) {
4804 Opal.exit(status);
4907 inspect = $$('Opal').$inspect(ivar);
4912 if (Opal.rescue($err, [$$('StandardError')])) {(e = $err);
4915 } finally { Opal.pop_exception(); }
4939 name = $Opal['$instance_variable_name!'](name);
4940 return Opal.hasOwnProperty.call(self, name.substr(1)); });
4946 name = $Opal['$instance_variable_name!'](name);
4948 var ivar = self[Opal.ivar(name.substr(1))];
4958 name = $Opal['$instance_variable_name!'](name);
4959 return self[Opal.ivar(name.substr(1))] = value; });
4965 name = $Opal['$instance_variable_name!'](name);
4967 var key = Opal.ivar(name.substr(1)),
5021 return $Opal['$coerce_to!'](value, $$$('Integer'), "to_i");
5115 return $Opal['$coerce_to!'](value, $$$('Float'), "to_f");
5126 } return $Opal['$coerce_to!'](arg, $$$('Hash'), "to_hash");
5137 return Opal.is_a(self, klass);
5147 return Opal.lambda(block); });
5152 file = $Opal['$coerce_to!'](file, $$$('String'), "to_str");
5153 return Opal.load(file);
5167 Opal.yieldX($yield, []);
5169 if (Opal.rescue($err, [$$$('StopIteration')])) {(e = $err);
5172 } finally { Opal.pop_exception(); }
5261 uplevel = $Opal['$coerce_to!'](uplevel, $$$('Integer'), "to_str");
5306 Opal.exceptions.push($gvars["!"]);
5359 $Opal.$pristine(self, "respond_to?", "respond_to_missing?");
5366 if (typeof file !== 'string' && Opal.String && Opal.Array) {
5367 (file = $Opal['$coerce_to!'](file, $$$('String'), "to_str"));
5369 return Opal.require(file)
5376 $Opal['$try_convert!'](file, $$$('String'), "to_str");
5377 file = $$$('File').$expand_path($$$('File').$join(Opal.current_file, "..", file));
5378 return Opal.require(file);
5392 path = Opal.normalize(path);
5394 for (var name in Opal.modules) {
5397 result.push([name, Opal.require(name)]);
5410 return Opal.get_singleton_class(self);
5427 var get_time = Opal.global.performance ?
5446 if ($truthy(($ret_or_1 = $Opal['$coerce_to?'](str, $$$('String'), "to_str")))) {
5449 return $Opal['$coerce_to!'](str, $$$('String'), "to_s")
5457 Opal.yield1(block, self);
5478 return Opal.yield1($yield, tag);;
5480 if (Opal.rescue($err, [$$$('UncaughtThrowError')])) {(e = $err);
5487 } finally { Opal.pop_exception(); }
5514 } return Opal.yield1($yield, self); });
5533 Opal.modules["corelib/main"] = function(Opal) {/* Generated by Opal 1.7.3 */
5534 … $return_val = Opal.return_val, $def = Opal.def, $Object = Opal.Object, $slice = Opal.slice, $Kern…
5536 Opal.add_stubs('include,raise');
5554 return Opal.Object.$autoload.apply(Opal.Object, args); }, -1);
5559 })(Opal.get_singleton_class(self))
5562 Opal.modules["corelib/error/errno"] = function(Opal) {/* Generated by Opal 1.7.3 */
5563Opal.module, $truthy = Opal.truthy, $rb_plus = Opal.rb_plus, $send2 = Opal.send2, $find_super = Op…
5565 Opal.add_stubs('+,errno,class,attr_reader');
5583 klass = Opal.klass(self, Opal.SystemCallError, class_name);
5599 })(Opal.get_singleton_class(klass));
5616 })(Opal.get_singleton_class(self));
5620 Opal.modules["corelib/error"] = function(Opal) {/* Generated by Opal 1.7.3 */
5621Opal.klass, $slice = Opal.slice, $gvars = Opal.gvars, $defs = Opal.defs, $send = Opal.send, $to_a …
5623Opal.add_stubs('new,map,backtrace,clone,to_s,merge,tty?,[],include?,raise,dup,empty?,!,caller,shif…
5628 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
5632 Opal.prop(self.$$prototype, '$$is_exception', true);
5648 Opal.send(error, error.$initialize, args);
5654 if (Opal.config.enable_stack_trace && Error.captureStackTrace) {
6031 Opal.modules["corelib/constants"] = function(Opal) {/* Generated by Opal 1.7.3 */
6032 var $const_set = Opal.const_set; Opal.nil; var $$$ = Opal.$$$;
6042 …$const_set('::', 'RUBY_COPYRIGHT', "opal - Copyright (C) 2011-2023 Adam Beynon and the Opal contri…
6046 Opal.modules["opal/base"] = function(Opal) {/* Generated by Opal 1.7.3 */
6047 var $Object = Opal.Object; Opal.nil;
6049 Opal.add_stubs('require');
6062 Opal.modules["corelib/nil"] = function(Opal) {/* Generated by Opal 1.7.3 */
6063Opal.klass, $Kernel = Opal.Kernel, $def = Opal.def, $return_val = Opal.return_val, $ensure_kwargs …
6065 Opal.add_stubs('raise,name,new,>,length,Rational,to_i');
6082 Opal.udef(self, '$' + "new"); return nil; })(Opal.get_singleton_class(self));
6129 return Opal.hash();
6165 Opal.modules["corelib/boolean"] = function(Opal) {/* Generated by Opal 1.7.3 */
6166Opal.klass, $Kernel = Opal.Kernel, $def = Opal.def, $return_self = Opal.return_self, $ensure_kwarg…
6168 Opal.add_stubs('raise,name,==,to_s,__id__');
6174 Opal.prop(self.$$prototype, '$$is_boolean', true);
6183 return this == true ? Opal.TrueClass :
6184 this == false ? Opal.FalseClass :
6185 Opal.Boolean;
6210 Opal.udef(self, '$' + "new"); return nil; })(Opal.get_singleton_class(self));
6277 var body = self.$$class.$$prototype[Opal.jsid(method)];
6280 } return Opal.send(self, body, args, block);
6285 var body = self.$$class.$$prototype[Opal.jsid(method)];
6296 Opal.modules["corelib/comparable"] = function(Opal) {/* Generated by Opal 1.7.3 */
6297Opal.truthy, $module = Opal.module, $rb_gt = Opal.rb_gt, $rb_lt = Opal.rb_lt, $eqeqeq = Opal.eqeqe…
6299 Opal.add_stubs('>,<,===,raise,class,<=>,equal?');
6308 if (Opal.is_a(what, Opal.Integer)) { return what; }
6334 if (self["$<=>"] == Opal.Kernel["$<=>"]) {
6393 if (!Opal.is_a(min, Opal.Range)) {
6428 Opal.modules["corelib/regexp"] = function(Opal) {/* Generated by Opal 1.7.3 */
6429Opal.coerce_to, $prop = Opal.prop, $freeze = Opal.freeze, $klass = Opal.klass, $const_set = Opal.c…
6431Opal.add_stubs('nil?,[],raise,escape,options,to_str,new,join,coerce_to!,!,match,coerce_to?,begin,f…
6437 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
6443 Opal.prop(self.$$prototype, '$$is_regexp', true);
6445 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
6461 return Opal.escape_regexp(string);
6529 regexp = $Opal['$coerce_to!'](regexp, $$$('String'), "to_str");
6555 })(Opal.get_singleton_class(self), $nesting);
6566 return self.$match($Opal['$coerce_to?'](string, $$$('String'), "to_str")) !== nil
6646 return block === nil ? $gvars["~"] : Opal.yield1(block, $gvars["~"]);
6668 var md, re = Opal.global_regexp(self);
6677 return block === nil ? $gvars["~"] : Opal.yield1(block, $gvars["~"]);
6710 var md, re = Opal.global_regexp(self);
6781 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
6973 index = $Opal['$coerce_to!'](args[i], $$$('Integer'), "to_int");
6993 Opal.modules["corelib/string"] = function(Opal) {/* Generated by Opal 1.7.3 */
6994Opal.coerce_to, $respond_to = Opal.respond_to, $global_multiline_regexp = Opal.global_multiline_re…
6996Opal.add_stubs('require,include,coerce_to?,initialize,===,format,raise,respond_to?,to_s,to_str,<=>…
7003 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
7008 Opal.prop(self.$$prototype, '$$is_string', true);
7017 return $Opal['$coerce_to?'](what, $$$('String'), "to_str")
7106 if (other == "" && self.$$class === Opal.String) return self;
7107 if (self == "" && other.$$class === Opal.String) return other;
7111 return Opal.enc(out, self.encoding);
7326 } separator = $Opal['$coerce_to!'](separator, $$$('String'), "to_str").$to_s();
7490 Opal.yield1(block, self);
7506 Opal.yield1(block, value);
7525 Opal.yield1(block, value);
8128 … match.length == 1 ? Opal.yield1(block, match[0]) : Opal.yield1(block, (match_data).$captures());
8143 return Opal.get_singleton_class(self);
8157 limit = $Opal['$coerce_to!'](limit, $$$('Integer'), "to_int");
8469 jsid = Opal.jsid(method_name);
9050 return $Opal.$pristine(self, "initialize");
9055 Opal.modules["corelib/enumerable"] = function(Opal) {/* Generated by Opal 1.7.3 */
9056Opal.truthy, $coerce_to = Opal.coerce_to, $yield1 = Opal.yield1, $yieldX = Opal.yieldX, $deny_froz…
9058Opal.add_stubs('each,public_send,destructure,to_enum,enumerator_size,new,yield,raise,slice_when,!,…
9062 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
9103 if ($truthy(Opal.yieldX(block, $to_a(value)))) {
9114 if ($truthy($Opal.$destructure(value))) {
9151 if ($truthy(Opal.yieldX(block, $to_a(value)))) {
9162 if ($truthy($Opal.$destructure(value))) {
9230 return Opal.yieldX(block, [before, after])['$!']();});
9287 return $Opal.$destructure(args)['$=='](object);}, -1);
9319 n = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
9327 n = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
9334 var param = $Opal.$destructure(arguments);
9379 value = $Opal.$destructure(args);
9380 if ($truthy(Opal.yield1(block, value))) {
9413 result.push($Opal.$destructure(arguments));
9435 var param = $Opal.$destructure(arguments);
9461 } n = $Opal.$try_convert(n, $$$('Integer'), "to_int");
9480 var element = $Opal.$destructure(arguments);
9507 var item = $Opal.$destructure(arguments);
9536 var param = $Opal.$destructure(arguments);
9569 var param = $Opal.$destructure(arguments);
9590 var param = $Opal.$destructure(arguments);
9609 result.push($Opal.$destructure(arguments));
9640 var param = $Opal.$destructure(arguments),
9675 if ($eqeq($Opal.$destructure(value), object)) {
9685 if ($truthy(Opal.yieldX(block, $to_a(value)))) {
9722 result.push($Opal.$destructure(args));
9752 } value = Opal.yieldX(block, $to_a(value));
9776 } value = Opal.yieldX(block, $to_a(value));
9794 var param = $Opal.$destructure(arguments),
9813 if ($eqeq($Opal.$destructure(args), obj)) {
9833 var value = $Opal.$destructure(arguments);
9856 var value = $Opal.$destructure(arguments);
9903 var item = $Opal.$destructure(arguments);
9954 var param = $Opal.$destructure(arguments),
9985 return Opal.yieldX(block, [a, b]);}).$take(n)
9994 var param = $Opal.$destructure(arguments);
10014 var param = $Opal.$destructure(arguments);
10021 if ($Opal.$compare(param, result) < 0) {
10048 var param = $Opal.$destructure(arguments),
10081 var element = $Opal.$destructure(arguments);
10124 var param = $Opal.$destructure(arguments),
10168 if ($truthy(Opal.yieldX(block, $to_a(value)))) {
10179 item = $Opal.$destructure(value);
10224 if (!$truthy(Opal.yieldX(block, $to_a(value)))) {
10239 if (!$truthy($Opal.$destructure(value))) {
10267 var param = $Opal.$destructure(arguments),
10295 var param = $Opal.$destructure(arguments),
10350 var param = $Opal.$destructure(arguments),
10363 var param = $Opal.$destructure(arguments),
10377 var param = $Opal.$destructure(arguments),
10418 var element = $Opal.$destructure(arguments),
10456 var params = $Opal.$destructure(arguments),
10510 arg = $Opal.$destructure(arguments);
10511 return [Opal.yield1(block, arg), arg];});
10536 item = (($yield !== nil) ? (Opal.yieldX($yield, $to_a(args))) : ($Opal.$destructure(args)));
10570 value = $Opal.$destructure(args);
10571 if (!$truthy(Opal.yield1(block, value))) {
10590 value = $Opal.$destructure(args);
10591 produced = ((block !== nil) ? (Opal.yield1(block, value)) : (value));
10628 var param = $Opal.$destructure(arguments);
10629 var ary = $Opal['$coerce_to?'](param, $$$('Array'), "to_ary"), key, val;
10639 Opal.hash_put(hash, key, val);
10677 Opal.modules["corelib/enumerator/arithmetic_sequence"] = function(Opal) {/* Generated by Opal 1.7.3…
10678Opal.klass, $truthy = Opal.truthy, $to_a = Opal.to_a, $eqeq = Opal.eqeq, $Kernel = Opal.Kernel, $d…
10680Opal.add_stubs('is_a?,==,raise,respond_to?,class,attr_reader,begin,end,exclude_end?,>,step,<,<=,>=…
10689 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
10693 Opal.prop(self.$$prototype, '$$is_arithmetic_seq', true);
10705Opal.Range.$new(self.receiver_num, self.step_arg1, false))) : ($truthy(self.step_arg1) ? (Opal.Ran…
10792 Opal.yield1(block, iter);
10871 Opal.modules["corelib/enumerator/chain"] = function(Opal) {/* Generated by Opal 1.7.3 */
10872Opal.deny_frozen_access, $klass = Opal.klass, $slice = Opal.slice, $def = Opal.def, $send = Opal.s…
10874 Opal.add_stubs('to_enum,size,each,<<,to_proc,include?,+,reverse_each,respond_to?,rewind,inspect');
10965 Opal.modules["corelib/enumerator/generator"] = function(Opal) {/* Generated by Opal 1.7.3 */
10966Opal.deny_frozen_access, $klass = Opal.klass, $truthy = Opal.truthy, $Kernel = Opal.Kernel, $def =…
10968 Opal.add_stubs('include,raise,new,to_proc');
10977 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
11003 Opal.yieldX(self.block, args);
11019 Opal.modules["corelib/enumerator/lazy"] = function(Opal) {/* Generated by Opal 1.7.3 */
11020Opal.truthy, $coerce_to = Opal.coerce_to, $yield1 = Opal.yield1, $yieldX = Opal.yieldX, $deny_froz…
11022Opal.add_stubs('raise,each,new,enumerator_size,yield,respond_to?,try_convert,<,===,+,for,class,to_…
11031 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
11075 if (Opal.rescue($err, [$$('StopLazyError')])) {
11078 } finally { Opal.pop_exception(); }
11126 var array = $Opal.$try_convert(value, $$$('Array'), "to_ary");
11236 var param = $Opal.$destructure(args),
11253 var param = $Opal.$destructure(args),
11347 Opal.modules["corelib/enumerator/yielder"] = function(Opal) {/* Generated by Opal 1.7.3 */
11348 …var $klass = Opal.klass, $def = Opal.def, $slice = Opal.slice, $send = Opal.send, $to_a = Opal.to_…
11350 Opal.add_stubs('yield,proc');
11379 var value = Opal.yieldX(self.block, values);
11409 Opal.modules["corelib/enumerator"] = function(Opal) {/* Generated by Opal 1.7.3 */
11410Opal.slice, $coerce_to = Opal.coerce_to, $deny_frozen_access = Opal.deny_frozen_access, $klass = O…
11412Opal.add_stubs('require,include,allocate,new,to_proc,!,respond_to?,empty?,nil?,+,class,__send__,ca…
11418 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
11507 var param = $Opal.$destructure(arguments),
11587 return self.$raise($$('NotImplementedError'), "Opal doesn't support Enumerator#feed")
11614 Opal.modules["corelib/numeric"] = function(Opal) {/* Generated by Opal 1.7.3 */
11615Opal.klass, $truthy = Opal.truthy, $Kernel = Opal.Kernel, $def = Opal.def, $to_ary = Opal.to_ary, …
11617Opal.add_stubs('require,include,instance_of?,class,Float,respond_to?,coerce,__send__,raise,equal?,…
11795 return $rb_divide($Opal['$coerce_to!'](self, $$$('Rational'), "to_r"), other)
11868 $Opal.$compare(self, limit);
11973 Opal.yield1(block, counter);
12039 Opal.modules["corelib/array"] = function(Opal) {/* Generated by Opal 1.7.3 */
12040Opal.truthy, $falsy = Opal.falsy, $hash_ids = Opal.hash_ids, $yield1 = Opal.yield1, $hash_get = Op…
12042Opal.add_stubs('require,include,to_a,warn,raise,replace,respond_to?,to_ary,coerce_to?,===,join,to_…
12049 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
12053 Opal.prop(self.$$prototype, '$$is_array', true);
12079 if (klass.$$name === Opal.Array) {
12086 // A helper for keep_if and delete_if, filter is either Opal.truthy
12087 // or Opal.falsy.
12182 return $Opal['$coerce_to?'](obj, $$$('Array'), "to_ary")
12378 from = index.begin === nil ? 0 : $coerce_to(index.begin, Opal.Integer, 'to_int');
12379 to = index.end === nil ? -1 : $coerce_to(index.end, Opal.Integer, 'to_int');
12441 index = $coerce_to(index, Opal.Integer, 'to_int');
12459 length = $coerce_to(length, Opal.Integer, 'to_int');
12500 from = index.begin === nil ? 0 : $coerce_to(index.begin, Opal.Integer, 'to_int'),
12501 to = index.end === nil ? -1 : $coerce_to(index.end, Opal.Integer, 'to_int');
12691 n = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
12710 n = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
12805 num = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
12814 Opal.yield1($yield, []);
12817 Opal.yield1($yield, [self[i]]);
12821 Opal.yield1($yield, self.slice());
12841 Opal.yield1($yield, chosen.slice());
12858 num = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
12867 Opal.yield1($yield, copy);
12967 return Opal.yieldX($yield, []);
13064 if (self.$$class === Opal.Array &&
13517 result.push($$('Opal').$inspect(item));
13597 …$Kernel.$raise($$$('NoMethodError').$new("" + ($$('Opal').$inspect(self.$item())) + " doesn't resp…
13604 return result.join($Opal['$coerce_to!'](sep, $$$('String'), "to_str").$to_s());
13696 Opal.yield1(block, []);
13701 Opal.yield1(block, [self[i]]);
13747 num = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
13760 Opal.yield1($yield, copy);
13835 Opal.yield1(block, subarray);
14065 if ($truthy((o = $Opal['$coerce_to?'](count, $$$('Hash'), "to_hash")))) {
14231 rng = $Opal['$coerce_to?'](rng, $$$('Hash'), "to_hash");
14444 if (self.$$class === Opal.Array) {
14448 return Opal.Array.$new(self);
14466 ary = $Opal['$coerce_to?'](array[i], $$$('Array'), "to_ary");
14661 …others[j] = ($truthy(($ret_or_1 = $Opal['$coerce_to?'](o, $$$('Array'), "to_ary"))) ? ($ret_or_1) …
14682 Opal.yield1(block, result[i]);
14729 $Opal.$pristine(self.$singleton_class(), "allocate");
14730 return $Opal.$pristine(self, "copy_instance_variables", "initialize_dup");
14734 Opal.modules["corelib/hash"] = function(Opal) {/* Generated by Opal 1.7.3 */
14735Opal.yield1, $hash = Opal.hash, $hash_init = Opal.hash_init, $hash_get = Opal.hash_get, $hash_put …
14737Opal.add_stubs('require,include,coerce_to?,[],merge!,allocate,raise,coerce_to!,each,fetch,>=,>,==,…
14743 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
14758 hash = $Opal['$coerce_to?'](argv['$[]'](0), $$$('Hash'), "to_hash");
14763 argv = $Opal['$coerce_to?'](argv['$[]'](0), $$$('Array'), "to_ary");
14816 return $Opal['$coerce_to?'](obj, $$$('Hash'), "to_hash")
14875 other = $Opal['$coerce_to!'](other, $$$('Hash'), "to_hash");
14900 other = $Opal['$coerce_to!'](other, $$$('Hash'), "to_hash");
14912 other = $Opal['$coerce_to!'](other, $$$('Hash'), "to_hash");
14920 other = $Opal['$coerce_to!'](other, $$$('Hash'), "to_hash");
14989 Opal.hash_clone(self, hash);
15130 proc = $Opal['$coerce_to!'](proc, $$$('Proc'), "to_proc");
15157 return Opal.yield1(block, key);
15342 level = $Opal['$coerce_to!'](level, $$$('Integer'), "to_int");
15408 var top = (Opal.hash_ids === undefined),
15415 Opal.hash_ids = Object.create(null);
15418 if (Opal[hash_id]) {
15422 for (key in Opal.hash_ids) {
15423 item = Opal.hash_ids[key];
15429 Opal.hash_ids[hash_id] = self;
15445 Opal.hash_ids = undefined;
15531 key = $$('Opal').$inspect(key);
15532 value = $$('Opal').$inspect(value);
15646 other = $Opal['$coerce_to!'](others[i], $$$('Hash'), "to_hash");
15716 Opal.hash_rehash(self);
15793 $deny_frozen_access(self); other = $Opal['$coerce_to!'](other, $$$('Hash'), "to_hash");
15954 if (self.$$class === Opal.Hash) {
15958 var hash = new Opal.Hash();
15961 Opal.hash_clone(self, hash);
16019 var keys = Opal.slice(self.$$keys),
16137 Opal.modules["corelib/number"] = function(Opal) {/* Generated by Opal 1.7.3 */
16138Opal.klass, $Opal = Opal.Opal, $Kernel = Opal.Kernel, $def = Opal.def, $eqeqeq = Opal.eqeqeq, $tru…
16140Opal.add_stubs('require,bridge,raise,name,class,Float,respond_to?,coerce_to!,__coerced__,===,>,!,*…
16147 $Opal.$bridge(Number, self);
16148 Opal.prop(self.$$prototype, '$$is_number', true);
16161 Opal.udef(self, '$' + "new"); return nil; })(Opal.get_singleton_class(self));
16174 return [$Opal['$coerce_to!'](other, $$$('Float'), "to_f"), self];
16384 if (Opal.rescue($err, [$$$('ArgumentError')])) {
16387 } finally { Opal.pop_exception(); }
16396 count = $Opal['$coerce_to!'](count, $$$('Integer'), "to_int");
16404 count = $Opal['$coerce_to!'](count, $$$('Integer'), "to_int");
16412 bit = $Opal['$coerce_to!'](bit, $$$('Integer'), "to_int");
16492 mask = $Opal['$coerce_to!'](mask, $$$('Integer'), "to_int");
16499 mask = $Opal['$coerce_to!'](mask, $$$('Integer'), "to_int");
16571 return Opal.enc(String.fromCharCode(self), encoding || "BINARY"); }, -1);
16732 mask = $Opal['$coerce_to!'](mask, $$$('Integer'), "to_int");
16843 } ndigits = $Opal['$coerce_to!'](ndigits, $$$('Integer'), "to_int");
16862 } ndigits = $Opal['$coerce_to!'](ndigits || 0, $$$('Integer'), "to_int");
16922 base = $Opal['$coerce_to!'](base, $$$('Integer'), "to_int");
16958 } base = $Opal['$coerce_to!'](base, $$$('Integer'), "to_int");
17149 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
17159 Opal.udef(self, '$' + "new");
17163 n = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
17174 return $$('Opal')['$coerce_to?'](object, self, "to_int")
17176 })(Opal.get_singleton_class(self), $nesting);
17195 Opal.udef(self, '$' + "new"); return $def(self, '$===', function $eq_eq_eq$41(other) {
17199 })(Opal.get_singleton_class(self));
17211 Opal.modules["corelib/range"] = function(Opal) {/* Generated by Opal 1.7.3 */
17212Opal.klass, $truthy = Opal.truthy, $Kernel = Opal.Kernel, $def = Opal.def, $not = Opal.not, $send2…
17214Opal.add_stubs('require,include,attr_reader,raise,nil?,<=>,include?,!,<,<=,enum_for,size,upto,to_p…
17220 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
17319 Opal.yield1(block, current);
17322 Opal.yield1(block, current);
17420 n = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
17492 Opal.yield1($yield, current);
17508 return Opal.yield1($yield, value);
17570 Opal.modules["corelib/proc"] = function(Opal) {/* Generated by Opal 1.7.3 */
17571Opal.slice, $klass = Opal.klass, $truthy = Opal.truthy, $Kernel = Opal.Kernel, $defs = Opal.defs, …
17573 Opal.add_stubs('raise,proc,call,to_proc,new,source_location,coerce_to!,dup');
17579 Opal.prop(self.$$prototype, '$$is_proc', true);
17580 Opal.prop(self.$$prototype, '$$is_lambda', false);
17609 result = Opal.yieldX(self, args);
17628 result = Opal.yieldX(self, args);
17743 arity = $Opal['$coerce_to!'](arity, $$$('Integer'), "to_int");
17801 Opal.modules["corelib/method"] = function(Opal) {/* Generated by Opal 1.7.3 */
17802Opal.klass, $def = Opal.def, $truthy = Opal.truthy, $slice = Opal.slice, $alias = Opal.alias, $Ker…
17804Opal.add_stubs('attr_reader,arity,curry,>>,<<,new,class,join,source_location,call,raise,bind,to_pr…
17968 if (self.owner.$$is_module || Opal.is_a(object, self.owner)) {
17993 Opal.modules["corelib/variables"] = function(Opal) {/* Generated by Opal 1.7.3 */
17994 …var $gvars = Opal.gvars, $const_set = Opal.const_set, $Object = Opal.Object, $hash2 = Opal.hash2, …
17996 Opal.add_stubs('new');
17999 $gvars.LOADED_FEATURES = ($gvars["\""] = Opal.loaded_features);
18011 Opal.modules["corelib/io"] = function(Opal) {/* Generated by Opal 1.7.3 */
18012Opal.klass, $const_set = Opal.const_set, $not = Opal.not, $truthy = Opal.truthy, $def = Opal.def, …
18014Opal.add_stubs('attr_reader,attr_accessor,!,match?,include?,size,write,String,flatten,puts,sysread…
18218 ret = ret['$[]'](Opal.Range.$new(0,limit, true));
18219 … self.read_buffer = $rb_plus(ret['$[]'](Opal.Range.$new(limit, -1, false)), self.read_buffer);
18247 if (Opal.rescue($err, [$$$('EOFError')])) {
18250 } finally { Opal.pop_exception(); }
18280 …$a = [self.read_buffer['$[]'](Opal.Range.$new(0,integer, true)), self.read_buffer['$[]'](Opal.Rang…
18307 Opal.yield1(block, s);
18318 Opal.yield1(block, s);
18329 Opal.yield1(block, s);
18406 var console = Opal.global.console;
18412 Opal.modules["opal/regexp_anchors"] = function(Opal) {/* Generated by Opal 1.7.3 */
18413 …var $module = Opal.module, $const_set = Opal.const_set, $nesting = []; Opal.nil; var $$$ = Opal.$$…
18415 Opal.add_stubs('new');
18417 var self = $module($base, 'Opal');
18419 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
18432 Opal.modules["opal/mini"] = function(Opal) {/* Generated by Opal 1.7.3 */
18433 var $Object = Opal.Object; Opal.nil;
18435 Opal.add_stubs('require');
18456 Opal.modules["corelib/kernel/format"] = function(Opal) {/* Generated by Opal 1.7.3 */
18457Opal.coerce_to, $module = Opal.module, $slice = Opal.slice, $truthy = Opal.truthy, $eqeq = Opal.eq…
18459Opal.add_stubs('respond_to?,[],==,length,coerce_to?,nil?,to_a,raise,to_int,fetch,Integer,Float,to_…
18475 ary = $Opal['$coerce_to?'](args['$[]'](0), $$$('Array'), "to_ary");
18954 …aise($$$('NotImplementedError'), "`A` and `a` format field types are not implemented in Opal yet");
19018 Opal.modules["corelib/string/encoding"] = function(Opal) {/* Generated by Opal 1.7.3 */
19019Opal.klass, $hash2 = Opal.hash2, $rb_plus = Opal.rb_plus, $truthy = Opal.truthy, $send = Opal.send…
19021Opal.add_stubs('require,+,[],clone,initialize,new,instance_eval,to_proc,each,const_set,tr,==,defau…
19047 } register = Opal.encodings;
19061 } return Opal.find_encoding(name); });
19123 Opal.yield1(block, chr);
19169 Opal.yield1(block, 0xEF);
19170 Opal.yield1(block, 0xBF);
19171 Opal.yield1(block, 0xBD);
19177 Opal.yield1(block, 0xEF);
19178 Opal.yield1(block, 0xBF);
19179 Opal.yield1(block, 0xBD);
19193 Opal.yield1(block, 0xEF);
19194 Opal.yield1(block, 0xBF);
19195 Opal.yield1(block, 0xBD);
19206 Opal.yield1(block, 0xEF);
19207 Opal.yield1(block, 0xBF);
19208 Opal.yield1(block, 0xBD);
19217 Opal.yield1(block, codePoint);
19220 Opal.yield1(block, codePoint >> 0x6 | 0xC0);
19221 Opal.yield1(block, codePoint & 0x3F | 0x80);
19224 Opal.yield1(block, codePoint >> 0xC | 0xE0);
19225 Opal.yield1(block, codePoint >> 0x6 & 0x3F | 0x80);
19226 Opal.yield1(block, codePoint & 0x3F | 0x80);
19229 Opal.yield1(block, codePoint >> 0x12 | 0xF0);
19230 Opal.yield1(block, codePoint >> 0xC & 0x3F | 0x80);
19231 Opal.yield1(block, codePoint >> 0x6 & 0x3F | 0x80);
19232 Opal.yield1(block, codePoint & 0x3F | 0x80);
19252 Opal.yield1(block, code & 0xff);
19253 Opal.yield1(block, code >> 8);
19270 Opal.yield1(block, code >> 8);
19271 Opal.yield1(block, code & 0xff);
19286 Opal.yield1(block, code & 0xff);
19287 Opal.yield1(block, code >> 8);
19288 Opal.yield1(block, 0);
19289 Opal.yield1(block, 0);
19306 Opal.yield1(block, 0);
19307 Opal.yield1(block, 0);
19308 Opal.yield1(block, code >> 8);
19309 Opal.yield1(block, code & 0xff);
19324 Opal.yield1(block, chr);
19340 Opal.yield1(block, code & 0xff);
19360 Opal.prop(String.prototype, 'bytes', nil);
19361 Opal.prop(String.prototype, 'encoding', $$$($$$('Encoding'), 'UTF_8'));
19362 Opal.prop(String.prototype, 'internal_encoding', $$$($$$('Encoding'), 'UTF_8'));
19429 Opal.yield1(block, self.codePointAt(i));
19446 return Opal.enc(self, encoding);
19457 encoding = $Opal['$coerce_to!'](encoding, $$$('String'), "to_s");
19462 str = Opal.set_encoding(str, encoding);
19473 idx = $Opal['$coerce_to!'](idx, $$$('Integer'), "to_int");
19488 Opal.modules["corelib/math"] = function(Opal) {/* Generated by Opal 1.7.3 */
19489Opal.type_error, $module = Opal.module, $const_set = Opal.const_set, $Class = Opal.Class, $slice =…
19491Opal.add_stubs('new,raise,Float,Integer,module_function,each,define_method,checked,float!,===,gamm…
19495 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
19525 if (Opal.rescue($err, [$$$('ArgumentError')])) {
19528 } finally { Opal.pop_exception(); }
19537 if (Opal.rescue($err, [$$$('ArgumentError')])) {
19540 } finally { Opal.pop_exception(); }
19547 Opal.prop(Math, 'erf', function(x) {
19571 Opal.prop(Math, 'erfc', function(x) {
19789 Opal.modules["corelib/complex/base"] = function(Opal) {/* Generated by Opal 1.7.3 */
19790 …var $module = Opal.module, $truthy = Opal.truthy, $def = Opal.def, $klass = Opal.klass, $nesting =…
19792 Opal.add_stubs('new,from_string');
19797 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
19812 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
19822 Opal.modules["corelib/complex"] = function(Opal) {/* Generated by Opal 1.7.3 */
19823Opal.klass, $truthy = Opal.truthy, $eqeqeq = Opal.eqeqeq, $Kernel = Opal.Kernel, $defs = Opal.defs…
19825Opal.add_stubs('require,real?,===,raise,new,*,cos,sin,attr_reader,freeze,class,==,real,imag,Comple…
19832 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
20232 })(Opal.get_singleton_class(self));
20242 Opal.udef(self, '$' + "negative?");
20243 Opal.udef(self, '$' + "positive?");
20245 Opal.udef(self, '$' + "step"); return nil; })('::', $$$('Numeric'), $nesting);
20248 Opal.modules["corelib/rational/base"] = function(Opal) {/* Generated by Opal 1.7.3 */
20249 var $module = Opal.module, $def = Opal.def, $klass = Opal.klass; Opal.nil; var $$$ = Opal.$$$;
20251 Opal.add_stubs('convert,from_string');
20276 Opal.modules["corelib/rational"] = function(Opal) {/* Generated by Opal 1.7.3 */
20277Opal.klass, $eqeq = Opal.eqeq, $Kernel = Opal.Kernel, $truthy = Opal.truthy, $rb_lt = Opal.rb_lt, …
20279Opal.add_stubs('require,to_i,==,raise,<,-@,new,gcd,/,nil?,===,reduce,to_r,!,equal?,coerce_to!,free…
20320 return $Opal['$coerce_to!'](num, $$$('Rational'), "to_r")
20695 Opal.modules["corelib/time"] = function(Opal) {/* Generated by Opal 1.7.3 */
20696Opal.slice, $deny_frozen_access = Opal.deny_frozen_access, $klass = Opal.klass, $Kernel = Opal.Ker…
20698Opal.add_stubs('require,include,===,raise,coerce_to!,respond_to?,to_str,to_i,_parse_offset,new,<=>…
20704 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
20727 seconds = $Opal['$coerce_to!'](seconds, $$$('Integer'), "to_int");
20735 frac = $Opal['$coerce_to!'](frac, $$$('Integer'), "to_int");
20745 year = $Opal['$coerce_to!'](year, $$$('Integer'), "to_int");
20769 month = $Opal['$coerce_to!'](month, $$$('Integer'), "to_int");
20783 day = $Opal['$coerce_to!'](day, $$$('Integer'), "to_int");
20795 hour = $Opal['$coerce_to!'](hour, $$$('Integer'), "to_int");
20807 min = $Opal['$coerce_to!'](min, $$$('Integer'), "to_int");
20820 sec = $Opal['$coerce_to!'](sec, $$$('Integer'), "to_int");
20897 …$Kernel.$raise($$$('ArgumentError'), "Opal doesn't support other types for a timezone argument tha…
20995 other = $Opal['$coerce_to!'](other, $$$('Integer'), "to_int");
21010 other = $Opal['$coerce_to!'](other, $$$('Integer'), "to_int");
21520 })(Opal.get_singleton_class(self));
21536 Opal.modules["corelib/struct"] = function(Opal) {/* Generated by Opal 1.7.3 */
21537Opal.klass, $slice = Opal.slice, $extract_kwargs = Opal.extract_kwargs, $ensure_kwargs = Opal.ensu…
21539Opal.add_stubs('require,include,!=,upcase,[],==,class,unshift,const_name!,map,coerce_to!,new,each,…
21545 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
21567 const_name = $Opal['$const_name!'](const_name);
21569 if (Opal.rescue($err, [$$$('TypeError'), $$$('NameError')])) {
21574 } finally { Opal.pop_exception(); }
21580 return $Opal['$coerce_to!'](arg, $$$('String'), "to_str");});
21605 })(Opal.get_singleton_class(self));}, {$$s: self});
21729 } name = $Opal['$coerce_to!'](name, $$$('String'), "to_str");
21749 } name = $Opal['$coerce_to!'](name, $$$('String'), "to_str");
21841 return Opal.yield1($yield, self['$[]'](name));}, {$$s: self});
21858 return Opal.yield1($yield, [name, self['$[]'](name)]);}, {$$s: self});
21898 return "" + (name) + "=" + ($$('Opal').$inspect(value));}).$join(", "));
21963 Opal.modules["corelib/set"] = function(Opal) {/* Generated by Opal 1.7.3 */
21964Opal.freeze, $klass = Opal.klass, $slice = Opal.slice, $defs = Opal.defs, $hash2 = Opal.hash2, $tr…
21966Opal.add_stubs('include,new,nil?,===,raise,each,add,merge,class,respond_to?,subtract,dup,join,to_a…
21970 …var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $ret_or_1 = nil, $proto = s…
21999 return self.$add(Opal.yield1(block, item));}, {$$s: self})
22069 return result['$[]'](Opal.yield1(block, item)).$add(item);});
22083 return result['$<<'](Opal.yield1(block, item));});
22139 …return Opal.yield1($yield, o);}), 'each', [], function $$14(o){var self = $$14.$$s == null ? this …
22167 …return Opal.yield1($yield, o);}), 'each', [], function $$16(o){var self = $$16.$$s == null ? this …
22403 Opal.modules["corelib/dir"] = function(Opal) {/* Generated by Opal 1.7.3 */
22404 …var $klass = Opal.klass, $def = Opal.def, $truthy = Opal.truthy, $alias = Opal.alias, nil = Opal.n…
22406 Opal.add_stubs('[],pwd');
22420 prev_cwd = Opal.current_dir;
22421 Opal.current_dir = dir;
22422 return Opal.yieldX($yield, []);;
22424 Opal.current_dir = prev_cwd;
22430 return Opal.current_dir || '.';
22443 })(Opal.get_singleton_class(self))
22447 Opal.modules["corelib/file"] = function(Opal) {/* Generated by Opal 1.7.3 */
22448Opal.truthy, $klass = Opal.klass, $const_set = Opal.const_set, $Opal = Opal.Opal, $regexp = Opal.r…
22450Opal.add_stubs('respond_to?,to_path,coerce_to!,pwd,split,sub,+,unshift,join,home,raise,start_with?…
22463 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
22476 path = $Opal['$coerce_to!'](path, $$$('String'), "to_str");
22547 path = $Opal['$coerce_to!'](path, $$$('String'), "to_str");
22555 return Opal.escape_regexp($$('SEPARATOR'));
22557 return Opal.escape_regexp($rb_plus($$('SEPARATOR'), $$('ALT_SEPARATOR')));
22607 suffix = $Opal['$coerce_to!'](suffix, $$$('String'), "to_str");
22618 suffix = Opal.escape_regexp(suffix);
22637 return filename['$[]'](Opal.Range.$new($rb_plus(last_dot_idx, 1), -1, false))
22642 return Opal.modules[path] != null
22651 for (var key in Opal.modules) {
22705 })(Opal.get_singleton_class(self), $nesting);
22709 Opal.modules["corelib/process/base"] = function(Opal) {/* Generated by Opal 1.7.3 */
22710 …var $klass = Opal.klass, $slice = Opal.slice, $defs = Opal.defs, $return_val = Opal.return_val, ni…
22732 Opal.modules["corelib/process"] = function(Opal) {/* Generated by Opal 1.7.3 */
22733 …module = Opal.module, $defs = Opal.defs, $truthy = Opal.truthy, $return_val = Opal.return_val, $Ke…
22735 Opal.add_stubs('const_set,size,<<,__register_clock__,to_f,now,new,[],raise');
22754 if (Opal.global.performance) {
22759 else if (Opal.global.process && process.hrtime) {
22803 Opal.modules["corelib/random/formatter"] = function(Opal) {/* Generated by Opal 1.7.3 */
22804Opal.klass, $module = Opal.module, $def = Opal.def, $range = Opal.range, $send = Opal.send, $rb_di…
22806Opal.add_stubs('_verify_count,bytes,encode,strict_encode64,random_bytes,urlsafe_encode64,split,hex…
22816 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
22938 limit = $Opal['$coerce_to!'](limit, $$$('Integer'), "to_int");
22963 Opal.modules["corelib/random/mersenne_twister"] = function(Opal) {/* Generated by Opal 1.7.3 */
22964 …var $klass = Opal.klass, $const_set = Opal.const_set, $send = Opal.send, nil = Opal.nil, $$$ = Opa…
22966 Opal.add_stubs('generator=');
23065 Opal.modules["corelib/random"] = function(Opal) {/* Generated by Opal 1.7.3 */
23066Opal.truthy, $klass = Opal.klass, $Kernel = Opal.Kernel, $defs = Opal.defs, $Opal = Opal.Opal, $de…
23068Opal.add_stubs('require,attr_reader,to_int,raise,new_seed,coerce_to!,reseed,rand,seed,bytes,===,==…
23093 seed = $Opal['$coerce_to!'](seed, $$$('Integer'), "to_int");
23103 return self.$rng = Opal.$$rand.reseed(seed); });
23106 return Opal.$$rand.new_seed();
23117 n = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
23164 return Opal.$$rand.rand(self.$rng);
23176 Opal.$$rand = generator;
23186 Opal.modules["corelib/unsupported"] = function(Opal) {/* Generated by Opal 1.7.3 */
23187Opal.Kernel, $klass = Opal.klass, $send = Opal.send, $slice = Opal.slice, $module = Opal.module, $…
23189Opal.add_stubs('raise,warn,each,define_method,%,public,private_method_defined?,private_class_metho…
23195 switch (Opal.config.unsupported_features_severity) {
23219 var ERROR = "String#%s not supported. Mutable String methods are not supported in Opal.";
23234 var ERROR = "Object tainting is not supported by Opal";
23322 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
23347 Opal.queue(function(Opal) {/* Generated by Opal 1.7.3 */
23348 var $Object = Opal.Object; Opal.nil;
23350 Opal.add_stubs('require,autoload');
23373 var Opal$1 = Opal;
23375 Opal.modules["nodejs/base"] = function(Opal) {/* Generated by Opal 1.7.3 */
23376Opal.module, $const_set = Opal.const_set, $eqeq = Opal.eqeq, $lambda = Opal.lambda, $send = Opal.s…
23378 Opal.add_stubs('==,first,shift,write_proc=,read_proc=,tty=');
23387 Opal.exit = process.exit;
23416 Opal.modules["corelib/file"] = function(Opal) {/* Generated by Opal 1.7.3 */
23417Opal.truthy, $klass = Opal.klass, $const_set = Opal.const_set, $Opal = Opal.Opal, $regexp = Opal.r…
23419Opal.add_stubs('respond_to?,to_path,coerce_to!,pwd,split,sub,+,unshift,join,home,raise,start_with?…
23432 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
23445 path = $Opal['$coerce_to!'](path, $$$('String'), "to_str");
23516 path = $Opal['$coerce_to!'](path, $$$('String'), "to_str");
23524 return Opal.escape_regexp($$('SEPARATOR'));
23526 return Opal.escape_regexp($rb_plus($$('SEPARATOR'), $$('ALT_SEPARATOR')));
23576 suffix = $Opal['$coerce_to!'](suffix, $$$('String'), "to_str");
23587 suffix = Opal.escape_regexp(suffix);
23606 return filename['$[]'](Opal.Range.$new($rb_plus(last_dot_idx, 1), -1, false))
23611 return Opal.modules[path] != null
23620 for (var key in Opal.modules) {
23674 })(Opal.get_singleton_class(self), $nesting);
23678 Opal.modules["nodejs/file"] = function(Opal) {/* Generated by Opal 1.7.3 */
23679Opal.klass, $truthy = Opal.truthy, $const_set = Opal.const_set, $defs = Opal.defs, $alias = Opal.a…
23681Opal.add_stubs('require,constants,raise,warn,const_get,new,size,delete,respond_to?,path,join,call,…
23688 switch (Opal.config.unsupported_features_severity) {
23792 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
23831 })(Opal.get_singleton_class(self));
23850 if (error) Opal.IOError.$new(error.message);
23917 return Opal.yield1($yield, file);
24070 Opal.modules["nodejs/dir"] = function(Opal) {/* Generated by Opal 1.7.3 */
24071 …klass = Opal.klass, $def = Opal.def, $truthy = Opal.truthy, $send = Opal.send, $Opal = Opal.Opal, …
24073 Opal.add_stubs('respond_to?,flat_map,to_path,coerce_to!,pwd');
24089 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
24140 } subpattern = $Opal['$coerce_to!'](subpattern, $$('String'), "to_str");
24144 })(Opal.get_singleton_class(self), $nesting);
24148 Opal.modules["nodejs/io"] = function(Opal) {/* Generated by Opal 1.7.3 */
24149 …var $klass = Opal.klass, $alias = Opal.alias, $def = Opal.def, $defs = Opal.defs, self = Opal.top,…
24151 Opal.add_stubs('require,attr_reader,initialize,initialize_before_node_io,write,read');
24164 throw Opal.IOError.$new(error.message)
24172 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
24202 Opal.modules["nodejs/argf"] = function(Opal) {/* Generated by Opal 1.7.3 */
24203Opal.const_set, $return_val = Opal.return_val, $def = Opal.def, $eqeq = Opal.eqeq, $gvars = Opal.g…
24205Opal.add_stubs('new,include,filename,==,open,argv,shift,close,file,closed?,enum_for,gets,nil?,+,lo…
24209 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
24280 Opal.yield1(block, l);
24347 if (Opal.rescue($err, [$$('StandardError')])) {
24350 } finally { Opal.pop_exception(); }
24377 })(Opal.get_singleton_class($$('ARGF')), $nesting);
24381 Opal.modules["nodejs/open-uri"] = function(Opal) {/* Generated by Opal 1.7.3 */
24382 var $module = Opal.module, $defs = Opal.defs, $nesting = [], nil = Opal.nil;
24417 Opal.modules["corelib/comparable"] = function(Opal) {/* Generated by Opal 1.7.3 */
24418Opal.truthy, $module = Opal.module, $rb_gt = Opal.rb_gt, $rb_lt = Opal.rb_lt, $eqeqeq = Opal.eqeqe…
24420 Opal.add_stubs('>,<,===,raise,class,<=>,equal?');
24429 if (Opal.is_a(what, Opal.Integer)) { return what; }
24455 if (self["$<=>"] == Opal.Kernel["$<=>"]) {
24514 if (!Opal.is_a(min, Opal.Range)) {
24549 Opal.modules["pathname"] = function(Opal) {/* Generated by Opal 1.7.3 */
24550Opal.klass, $const_set = Opal.const_set, $regexp = Opal.regexp, $eqeqeq = Opal.eqeqeq, $truthy = O…
24552Opal.add_stubs('require,include,quote,===,to_s,path,respond_to?,to_path,is_a?,nil?,raise,class,==,…
24558 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
24652 return Opal.normalize(self.path)
24715 suffix2 = path2['$[]'](Opal.Range.$new(index_list2.$first(), -1, false));
24858 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
24867 Opal.modules["nodejs/pathname"] = function(Opal) {/* Generated by Opal 1.7.3 */
24868 …var $klass = Opal.klass, $def = Opal.def, $return_ivar = Opal.return_ivar, self = Opal.top, $nesti…
24870 Opal.add_stubs('require,include,to_str,!,absolute?');
24876 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
24899 Opal.modules["nodejs/env"] = function(Opal) {/* Generated by Opal 1.7.3 */
24900Opal.const_set, $def = Opal.def, $truthy = Opal.truthy, $return_val = Opal.return_val, $send = Opa…
24902 Opal.add_stubs('new,to_s,key?,[],raise,to_h,keys,merge');
24906 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
24951 return Opal.yield1(block, key)
24979 })(Opal.get_singleton_class($$('ENV')), $nesting);
24982 Opal.modules["nodejs"] = function(Opal) {/* Generated by Opal 1.7.3 */
24983 var self = Opal.top; Opal.nil;
24985 Opal.add_stubs('require');
24997 Opal.modules["corelib/comparable"] = function(Opal) {/* Generated by Opal 1.7.3 */
24998Opal.truthy, $module = Opal.module, $rb_gt = Opal.rb_gt, $rb_lt = Opal.rb_lt, $eqeqeq = Opal.eqeqe…
25000 Opal.add_stubs('>,<,===,raise,class,<=>,equal?');
25009 if (Opal.is_a(what, Opal.Integer)) { return what; }
25035 if (self["$<=>"] == Opal.Kernel["$<=>"]) {
25094 if (!Opal.is_a(min, Opal.Range)) {
25129 Opal.modules["pathname"] = function(Opal) {/* Generated by Opal 1.7.3 */
25130Opal.klass, $const_set = Opal.const_set, $regexp = Opal.regexp, $eqeqeq = Opal.eqeqeq, $truthy = O…
25132Opal.add_stubs('require,include,quote,===,to_s,path,respond_to?,to_path,is_a?,nil?,raise,class,==,…
25138 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
25232 return Opal.normalize(self.path)
25295 suffix2 = path2['$[]'](Opal.Range.$new(index_list2.$first(), -1, false));
25438 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
25447 Opal.modules["stringio"] = function(Opal) {/* Generated by Opal 1.7.3 */
25448Opal.klass, $defs = Opal.defs, $send2 = Opal.send2, $find_super = Opal.find_super, $def = Opal.def…
25450Opal.add_stubs('new,call,close,attr_accessor,check_readable,==,length,===,>=,raise,>,+,-,seek,chec…
25454 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
25538 before = self.string['$[]'](Opal.Range.$new(0, $rb_minus(self.position, 1), false));
25539 … after = self.string['$[]'](Opal.Range.$new($rb_plus(self.position, string.$length()), -1, false));
25553 …ion = self.string.$length())) : nil), str)) : (((str = self.string['$[]'](Opal.Range.$new(self.pos…
25574 module.exports = Opal$1;