Lines Matching refs:Opal

38   if (typeof(global_object.Opal) !== 'undefined') {
39 console.warn('Opal already loaded. Loading twice can cause troubles, please fix your setup.');
40 return global_object.Opal;
58 // The Opal.Opal class (helpers etc.)
64 // The Opal object that is exposed globally
65 var Opal = global_object.Opal = {};
68 Opal.global = global_object;
71 Opal.config = {
97 } Opal.uid = $uid;
100 Opal.id = function(obj) {
109 var $gvars = Opal.gvars = {};
113 Opal.exit = function(status) { if ($gvars.DEBUG) console.log('Exited with status '+status); };
116 Opal.exceptions = [];
120 Opal.pop_exception = function() {
121 var exception = Opal.exceptions.pop();
135 if (!klass) klass = Opal.Exception || Error;
173 Opal.prop = $prop;
176 Opal.defineProperty = Opal.prop;
178 Opal.slice = $slice;
183 var $truthy = Opal.truthy = function(val) {
187 Opal.falsy = function(val) {
191 Opal.type_error = function(object, type, method, coerced) {
196 $raise(Opal.TypeError,
201 $raise(Opal.TypeError,
207 Opal.coerce_to = function(object, type, method, args) {
210 if (method === 'to_int' && type === Opal.Integer && object.$$is_number)
213 if (method === 'to_str' && type === Opal.String && object.$$is_string)
216 if (Opal.is_a(object, type)) return object;
221 if (body == null || body.$$stub) Opal.type_error(object, type);
226 Opal.type_error(object, type);
230 return Opal.send(object, method, args);
233 Opal.respond_to = function(obj, jsid, include_all) {
243 return Opal.send(obj, obj['$respond_to_missing?'], [jsid.substr(1), include_all]);
246 return Opal.send(obj, obj['$respond_to?'], [jsid.substr(1), include_all]);
254 Opal.trace_class = false;
255 Opal.tracers_for_class = [];
260 for(i = 0, ii = Opal.tracers_for_class.length; i < ii; i++) {
261 tracer = Opal.tracers_for_class[i];
271 Opal.Kernel.$require(cref.$$autoload[name].path);
357 Opal.const_get_local = function(cref, name, skip_missing) {
365 $raise(Opal.TypeError, cref.toString() + " is not a class/module");
374 Opal.const_get_qualified = function(cref, name, skip_missing) {
375 var result, cache, cached, current_version = Opal.const_cache_version;
382 return Opal.const_get_qualified(_Object, cref, skip_missing);
390 $raise(Opal.TypeError, cref.toString() + " is not a class/module");
411 Opal.const_cache_version = 1;
415 Opal.const_get_relative = function(nesting, name, skip_missing) {
416 var cref = nesting[0], result, current_version = Opal.const_cache_version, cache, cached;
460 // Opal.$$.Regexp.$$.IGNORECASE
463 Opal.const_cache_version++;
465 // Expose top level constants onto the Opal object
466 if (cref === _Object) Opal[name] = value;
468 // Name new class directly onto current scope (Opal.Foo.Baz = klass)
477 Opal.const_set = $const_set;
481 Opal.constants = function(cref, inherit) {
487 …if (inherit && cref.$$is_module) modules = modules.concat([Opal.Object]).concat($ancestors(Opal.Ob…
509 Opal.const_remove = function(cref, name) {
510 Opal.const_cache_version++;
523 $raise(Opal.NameError, "constant "+cref+"::"+cref.$name()+" not defined");
527 Opal.const_get_relative_factory = function(nesting) {
529 return Opal.$$(nesting, name, skip_missing);
534 Opal.$$ = Opal.const_get_relative;
535 Opal.$$$ = Opal.const_get_qualified;
536 Opal.$r = Opal.const_get_relative_factory;
608 if (Opal.Class) {
609 $set_proto(klass, Opal.Class.prototype);
638 Opal.build_class_singleton_class(klass);
643 } Opal.allocate_class = $allocate_class;
654 $raise(Opal.TypeError, name + " is not a class");
663 $raise(Opal.TypeError, "superclass mismatch for class " + klass.$$name);
667 Opal.klass = function(scope, superclass, name) {
678 // If the superclass is not an Opal-generated class then we're bridging a native JS class
688 $raise(Opal.TypeError, "superclass must be a Class (" + (
721 Opal.bridge(bridged, klass);
725 if (Opal.trace_class) { invoke_tracers_for_class(klass); }
768 $set_proto(module, Opal.Module.prototype);
771 } Opal.allocate_module = $allocate_module;
779 $raise(Opal.TypeError, name + " is not a module");
786 Opal.module = function(scope, name) {
805 if (Opal.trace_class) { invoke_tracers_for_class(module); }
821 Opal.get_singleton_class = function(object) {
823 $raise(Opal.TypeError, "can't define singleton");
830 return Opal.build_class_singleton_class(object);
832 return Opal.build_module_singleton_class(object);
834 return Opal.build_object_singleton_class(object);
863 Opal.build_class_singleton_class = function(klass) {
871 var superclass = klass === BasicObject ? Class : Opal.get_singleton_class(klass.$$super);
879 $prop(klass, '$$class', Opal.Class);
884 Opal.build_module_singleton_class = function(mod) {
889 var meta = $allocate_class(null, Opal.Module, true);
895 $prop(mod, '$$class', Opal.Module);
904 Opal.build_object_singleton_class = function(object) {
918 Opal.is_method = function(prop) {
922 Opal.instance_methods = function(mod) {
938 if (Opal.is_method(prop)) {
956 Opal.own_instance_methods = function(mod) {
969 if (Opal.is_method(prop)) {
982 Opal.methods = function(obj) {
983 return Opal.instance_methods(obj.$$meta || obj.$$class);
986 Opal.own_methods = function(obj) {
987 return obj.$$meta ? Opal.own_instance_methods(obj.$$meta) : [];
990 Opal.receiver_methods = function(obj) {
991 var mod = Opal.get_singleton_class(obj);
992 var singleton_methods = Opal.own_instance_methods(mod);
993 var instance_methods = Opal.own_instance_methods(mod.$$super);
1003 Opal.class_variables = function(module) {
1025 Opal.class_variable_set = function(module, name, value) {
1047 Opal.class_variable_get = function(module, name, tolerant) {
1063 $raise(Opal.NameError, 'uninitialized class variable '+name+' in '+module.$name());
1130 Opal.append_features = function(module, includer) {
1135 $raise(Opal.ArgumentError, 'cyclic include detected');
1217 Opal.const_cache_version++;
1220 Opal.prepend_features = function(module, prepender) {
1240 $raise(Opal.ArgumentError, 'cyclic prepend detected');
1296 $raise(Opal.RuntimeError, "Prepending a module multiple times is not supported");
1305 Opal.const_cache_version++;
1314 if (Opal.is_method(prop)) {
1385 // Opal.bridge(self, Function);
1391 Opal.bridge = function(native_klass, klass) {
1393 $raise(Opal.ArgumentError, "already bridged");
1405 // - Opal.Object
1406 // - Opal.Kernel
1407 // - Opal.BasicObject
1412 $set_proto(native_klass.prototype, (klass.$$super || Opal.Object).$$prototype);
1438 if (module.$$ancestors_cache_version === Opal.const_cache_version) {
1454 module.$$ancestors_cache_version = Opal.const_cache_version;
1458 } Opal.ancestors = $ancestors;
1460 Opal.included_modules = function(module) {
1496 // Opal.add_stubs("foo,bar,baz=");
1504 Opal.add_stubs = function(stubs) {
1505 var proto = Opal.BasicObject.$$prototype;
1513 Opal.add_stub_for(proto, stub);
1524 Opal.add_stub_for = function(prototype, stub) {
1525 // Opal.stub_for(stub) is the method_missing_stub
1526 $prop(prototype, stub, Opal.stub_for(stub));
1533 Opal.stub_for = function(method_name) {
1565 Opal.ac = function(actual, expected, object, meth) {
1575 …$raise(Opal.ArgumentError, '[' + inspect + '] wrong number of arguments (given ' + actual + ', exp…
1584 Opal.block_ac = function(actual, expected, context) {
1587 …$raise(Opal.ArgumentError, inspect + ': wrong number of arguments (given ' + actual + ', expected …
1598 Opal.find_super = function(obj, mid, current_func, defcheck, allow_stubs) {
1621 $raise(Opal.NoMethodError, 'super: no superclass method `'+mid+"' for "+obj, mid);
1628 Opal.find_block_super = function(obj, jsid, current_func, defcheck, implicit) {
1632 $raise(Opal.RuntimeError, "super called outside of method");
1636 $raise(Opal.RuntimeError,
1646 return Opal.find_super(obj, call_jsid, current_func, defcheck);
1650 Opal.find_super_dispatcher = Opal.find_super;
1653 Opal.find_iter_super_dispatcher = Opal.find_block_super;
1656 Opal.yield1 = function(block, arg) {
1658 $raise(Opal.LocalJumpError, "no block given");
1665 arg = Opal.to_ary(arg);
1677 Opal.yieldX = function(block, args) {
1679 $raise(Opal.LocalJumpError, "no block given");
1700 Opal.rescue = function(exception, candidates) {
1705 var result = Opal.rescue(exception, candidate);
1711 else if (candidate === Opal.JS.Error || candidate['$==='](exception)) {
1719 Opal.is_a = function(object, klass) {
1728 …var ancestors = $ancestors(object.$$is_class ? Opal.get_singleton_class(object) : (object.$$meta |…
1735 Opal.to_hash = function(value) {
1745 $raise(Opal.TypeError, "Can't convert " + value.$$class +
1750 $raise(Opal.TypeError, "no implicit conversion of " + value.$$class + " into Hash");
1760 Opal.to_ary = function(value) {
1773 $raise(Opal.TypeError, "Can't convert " + value.$$class +
1783 Opal.to_a = function(value) {
1797 $raise(Opal.TypeError, "Can't convert " + value.$$class +
1813 Opal.extract_kwargs = function(parameters) {
1815 if (kwargs != null && Opal.respond_to(kwargs, '$to_hash', true)) {
1832 Opal.kwrestargs = function(given_args, used_args) {
1845 return Opal.hash2(keys, map);
1862 Opal.jsid = $jsid;
1870 // Used internally by Opal to invoke method that takes a block or a splat.
1873 // Used internally by Opal to invoke 'super'.
1877 // Opal.send(my_array, 'length') # => 4
1878 // Opal.send(my_array, my_array.$length) # => 4
1880 // Opal.send(my_array, 'reverse!') # => [4, 3, 2, 1]
1881 // Opal.send(my_array, my_array['$reverse!']') # => [4, 3, 2, 1]
1889 Opal.send = function(recv, method, args, block, blockopts) {
1898 $raise(Opal.NameError, "Passed method should be a string or a function");
1901 return Opal.send2(recv, body, method, args, block, blockopts);
1904 Opal.send2 = function(recv, body, method, args, block, blockopts) {
1916 Opal.refined_send = function(refinement_groups, recv, method, args, block, blockopts) {
1923 ancestor = Opal.id(ancestors[i]);
1945 return Opal.send2(recv, body, method, args, block, blockopts);
1951 return Opal.send(recv, method, args, block, blockopts);
1954 Opal.lambda = function(block, blockopts) {
1999 Opal.def = function(obj, jsid, body, blockopts) {
2004 if (obj === Opal.top) {
2005 return Opal.defn(Opal.Object, jsid, body);
2009 return Opal.defn(obj, jsid, body);
2012 return Opal.defs(obj, jsid, body);
2016 // Define method on a module or class (see Opal.def).
2017 Opal.defn = function(module, jsid, body) {
2033 Opal.defs(module, jsid, body);
2053 // Define a singleton method on the given object (see Opal.def).
2054 Opal.defs = function(obj, jsid, body, blockopts) {
2058 $raise(Opal.TypeError, "can't define singleton");
2060 return Opal.defn(Opal.get_singleton_class(obj), jsid, body);
2064 Opal.rdef = function(obj, jsid) {
2066 $raise(Opal.NameError, "method '" + jsid.substr(1) + "' not defined in " + obj.$name());
2084 Opal.udef = function(obj, jsid) {
2086 $raise(Opal.NameError, "method '" + jsid.substr(1) + "' not defined in " + obj.$name());
2089 Opal.add_stub_for(obj.$$prototype, jsid);
2107 Opal.alias = function(obj, name, old) {
2115 obj = Opal.Object;
2122 return Opal.alias(Opal.get_singleton_class(obj), name, old);
2135 body = Opal.Object.$$prototype[old_id];
2139 $raise(Opal.NameError, "undefined method `" + old + "' for class `" + obj.$name() + "'");
2159 return Opal.send(this, body, args, block);
2165 // an exception is thrown breaking Opal altogether.
2179 Opal.defn(obj, id, alias);
2184 Opal.alias_gvar = function(new_name, old_name) {
2198 Opal.alias_native = function(obj, name, native_name) {
2203 …$raise(Opal.NameError, "undefined native method `" + native_name + "' for class `" + obj.$name() +…
2206 Opal.defn(obj, id, body);
2215 Opal.hash_init = function(hash) {
2221 Opal.hash_clone = function(from_hash, to_hash) {
2235 Opal.hash_put(to_hash, key, value);
2239 Opal.hash_put = function(hash, key, value) {
2249 key_hash = hash.$$by_identity ? Opal.id(key) : key.$hash();
2277 Opal.hash_get = function(hash, key) {
2286 key_hash = hash.$$by_identity ? Opal.id(key) : key.$hash();
2300 Opal.hash_delete = function(hash, key) {
2367 Opal.hash_rehash = function(hash) {
2428 Opal.hash = function() {
2435 hash = new Opal.Hash();
2436 Opal.hash_init(hash);
2446 $raise(Opal.ArgumentError, "value not of length 2: " + args[i].$inspect());
2452 Opal.hash_put(hash, key, value);
2463 Opal.hash_put(hash, key, value);
2472 $raise(Opal.ArgumentError, "odd number of arguments for Hash");
2479 Opal.hash_put(hash, key, value);
2490 Opal.hash2 = function(keys, smap) {
2491 var hash = new Opal.Hash();
2503 Opal.range = function(first, last, exc) {
2504 var range = new Opal.Range();
2523 Opal.ivar = function(name) {
2537 …$raise(Opal.FrozenError, "can't modify frozen " + (obj.$class()) + ": " + (obj), Opal.hash2(["rece…
2539 } Opal.deny_frozen_access = $deny_frozen_access;
2542 Opal.freeze = function(obj) {
2567 Opal.freeze_props = function(obj) {
2581 // for Opal 2.0 let for cv should do the trick, instead of a function
2601 Opal.escape_regexp = function(str) {
2612 Opal.global_regexp = function(pattern) {
2627 Opal.global_multiline_regexp = function(pattern) {
2651 Opal.regexp = function(parts, flags) {
2659 Opal.Kernel.$warn(
2661 Opal.hash({uplevel: 1})
2680 Opal.modules = {};
2681 Opal.loaded_features = ['corelib/runtime'];
2682 Opal.current_dir = '.';
2683 Opal.require_table = {'corelib/runtime': true};
2685 Opal.normalize = function(path) {
2688 if (Opal.current_dir !== '.') {
2689 path = Opal.current_dir.replace(/\/*$/, '/') + path;
2705 Opal.loaded = function(paths) {
2709 path = Opal.normalize(paths[i]);
2711 if (Opal.require_table[path]) {
2715 Opal.loaded_features.push(path);
2716 Opal.require_table[path] = true;
2720 Opal.load_normalized = function(path) {
2721 Opal.loaded([path]);
2723 var module = Opal.modules[path];
2726 var retval = module(Opal);
2734 var severity = Opal.config.missing_require_severity;
2738 $raise(Opal.LoadError, message);
2748 Opal.load = function(path) {
2749 path = Opal.normalize(path);
2751 return Opal.load_normalized(path);
2754 Opal.require = function(path) {
2755 path = Opal.normalize(path);
2757 if (Opal.require_table[path]) {
2761 return Opal.load_normalized(path);
2768 Opal.encodings = Object.create(null);
2776 Opal.set_encoding = function(str, name, type) {
2779 $raise(Opal.FrozenError, "can't modify frozen String");
2781 var encoding = Opal.find_encoding(name);
2791 Opal.find_encoding = function(name) {
2792 var register = Opal.encodings;
2794 if (!encoding) $raise(Opal.ArgumentError, "unknown encoding name - " + name);
2799 Opal.enc = function(str, name) {
2801 dup = Opal.set_encoding(dup, name);
2807 Opal.binary = function(str) {
2809 return Opal.set_encoding(dup, "binary", "internal_encoding");
2812 Opal.last_promise = null;
2813 Opal.promise_unhandled_exception = false;
2817 Opal.queue = function(proc) {
2818 if (Opal.last_promise) {
2821 Opal.last_promise = Opal.last_promise.then(function() {
2822 if (!Opal.promise_unhandled_exception) return proc(Opal);
2824 if (Opal.respond_to(error, '$full_message')) {
2829 Opal.promise_unhandled_exception = true;
2830 Opal.exit(1);
2832 return Opal.last_promise;
2835 var ret = proc(Opal);
2837 Opal.last_promise = ret;
2848 Opal.rb_plus = function(l,r) { return are_both_numbers(l,r) ? l + r : l['$+'](r); };
2849 Opal.rb_minus = function(l,r) { return are_both_numbers(l,r) ? l - r : l['$-'](r); };
2850 Opal.rb_times = function(l,r) { return are_both_numbers(l,r) ? l * r : l['$*'](r); };
2851 Opal.rb_divide = function(l,r) { return are_both_numbers(l,r) ? l / r : l['$/'](r); };
2852 Opal.rb_lt = function(l,r) { return are_both_numbers(l,r) ? l < r : l['$<'](r); };
2853 Opal.rb_gt = function(l,r) { return are_both_numbers(l,r) ? l > r : l['$>'](r); };
2854 Opal.rb_le = function(l,r) { return are_both_numbers(l,r) ? l <= r : l['$<='](r); };
2855 Opal.rb_ge = function(l,r) { return are_both_numbers(l,r) ? l >= r : l['$>='](r); };
2865 } Opal.eqeq = $eqeq;
2866 Opal.eqeqeq = function(lhs, rhs) {
2869 Opal.neqeq = function(lhs, rhs) {
2872 Opal.not = function(arg) {
2884 Opal.return_val = $return_val;
2886 Opal.return_self = function() {
2889 Opal.return_ivar = function(ivar) {
2895 Opal.assign_ivar = function(ivar) {
2901 Opal.assign_ivar_val = function(ivar, static_val) {
2909 Opal.ensure_kwargs = function(kwargs) {
2911 return Opal.hash2([], {});
2915 $raise(Opal.ArgumentError, 'expected kwargs');
2919 Opal.get_kwarg = function(kwargs, key) {
2921 $raise(Opal.ArgumentError, 'missing keyword: '+key);
2929 Opal.large_array_unpack = function(str) {
2955 Opal.BasicObject = BasicObject = $allocate_class('BasicObject', null);
2956 Opal.Object = _Object = $allocate_class('Object', Opal.BasicObject);
2957 Opal.Module = Module = $allocate_class('Module', Opal.Object);
2958 Opal.Class = Class = $allocate_class('Class', Opal.Module);
2959 Opal.Opal = _Opal = $allocate_module('Opal');
2960 Opal.Kernel = Kernel = $allocate_module('Kernel');
2962 $set_proto(Opal.BasicObject, Opal.Class.$$prototype);
2963 $set_proto(Opal.Object, Opal.Class.$$prototype);
2964 $set_proto(Opal.Module, Opal.Class.$$prototype);
2965 $set_proto(Opal.Class, Opal.Class.$$prototype);
2975 $const_set(_Object, "Opal", _Opal);
2999 $prop(_Object.$$prototype, '$require', Opal.require);
3002 Opal.top = new _Object();
3003 Opal.top.$to_s = Opal.top.$inspect = $return_val('main');
3004 Opal.top.$define_method = top_define_method;
3011 return Opal.send(_Object, 'define_method', args, block)
3014 Opal.NilClass = $allocate_class('NilClass', Opal.Object);
3015 $const_set(_Object, 'NilClass', Opal.NilClass);
3016 nil = Opal.nil = new Opal.NilClass();
3018 nil.call = nil.apply = function() { $raise(Opal.LocalJumpError, 'no block given'); };
3023 Opal.thrower = function(type) {
3034 Opal.t_eval_return = Opal.thrower("return");
3040 Opal.file_sources = {};
3042 Opal.loaded(["corelib/runtime.js"]);
3043 Opal.modules["corelib/helpers"] = function(Opal) {/* Generated by Opal 1.7.3 */ argument
3044Opal.type_error, $coerce_to = Opal.coerce_to, $module = Opal.module, $defs = Opal.defs, $slice = O…
3046 Opal.add_stubs('===,raise,respond_to?,nil?,__send__,<=>,class,coerce_to!,new,to_s,__id__');
3048 var self = $module($base, 'Opal');
3054 return Opal.bridge(constructor, klass);
3131 name = $Opal['$coerce_to!'](name, $$$('String'), "to_str");
3139 name = $Opal['$coerce_to!'](name, $$$('String'), "to_str");
3148 (const_name = $Opal['$coerce_to!'](const_name, $$$('String'), "to_str"));
3159 const_name = $Opal['$coerce_to!'](const_name, $$$('String'), "to_str");
3176 method = owner_class.$$prototype[Opal.jsid(method_name)];
3215 // anything supporting Opal
3223 if (Opal.rescue($err, [$$$('Exception')])) {(e = $err);
3226 } finally { Opal.pop_exception(); }
3235 Opal.modules["corelib/module"] = function(Opal) {/* Generated by Opal 1.7.3 */
3236Opal.truthy, $coerce_to = Opal.coerce_to, $const_set = Opal.const_set, $Object = Opal.Object, $ret…
3238Opal.add_stubs('module_eval,to_proc,===,raise,equal?,<,>,nil?,attr_reader,attr_writer,warn,attr_ac…
3243 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
3250 var module = Opal.allocate_module(nil, function(){});
3252 if (self !== Opal.Module) Object.setPrototypeOf(module, self.$$prototype);
3273 } return Opal.is_a(object, self); });
3290 for (i = 0, ancestors = Opal.ancestors(self), length = ancestors.length; i < length; i++) {
3296 for (i = 0, ancestors = Opal.ancestors(other), length = ancestors.length; i < length; i++) {
3360 Opal.alias(self, newname, oldname);
3370 Opal.alias_native(self, mid, jsid);
3377 return Opal.ancestors(self);
3385 Opal.append_features(self, includer);
3434 Opal.prop(proto, ivar, nil);
3439 Opal.defn(self, id, body);
3466 Opal.prop(proto, ivar, nil);
3468 Opal.defn(self, id, body);
3479 if (!$$('Opal')['$const_name?'](const$)) {
3491 Opal.const_cache_version++;
3524 return Object.keys(Opal.class_variables(self));
3531 name = $Opal['$class_variable_name!'](name);
3532 return Opal.class_variable_get(self, name, false); });
3539 name = $Opal['$class_variable_name!'](name);
3540 return Opal.class_variable_set(self, name, value); });
3546 name = $Opal['$class_variable_name!'](name);
3547 return Opal.class_variables(self).hasOwnProperty(name); });
3550 $Opal.$pristine(self, "const_added");
3557 name = $Opal['$class_variable_name!'](name);
3559 if (Opal.hasOwnProperty.call(self.$$cvars, name)) {
3573 return Opal.constants(self, inherit); }, -1);
3589 return Opal.constants(self, inherit)
3603 name = $$('Opal')['$const_name!'](name);
3604 if (!$truthy(name['$=~']($$$($Opal, 'CONST_NAME_REGEXP')))) {
3611 modules = modules.concat(Opal.ancestors(self));
3615 modules = modules.concat([$Object]).concat(Opal.ancestors($Object));
3640 name = $$('Opal')['$const_name!'](name);
3651 } if (!$truthy(name['$=~']($$$($Opal, 'CONST_NAME_REGEXP')))) {
3655 return Opal.$$([self], name);
3657 return Opal.const_get_local(self, name);
3674 name = $Opal['$const_name!'](name);
3675 …if (($truthy(name['$!~']($$$($Opal, 'CONST_NAME_REGEXP'))) || ($truthy(name['$start_with?']("::"))…
3725 return Opal.defn(self, $jsid(name), block);
3754 Opal.rdef(self, "$" + name);
3788 return Opal.included_modules(self);
3799 var i, ii, mod2, ancestors = Opal.ancestors(self);
3833 return Opal.instance_methods(self);
3835 return Opal.own_instance_methods(self);
3877 if (($truthy(block['$nil?']()) && ($truthy(!!Opal.compile)))) {
3883 compiling_options = Opal.hash({ arity_check: false }).$merge(default_eval_options);
3884 compiled = $Opal.$compile(string, compiling_options);
3887 return new Function("Opal,self", "return " + compiled)(Opal, self);}, {$$s: self});
3949 Opal.defs(self, id, func);
4021 Opal.prepend_features(self, prepender)
4033 return Opal.const_remove(self, name); });
4038 if ($truthy(($ret_or_1 = Opal.Module.$name.call(self)))) {
4059 Opal.udef(self, "$" + names[i]);
4068 consts = (Opal.Module.$$nesting = $nesting, self.$constants());
4120 klass_id = Opal.id(klass);
4178 Opal.modules["corelib/class"] = function(Opal) {/* Generated by Opal 1.7.3 */
4179Opal.klass, $send = Opal.send, $defs = Opal.defs, $def = Opal.def, $rb_plus = Opal.rb_plus, $retur…
4181Opal.add_stubs('require,class_eval,to_proc,+,subclasses,flatten,map,initialize_copy,allocate,name,…
4187 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
4197 throw Opal.TypeError.$new("superclass must be a Class");
4200 var klass = Opal.allocate_class(nil, superclass);
4211 obj.$$id = Opal.uid();
4242 Opal.send(object, object.$initialize, args, block);
4284 …return "#<Class:#<" + ((singleton_of.$$class).$name()) + ":0x" + ((Opal.id(singleton_of)).$to_s(16…
4307 Opal.modules["corelib/basic_object"] = function(Opal) {/* Generated by Opal 1.7.3 */
4308Opal.klass, $slice = Opal.slice, $def = Opal.def, $alias = Opal.alias, $return_val = Opal.return_v…
4310Opal.add_stubs('==,raise,inspect,pristine,!,nil?,cover?,size,merge,compile,proc,[],first,>=,length…
4344 Opal.prop(self, '$$id', Opal.uid());
4360 var func = self[Opal.jsid(symbol)];
4378 $Opal.$pristine("!");
4392 if (($truthy(block['$nil?']()) && ($truthy(!!Opal.compile)))) {
4398 compiling_options = Opal.hash({ arity_check: false }).$merge(default_eval_options);
4399 compiled = $Opal.$compile(string, compiling_options);
4402 return new Function("Opal,self", "return " + compiled)(Opal, self);}, {$$s: self});
4493 inspect_result = $Opal.$inspect(self);
4496 $Opal.$pristine(self, "method_missing");
4503 Opal.modules["corelib/kernel"] = function(Opal) {/* Generated by Opal 1.7.3 */
4504Opal.truthy, $coerce_to = Opal.coerce_to, $respond_to = Opal.respond_to, $Opal = Opal.Opal, $deny_…
4506Opal.add_stubs('!,=~,==,object_id,raise,new,class,coerce_to?,<<,map,caller,nil?,allocate,copy_inst…
4511 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
4571 return Opal.methods(self);
4573 return Opal.own_methods(self);
4584 return Opal.methods(self);
4586 return Opal.receiver_methods(self);
4603 coerced = $Opal['$coerce_to?'](object, $$$('Array'), "to_ary");
4606 coerced = $Opal['$coerce_to?'](object, $$$('Array'), "to_a");
4682 var other_singleton_class = Opal.get_singleton_class(other);
4683 var self_singleton_class = Opal.get_singleton_class(self);
4688 if (Opal.is_method(name)) {
4795 Opal.exit(status);
4898 inspect = $$('Opal').$inspect(ivar);
4903 if (Opal.rescue($err, [$$('StandardError')])) {(e = $err);
4906 } finally { Opal.pop_exception(); }
4930 name = $Opal['$instance_variable_name!'](name);
4931 return Opal.hasOwnProperty.call(self, name.substr(1)); });
4937 name = $Opal['$instance_variable_name!'](name);
4939 var ivar = self[Opal.ivar(name.substr(1))];
4949 name = $Opal['$instance_variable_name!'](name);
4950 return self[Opal.ivar(name.substr(1))] = value; });
4956 name = $Opal['$instance_variable_name!'](name);
4958 var key = Opal.ivar(name.substr(1)),
5012 return $Opal['$coerce_to!'](value, $$$('Integer'), "to_i");
5106 return $Opal['$coerce_to!'](value, $$$('Float'), "to_f");
5117 } return $Opal['$coerce_to!'](arg, $$$('Hash'), "to_hash");
5128 return Opal.is_a(self, klass);
5138 return Opal.lambda(block); });
5143 file = $Opal['$coerce_to!'](file, $$$('String'), "to_str");
5144 return Opal.load(file);
5158 Opal.yieldX($yield, []);
5160 if (Opal.rescue($err, [$$$('StopIteration')])) {(e = $err);
5163 } finally { Opal.pop_exception(); }
5252 uplevel = $Opal['$coerce_to!'](uplevel, $$$('Integer'), "to_str");
5297 Opal.exceptions.push($gvars["!"]);
5350 $Opal.$pristine(self, "respond_to?", "respond_to_missing?");
5357 if (typeof file !== 'string' && Opal.String && Opal.Array) {
5358 (file = $Opal['$coerce_to!'](file, $$$('String'), "to_str"));
5360 return Opal.require(file)
5367 $Opal['$try_convert!'](file, $$$('String'), "to_str");
5368 file = $$$('File').$expand_path($$$('File').$join(Opal.current_file, "..", file));
5369 return Opal.require(file);
5383 path = Opal.normalize(path);
5385 for (var name in Opal.modules) {
5388 result.push([name, Opal.require(name)]);
5401 return Opal.get_singleton_class(self);
5418 var get_time = Opal.global.performance ?
5437 if ($truthy(($ret_or_1 = $Opal['$coerce_to?'](str, $$$('String'), "to_str")))) {
5440 return $Opal['$coerce_to!'](str, $$$('String'), "to_s")
5448 Opal.yield1(block, self);
5469 return Opal.yield1($yield, tag);;
5471 if (Opal.rescue($err, [$$$('UncaughtThrowError')])) {(e = $err);
5478 } finally { Opal.pop_exception(); }
5505 } return Opal.yield1($yield, self); });
5524 Opal.modules["corelib/main"] = function(Opal) {/* Generated by Opal 1.7.3 */
5525 … $return_val = Opal.return_val, $def = Opal.def, $Object = Opal.Object, $slice = Opal.slice, $Kern…
5527 Opal.add_stubs('include,raise');
5545 return Opal.Object.$autoload.apply(Opal.Object, args); }, -1);
5550 })(Opal.get_singleton_class(self))
5553 Opal.modules["corelib/error/errno"] = function(Opal) {/* Generated by Opal 1.7.3 */
5554Opal.module, $truthy = Opal.truthy, $rb_plus = Opal.rb_plus, $send2 = Opal.send2, $find_super = Op…
5556 Opal.add_stubs('+,errno,class,attr_reader');
5574 klass = Opal.klass(self, Opal.SystemCallError, class_name);
5590 })(Opal.get_singleton_class(klass));
5607 })(Opal.get_singleton_class(self));
5611 Opal.modules["corelib/error"] = function(Opal) {/* Generated by Opal 1.7.3 */
5612Opal.klass, $slice = Opal.slice, $gvars = Opal.gvars, $defs = Opal.defs, $send = Opal.send, $to_a …
5614Opal.add_stubs('new,map,backtrace,clone,to_s,merge,tty?,[],include?,raise,dup,empty?,!,caller,shif…
5619 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
5623 Opal.prop(self.$$prototype, '$$is_exception', true);
5639 Opal.send(error, error.$initialize, args);
5645 if (Opal.config.enable_stack_trace && Error.captureStackTrace) {
6022 Opal.modules["corelib/constants"] = function(Opal) {/* Generated by Opal 1.7.3 */
6023 var $const_set = Opal.const_set; Opal.nil; var $$$ = Opal.$$$;
6033 …$const_set('::', 'RUBY_COPYRIGHT', "opal - Copyright (C) 2011-2023 Adam Beynon and the Opal contri…
6037 Opal.modules["opal/base"] = function(Opal) {/* Generated by Opal 1.7.3 */
6038 var $Object = Opal.Object; Opal.nil;
6040 Opal.add_stubs('require');
6053 Opal.modules["corelib/nil"] = function(Opal) {/* Generated by Opal 1.7.3 */
6054Opal.klass, $Kernel = Opal.Kernel, $def = Opal.def, $return_val = Opal.return_val, $ensure_kwargs …
6056 Opal.add_stubs('raise,name,new,>,length,Rational,to_i');
6073 Opal.udef(self, '$' + "new"); return nil; })(Opal.get_singleton_class(self));
6120 return Opal.hash();
6156 Opal.modules["corelib/boolean"] = function(Opal) {/* Generated by Opal 1.7.3 */
6157Opal.klass, $Kernel = Opal.Kernel, $def = Opal.def, $return_self = Opal.return_self, $ensure_kwarg…
6159 Opal.add_stubs('raise,name,==,to_s,__id__');
6165 Opal.prop(self.$$prototype, '$$is_boolean', true);
6174 return this == true ? Opal.TrueClass :
6175 this == false ? Opal.FalseClass :
6176 Opal.Boolean;
6201 Opal.udef(self, '$' + "new"); return nil; })(Opal.get_singleton_class(self));
6268 var body = self.$$class.$$prototype[Opal.jsid(method)];
6271 } return Opal.send(self, body, args, block);
6276 var body = self.$$class.$$prototype[Opal.jsid(method)];
6287 Opal.modules["corelib/comparable"] = function(Opal) {/* Generated by Opal 1.7.3 */
6288Opal.truthy, $module = Opal.module, $rb_gt = Opal.rb_gt, $rb_lt = Opal.rb_lt, $eqeqeq = Opal.eqeqe…
6290 Opal.add_stubs('>,<,===,raise,class,<=>,equal?');
6299 if (Opal.is_a(what, Opal.Integer)) { return what; }
6325 if (self["$<=>"] == Opal.Kernel["$<=>"]) {
6384 if (!Opal.is_a(min, Opal.Range)) {
6419 Opal.modules["corelib/regexp"] = function(Opal) {/* Generated by Opal 1.7.3 */
6420Opal.coerce_to, $prop = Opal.prop, $freeze = Opal.freeze, $klass = Opal.klass, $const_set = Opal.c…
6422Opal.add_stubs('nil?,[],raise,escape,options,to_str,new,join,coerce_to!,!,match,coerce_to?,begin,f…
6428 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
6434 Opal.prop(self.$$prototype, '$$is_regexp', true);
6436 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
6452 return Opal.escape_regexp(string);
6520 regexp = $Opal['$coerce_to!'](regexp, $$$('String'), "to_str");
6546 })(Opal.get_singleton_class(self), $nesting);
6557 return self.$match($Opal['$coerce_to?'](string, $$$('String'), "to_str")) !== nil
6637 return block === nil ? $gvars["~"] : Opal.yield1(block, $gvars["~"]);
6659 var md, re = Opal.global_regexp(self);
6668 return block === nil ? $gvars["~"] : Opal.yield1(block, $gvars["~"]);
6701 var md, re = Opal.global_regexp(self);
6772 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
6964 index = $Opal['$coerce_to!'](args[i], $$$('Integer'), "to_int");
6984 Opal.modules["corelib/string"] = function(Opal) {/* Generated by Opal 1.7.3 */
6985Opal.coerce_to, $respond_to = Opal.respond_to, $global_multiline_regexp = Opal.global_multiline_re…
6987Opal.add_stubs('require,include,coerce_to?,initialize,===,format,raise,respond_to?,to_s,to_str,<=>…
6994 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
6999 Opal.prop(self.$$prototype, '$$is_string', true);
7008 return $Opal['$coerce_to?'](what, $$$('String'), "to_str")
7097 if (other == "" && self.$$class === Opal.String) return self;
7098 if (self == "" && other.$$class === Opal.String) return other;
7102 return Opal.enc(out, self.encoding);
7317 } separator = $Opal['$coerce_to!'](separator, $$$('String'), "to_str").$to_s();
7481 Opal.yield1(block, self);
7497 Opal.yield1(block, value);
7516 Opal.yield1(block, value);
8119 … match.length == 1 ? Opal.yield1(block, match[0]) : Opal.yield1(block, (match_data).$captures());
8134 return Opal.get_singleton_class(self);
8148 limit = $Opal['$coerce_to!'](limit, $$$('Integer'), "to_int");
8460 jsid = Opal.jsid(method_name);
9041 return $Opal.$pristine(self, "initialize");
9046 Opal.modules["corelib/enumerable"] = function(Opal) {/* Generated by Opal 1.7.3 */
9047Opal.truthy, $coerce_to = Opal.coerce_to, $yield1 = Opal.yield1, $yieldX = Opal.yieldX, $deny_froz…
9049Opal.add_stubs('each,public_send,destructure,to_enum,enumerator_size,new,yield,raise,slice_when,!,…
9053 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
9094 if ($truthy(Opal.yieldX(block, $to_a(value)))) {
9105 if ($truthy($Opal.$destructure(value))) {
9142 if ($truthy(Opal.yieldX(block, $to_a(value)))) {
9153 if ($truthy($Opal.$destructure(value))) {
9221 return Opal.yieldX(block, [before, after])['$!']();});
9278 return $Opal.$destructure(args)['$=='](object);}, -1);
9310 n = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
9318 n = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
9325 var param = $Opal.$destructure(arguments);
9370 value = $Opal.$destructure(args);
9371 if ($truthy(Opal.yield1(block, value))) {
9404 result.push($Opal.$destructure(arguments));
9426 var param = $Opal.$destructure(arguments);
9452 } n = $Opal.$try_convert(n, $$$('Integer'), "to_int");
9471 var element = $Opal.$destructure(arguments);
9498 var item = $Opal.$destructure(arguments);
9527 var param = $Opal.$destructure(arguments);
9560 var param = $Opal.$destructure(arguments);
9581 var param = $Opal.$destructure(arguments);
9600 result.push($Opal.$destructure(arguments));
9631 var param = $Opal.$destructure(arguments),
9666 if ($eqeq($Opal.$destructure(value), object)) {
9676 if ($truthy(Opal.yieldX(block, $to_a(value)))) {
9713 result.push($Opal.$destructure(args));
9743 } value = Opal.yieldX(block, $to_a(value));
9767 } value = Opal.yieldX(block, $to_a(value));
9785 var param = $Opal.$destructure(arguments),
9804 if ($eqeq($Opal.$destructure(args), obj)) {
9824 var value = $Opal.$destructure(arguments);
9847 var value = $Opal.$destructure(arguments);
9894 var item = $Opal.$destructure(arguments);
9945 var param = $Opal.$destructure(arguments),
9976 return Opal.yieldX(block, [a, b]);}).$take(n)
9985 var param = $Opal.$destructure(arguments);
10005 var param = $Opal.$destructure(arguments);
10012 if ($Opal.$compare(param, result) < 0) {
10039 var param = $Opal.$destructure(arguments),
10072 var element = $Opal.$destructure(arguments);
10115 var param = $Opal.$destructure(arguments),
10159 if ($truthy(Opal.yieldX(block, $to_a(value)))) {
10170 item = $Opal.$destructure(value);
10215 if (!$truthy(Opal.yieldX(block, $to_a(value)))) {
10230 if (!$truthy($Opal.$destructure(value))) {
10258 var param = $Opal.$destructure(arguments),
10286 var param = $Opal.$destructure(arguments),
10341 var param = $Opal.$destructure(arguments),
10354 var param = $Opal.$destructure(arguments),
10368 var param = $Opal.$destructure(arguments),
10409 var element = $Opal.$destructure(arguments),
10447 var params = $Opal.$destructure(arguments),
10501 arg = $Opal.$destructure(arguments);
10502 return [Opal.yield1(block, arg), arg];});
10527 item = (($yield !== nil) ? (Opal.yieldX($yield, $to_a(args))) : ($Opal.$destructure(args)));
10561 value = $Opal.$destructure(args);
10562 if (!$truthy(Opal.yield1(block, value))) {
10581 value = $Opal.$destructure(args);
10582 produced = ((block !== nil) ? (Opal.yield1(block, value)) : (value));
10619 var param = $Opal.$destructure(arguments);
10620 var ary = $Opal['$coerce_to?'](param, $$$('Array'), "to_ary"), key, val;
10630 Opal.hash_put(hash, key, val);
10668 Opal.modules["corelib/enumerator/arithmetic_sequence"] = function(Opal) {/* Generated by Opal 1.7.3…
10669Opal.klass, $truthy = Opal.truthy, $to_a = Opal.to_a, $eqeq = Opal.eqeq, $Kernel = Opal.Kernel, $d…
10671Opal.add_stubs('is_a?,==,raise,respond_to?,class,attr_reader,begin,end,exclude_end?,>,step,<,<=,>=…
10680 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
10684 Opal.prop(self.$$prototype, '$$is_arithmetic_seq', true);
10696Opal.Range.$new(self.receiver_num, self.step_arg1, false))) : ($truthy(self.step_arg1) ? (Opal.Ran…
10783 Opal.yield1(block, iter);
10862 Opal.modules["corelib/enumerator/chain"] = function(Opal) {/* Generated by Opal 1.7.3 */
10863Opal.deny_frozen_access, $klass = Opal.klass, $slice = Opal.slice, $def = Opal.def, $send = Opal.s…
10865 Opal.add_stubs('to_enum,size,each,<<,to_proc,include?,+,reverse_each,respond_to?,rewind,inspect');
10956 Opal.modules["corelib/enumerator/generator"] = function(Opal) {/* Generated by Opal 1.7.3 */
10957Opal.deny_frozen_access, $klass = Opal.klass, $truthy = Opal.truthy, $Kernel = Opal.Kernel, $def =…
10959 Opal.add_stubs('include,raise,new,to_proc');
10968 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
10994 Opal.yieldX(self.block, args);
11010 Opal.modules["corelib/enumerator/lazy"] = function(Opal) {/* Generated by Opal 1.7.3 */
11011Opal.truthy, $coerce_to = Opal.coerce_to, $yield1 = Opal.yield1, $yieldX = Opal.yieldX, $deny_froz…
11013Opal.add_stubs('raise,each,new,enumerator_size,yield,respond_to?,try_convert,<,===,+,for,class,to_…
11022 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
11066 if (Opal.rescue($err, [$$('StopLazyError')])) {
11069 } finally { Opal.pop_exception(); }
11117 var array = $Opal.$try_convert(value, $$$('Array'), "to_ary");
11227 var param = $Opal.$destructure(args),
11244 var param = $Opal.$destructure(args),
11338 Opal.modules["corelib/enumerator/yielder"] = function(Opal) {/* Generated by Opal 1.7.3 */
11339 …var $klass = Opal.klass, $def = Opal.def, $slice = Opal.slice, $send = Opal.send, $to_a = Opal.to_…
11341 Opal.add_stubs('yield,proc');
11370 var value = Opal.yieldX(self.block, values);
11400 Opal.modules["corelib/enumerator"] = function(Opal) {/* Generated by Opal 1.7.3 */
11401Opal.slice, $coerce_to = Opal.coerce_to, $deny_frozen_access = Opal.deny_frozen_access, $klass = O…
11403Opal.add_stubs('require,include,allocate,new,to_proc,!,respond_to?,empty?,nil?,+,class,__send__,ca…
11409 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
11498 var param = $Opal.$destructure(arguments),
11578 return self.$raise($$('NotImplementedError'), "Opal doesn't support Enumerator#feed")
11605 Opal.modules["corelib/numeric"] = function(Opal) {/* Generated by Opal 1.7.3 */
11606Opal.klass, $truthy = Opal.truthy, $Kernel = Opal.Kernel, $def = Opal.def, $to_ary = Opal.to_ary, …
11608Opal.add_stubs('require,include,instance_of?,class,Float,respond_to?,coerce,__send__,raise,equal?,…
11786 return $rb_divide($Opal['$coerce_to!'](self, $$$('Rational'), "to_r"), other)
11859 $Opal.$compare(self, limit);
11964 Opal.yield1(block, counter);
12030 Opal.modules["corelib/array"] = function(Opal) {/* Generated by Opal 1.7.3 */
12031Opal.truthy, $falsy = Opal.falsy, $hash_ids = Opal.hash_ids, $yield1 = Opal.yield1, $hash_get = Op…
12033Opal.add_stubs('require,include,to_a,warn,raise,replace,respond_to?,to_ary,coerce_to?,===,join,to_…
12040 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
12044 Opal.prop(self.$$prototype, '$$is_array', true);
12070 if (klass.$$name === Opal.Array) {
12077 // A helper for keep_if and delete_if, filter is either Opal.truthy
12078 // or Opal.falsy.
12173 return $Opal['$coerce_to?'](obj, $$$('Array'), "to_ary")
12369 from = index.begin === nil ? 0 : $coerce_to(index.begin, Opal.Integer, 'to_int');
12370 to = index.end === nil ? -1 : $coerce_to(index.end, Opal.Integer, 'to_int');
12432 index = $coerce_to(index, Opal.Integer, 'to_int');
12450 length = $coerce_to(length, Opal.Integer, 'to_int');
12491 from = index.begin === nil ? 0 : $coerce_to(index.begin, Opal.Integer, 'to_int'),
12492 to = index.end === nil ? -1 : $coerce_to(index.end, Opal.Integer, 'to_int');
12682 n = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
12701 n = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
12796 num = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
12805 Opal.yield1($yield, []);
12808 Opal.yield1($yield, [self[i]]);
12812 Opal.yield1($yield, self.slice());
12832 Opal.yield1($yield, chosen.slice());
12849 num = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
12858 Opal.yield1($yield, copy);
12958 return Opal.yieldX($yield, []);
13055 if (self.$$class === Opal.Array &&
13508 result.push($$('Opal').$inspect(item));
13588 …$Kernel.$raise($$$('NoMethodError').$new("" + ($$('Opal').$inspect(self.$item())) + " doesn't resp…
13595 return result.join($Opal['$coerce_to!'](sep, $$$('String'), "to_str").$to_s());
13687 Opal.yield1(block, []);
13692 Opal.yield1(block, [self[i]]);
13738 num = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
13751 Opal.yield1($yield, copy);
13826 Opal.yield1(block, subarray);
14056 if ($truthy((o = $Opal['$coerce_to?'](count, $$$('Hash'), "to_hash")))) {
14222 rng = $Opal['$coerce_to?'](rng, $$$('Hash'), "to_hash");
14435 if (self.$$class === Opal.Array) {
14439 return Opal.Array.$new(self);
14457 ary = $Opal['$coerce_to?'](array[i], $$$('Array'), "to_ary");
14652 …others[j] = ($truthy(($ret_or_1 = $Opal['$coerce_to?'](o, $$$('Array'), "to_ary"))) ? ($ret_or_1) …
14673 Opal.yield1(block, result[i]);
14720 $Opal.$pristine(self.$singleton_class(), "allocate");
14721 return $Opal.$pristine(self, "copy_instance_variables", "initialize_dup");
14725 Opal.modules["corelib/hash"] = function(Opal) {/* Generated by Opal 1.7.3 */
14726Opal.yield1, $hash = Opal.hash, $hash_init = Opal.hash_init, $hash_get = Opal.hash_get, $hash_put …
14728Opal.add_stubs('require,include,coerce_to?,[],merge!,allocate,raise,coerce_to!,each,fetch,>=,>,==,…
14734 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
14749 hash = $Opal['$coerce_to?'](argv['$[]'](0), $$$('Hash'), "to_hash");
14754 argv = $Opal['$coerce_to?'](argv['$[]'](0), $$$('Array'), "to_ary");
14807 return $Opal['$coerce_to?'](obj, $$$('Hash'), "to_hash")
14866 other = $Opal['$coerce_to!'](other, $$$('Hash'), "to_hash");
14891 other = $Opal['$coerce_to!'](other, $$$('Hash'), "to_hash");
14903 other = $Opal['$coerce_to!'](other, $$$('Hash'), "to_hash");
14911 other = $Opal['$coerce_to!'](other, $$$('Hash'), "to_hash");
14980 Opal.hash_clone(self, hash);
15121 proc = $Opal['$coerce_to!'](proc, $$$('Proc'), "to_proc");
15148 return Opal.yield1(block, key);
15333 level = $Opal['$coerce_to!'](level, $$$('Integer'), "to_int");
15399 var top = (Opal.hash_ids === undefined),
15406 Opal.hash_ids = Object.create(null);
15409 if (Opal[hash_id]) {
15413 for (key in Opal.hash_ids) {
15414 item = Opal.hash_ids[key];
15420 Opal.hash_ids[hash_id] = self;
15436 Opal.hash_ids = undefined;
15522 key = $$('Opal').$inspect(key);
15523 value = $$('Opal').$inspect(value);
15637 other = $Opal['$coerce_to!'](others[i], $$$('Hash'), "to_hash");
15707 Opal.hash_rehash(self);
15784 $deny_frozen_access(self); other = $Opal['$coerce_to!'](other, $$$('Hash'), "to_hash");
15945 if (self.$$class === Opal.Hash) {
15949 var hash = new Opal.Hash();
15952 Opal.hash_clone(self, hash);
16010 var keys = Opal.slice(self.$$keys),
16128 Opal.modules["corelib/number"] = function(Opal) {/* Generated by Opal 1.7.3 */
16129Opal.klass, $Opal = Opal.Opal, $Kernel = Opal.Kernel, $def = Opal.def, $eqeqeq = Opal.eqeqeq, $tru…
16131Opal.add_stubs('require,bridge,raise,name,class,Float,respond_to?,coerce_to!,__coerced__,===,>,!,*…
16138 $Opal.$bridge(Number, self);
16139 Opal.prop(self.$$prototype, '$$is_number', true);
16152 Opal.udef(self, '$' + "new"); return nil; })(Opal.get_singleton_class(self));
16165 return [$Opal['$coerce_to!'](other, $$$('Float'), "to_f"), self];
16375 if (Opal.rescue($err, [$$$('ArgumentError')])) {
16378 } finally { Opal.pop_exception(); }
16387 count = $Opal['$coerce_to!'](count, $$$('Integer'), "to_int");
16395 count = $Opal['$coerce_to!'](count, $$$('Integer'), "to_int");
16403 bit = $Opal['$coerce_to!'](bit, $$$('Integer'), "to_int");
16483 mask = $Opal['$coerce_to!'](mask, $$$('Integer'), "to_int");
16490 mask = $Opal['$coerce_to!'](mask, $$$('Integer'), "to_int");
16562 return Opal.enc(String.fromCharCode(self), encoding || "BINARY"); }, -1);
16723 mask = $Opal['$coerce_to!'](mask, $$$('Integer'), "to_int");
16834 } ndigits = $Opal['$coerce_to!'](ndigits, $$$('Integer'), "to_int");
16853 } ndigits = $Opal['$coerce_to!'](ndigits || 0, $$$('Integer'), "to_int");
16913 base = $Opal['$coerce_to!'](base, $$$('Integer'), "to_int");
16949 } base = $Opal['$coerce_to!'](base, $$$('Integer'), "to_int");
17140 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
17150 Opal.udef(self, '$' + "new");
17154 n = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
17165 return $$('Opal')['$coerce_to?'](object, self, "to_int")
17167 })(Opal.get_singleton_class(self), $nesting);
17186 Opal.udef(self, '$' + "new"); return $def(self, '$===', function $eq_eq_eq$41(other) {
17190 })(Opal.get_singleton_class(self));
17202 Opal.modules["corelib/range"] = function(Opal) {/* Generated by Opal 1.7.3 */
17203Opal.klass, $truthy = Opal.truthy, $Kernel = Opal.Kernel, $def = Opal.def, $not = Opal.not, $send2…
17205Opal.add_stubs('require,include,attr_reader,raise,nil?,<=>,include?,!,<,<=,enum_for,size,upto,to_p…
17211 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
17310 Opal.yield1(block, current);
17313 Opal.yield1(block, current);
17411 n = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
17483 Opal.yield1($yield, current);
17499 return Opal.yield1($yield, value);
17561 Opal.modules["corelib/proc"] = function(Opal) {/* Generated by Opal 1.7.3 */
17562Opal.slice, $klass = Opal.klass, $truthy = Opal.truthy, $Kernel = Opal.Kernel, $defs = Opal.defs, …
17564 Opal.add_stubs('raise,proc,call,to_proc,new,source_location,coerce_to!,dup');
17570 Opal.prop(self.$$prototype, '$$is_proc', true);
17571 Opal.prop(self.$$prototype, '$$is_lambda', false);
17600 result = Opal.yieldX(self, args);
17619 result = Opal.yieldX(self, args);
17734 arity = $Opal['$coerce_to!'](arity, $$$('Integer'), "to_int");
17792 Opal.modules["corelib/method"] = function(Opal) {/* Generated by Opal 1.7.3 */
17793Opal.klass, $def = Opal.def, $truthy = Opal.truthy, $slice = Opal.slice, $alias = Opal.alias, $Ker…
17795Opal.add_stubs('attr_reader,arity,curry,>>,<<,new,class,join,source_location,call,raise,bind,to_pr…
17959 if (self.owner.$$is_module || Opal.is_a(object, self.owner)) {
17984 Opal.modules["corelib/variables"] = function(Opal) {/* Generated by Opal 1.7.3 */
17985 …var $gvars = Opal.gvars, $const_set = Opal.const_set, $Object = Opal.Object, $hash2 = Opal.hash2, …
17987 Opal.add_stubs('new');
17990 $gvars.LOADED_FEATURES = ($gvars["\""] = Opal.loaded_features);
18002 Opal.modules["corelib/io"] = function(Opal) {/* Generated by Opal 1.7.3 */
18003Opal.klass, $const_set = Opal.const_set, $not = Opal.not, $truthy = Opal.truthy, $def = Opal.def, …
18005Opal.add_stubs('attr_reader,attr_accessor,!,match?,include?,size,write,String,flatten,puts,sysread…
18209 ret = ret['$[]'](Opal.Range.$new(0,limit, true));
18210 … self.read_buffer = $rb_plus(ret['$[]'](Opal.Range.$new(limit, -1, false)), self.read_buffer);
18238 if (Opal.rescue($err, [$$$('EOFError')])) {
18241 } finally { Opal.pop_exception(); }
18271 …$a = [self.read_buffer['$[]'](Opal.Range.$new(0,integer, true)), self.read_buffer['$[]'](Opal.Rang…
18298 Opal.yield1(block, s);
18309 Opal.yield1(block, s);
18320 Opal.yield1(block, s);
18397 var console = Opal.global.console;
18403 Opal.modules["opal/regexp_anchors"] = function(Opal) {/* Generated by Opal 1.7.3 */
18404 …var $module = Opal.module, $const_set = Opal.const_set, $nesting = []; Opal.nil; var $$$ = Opal.$$…
18406 Opal.add_stubs('new');
18408 var self = $module($base, 'Opal');
18410 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
18423 Opal.modules["opal/mini"] = function(Opal) {/* Generated by Opal 1.7.3 */
18424 var $Object = Opal.Object; Opal.nil;
18426 Opal.add_stubs('require');
18447 Opal.modules["corelib/kernel/format"] = function(Opal) {/* Generated by Opal 1.7.3 */
18448Opal.coerce_to, $module = Opal.module, $slice = Opal.slice, $truthy = Opal.truthy, $eqeq = Opal.eq…
18450Opal.add_stubs('respond_to?,[],==,length,coerce_to?,nil?,to_a,raise,to_int,fetch,Integer,Float,to_…
18466 ary = $Opal['$coerce_to?'](args['$[]'](0), $$$('Array'), "to_ary");
18945 …aise($$$('NotImplementedError'), "`A` and `a` format field types are not implemented in Opal yet");
19009 Opal.modules["corelib/string/encoding"] = function(Opal) {/* Generated by Opal 1.7.3 */
19010Opal.klass, $hash2 = Opal.hash2, $rb_plus = Opal.rb_plus, $truthy = Opal.truthy, $send = Opal.send…
19012Opal.add_stubs('require,+,[],clone,initialize,new,instance_eval,to_proc,each,const_set,tr,==,defau…
19038 } register = Opal.encodings;
19052 } return Opal.find_encoding(name); });
19114 Opal.yield1(block, chr);
19160 Opal.yield1(block, 0xEF);
19161 Opal.yield1(block, 0xBF);
19162 Opal.yield1(block, 0xBD);
19168 Opal.yield1(block, 0xEF);
19169 Opal.yield1(block, 0xBF);
19170 Opal.yield1(block, 0xBD);
19184 Opal.yield1(block, 0xEF);
19185 Opal.yield1(block, 0xBF);
19186 Opal.yield1(block, 0xBD);
19197 Opal.yield1(block, 0xEF);
19198 Opal.yield1(block, 0xBF);
19199 Opal.yield1(block, 0xBD);
19208 Opal.yield1(block, codePoint);
19211 Opal.yield1(block, codePoint >> 0x6 | 0xC0);
19212 Opal.yield1(block, codePoint & 0x3F | 0x80);
19215 Opal.yield1(block, codePoint >> 0xC | 0xE0);
19216 Opal.yield1(block, codePoint >> 0x6 & 0x3F | 0x80);
19217 Opal.yield1(block, codePoint & 0x3F | 0x80);
19220 Opal.yield1(block, codePoint >> 0x12 | 0xF0);
19221 Opal.yield1(block, codePoint >> 0xC & 0x3F | 0x80);
19222 Opal.yield1(block, codePoint >> 0x6 & 0x3F | 0x80);
19223 Opal.yield1(block, codePoint & 0x3F | 0x80);
19243 Opal.yield1(block, code & 0xff);
19244 Opal.yield1(block, code >> 8);
19261 Opal.yield1(block, code >> 8);
19262 Opal.yield1(block, code & 0xff);
19277 Opal.yield1(block, code & 0xff);
19278 Opal.yield1(block, code >> 8);
19279 Opal.yield1(block, 0);
19280 Opal.yield1(block, 0);
19297 Opal.yield1(block, 0);
19298 Opal.yield1(block, 0);
19299 Opal.yield1(block, code >> 8);
19300 Opal.yield1(block, code & 0xff);
19315 Opal.yield1(block, chr);
19331 Opal.yield1(block, code & 0xff);
19351 Opal.prop(String.prototype, 'bytes', nil);
19352 Opal.prop(String.prototype, 'encoding', $$$($$$('Encoding'), 'UTF_8'));
19353 Opal.prop(String.prototype, 'internal_encoding', $$$($$$('Encoding'), 'UTF_8'));
19420 Opal.yield1(block, self.codePointAt(i));
19437 return Opal.enc(self, encoding);
19448 encoding = $Opal['$coerce_to!'](encoding, $$$('String'), "to_s");
19453 str = Opal.set_encoding(str, encoding);
19464 idx = $Opal['$coerce_to!'](idx, $$$('Integer'), "to_int");
19479 Opal.modules["corelib/math"] = function(Opal) {/* Generated by Opal 1.7.3 */
19480Opal.type_error, $module = Opal.module, $const_set = Opal.const_set, $Class = Opal.Class, $slice =…
19482Opal.add_stubs('new,raise,Float,Integer,module_function,each,define_method,checked,float!,===,gamm…
19486 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
19516 if (Opal.rescue($err, [$$$('ArgumentError')])) {
19519 } finally { Opal.pop_exception(); }
19528 if (Opal.rescue($err, [$$$('ArgumentError')])) {
19531 } finally { Opal.pop_exception(); }
19538 Opal.prop(Math, 'erf', function(x) {
19562 Opal.prop(Math, 'erfc', function(x) {
19780 Opal.modules["corelib/complex/base"] = function(Opal) {/* Generated by Opal 1.7.3 */
19781 …var $module = Opal.module, $truthy = Opal.truthy, $def = Opal.def, $klass = Opal.klass, $nesting =…
19783 Opal.add_stubs('new,from_string');
19788 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
19803 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
19813 Opal.modules["corelib/complex"] = function(Opal) {/* Generated by Opal 1.7.3 */
19814Opal.klass, $truthy = Opal.truthy, $eqeqeq = Opal.eqeqeq, $Kernel = Opal.Kernel, $defs = Opal.defs…
19816Opal.add_stubs('require,real?,===,raise,new,*,cos,sin,attr_reader,freeze,class,==,real,imag,Comple…
19823 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
20223 })(Opal.get_singleton_class(self));
20233 Opal.udef(self, '$' + "negative?");
20234 Opal.udef(self, '$' + "positive?");
20236 Opal.udef(self, '$' + "step"); return nil; })('::', $$$('Numeric'), $nesting);
20239 Opal.modules["corelib/rational/base"] = function(Opal) {/* Generated by Opal 1.7.3 */
20240 var $module = Opal.module, $def = Opal.def, $klass = Opal.klass; Opal.nil; var $$$ = Opal.$$$;
20242 Opal.add_stubs('convert,from_string');
20267 Opal.modules["corelib/rational"] = function(Opal) {/* Generated by Opal 1.7.3 */
20268Opal.klass, $eqeq = Opal.eqeq, $Kernel = Opal.Kernel, $truthy = Opal.truthy, $rb_lt = Opal.rb_lt, …
20270Opal.add_stubs('require,to_i,==,raise,<,-@,new,gcd,/,nil?,===,reduce,to_r,!,equal?,coerce_to!,free…
20311 return $Opal['$coerce_to!'](num, $$$('Rational'), "to_r")
20686 Opal.modules["corelib/time"] = function(Opal) {/* Generated by Opal 1.7.3 */
20687Opal.slice, $deny_frozen_access = Opal.deny_frozen_access, $klass = Opal.klass, $Kernel = Opal.Ker…
20689Opal.add_stubs('require,include,===,raise,coerce_to!,respond_to?,to_str,to_i,_parse_offset,new,<=>…
20695 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
20718 seconds = $Opal['$coerce_to!'](seconds, $$$('Integer'), "to_int");
20726 frac = $Opal['$coerce_to!'](frac, $$$('Integer'), "to_int");
20736 year = $Opal['$coerce_to!'](year, $$$('Integer'), "to_int");
20760 month = $Opal['$coerce_to!'](month, $$$('Integer'), "to_int");
20774 day = $Opal['$coerce_to!'](day, $$$('Integer'), "to_int");
20786 hour = $Opal['$coerce_to!'](hour, $$$('Integer'), "to_int");
20798 min = $Opal['$coerce_to!'](min, $$$('Integer'), "to_int");
20811 sec = $Opal['$coerce_to!'](sec, $$$('Integer'), "to_int");
20888 …$Kernel.$raise($$$('ArgumentError'), "Opal doesn't support other types for a timezone argument tha…
20986 other = $Opal['$coerce_to!'](other, $$$('Integer'), "to_int");
21001 other = $Opal['$coerce_to!'](other, $$$('Integer'), "to_int");
21511 })(Opal.get_singleton_class(self));
21527 Opal.modules["corelib/struct"] = function(Opal) {/* Generated by Opal 1.7.3 */
21528Opal.klass, $slice = Opal.slice, $extract_kwargs = Opal.extract_kwargs, $ensure_kwargs = Opal.ensu…
21530Opal.add_stubs('require,include,!=,upcase,[],==,class,unshift,const_name!,map,coerce_to!,new,each,…
21536 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
21558 const_name = $Opal['$const_name!'](const_name);
21560 if (Opal.rescue($err, [$$$('TypeError'), $$$('NameError')])) {
21565 } finally { Opal.pop_exception(); }
21571 return $Opal['$coerce_to!'](arg, $$$('String'), "to_str");});
21596 })(Opal.get_singleton_class(self));}, {$$s: self});
21720 } name = $Opal['$coerce_to!'](name, $$$('String'), "to_str");
21740 } name = $Opal['$coerce_to!'](name, $$$('String'), "to_str");
21832 return Opal.yield1($yield, self['$[]'](name));}, {$$s: self});
21849 return Opal.yield1($yield, [name, self['$[]'](name)]);}, {$$s: self});
21889 return "" + (name) + "=" + ($$('Opal').$inspect(value));}).$join(", "));
21954 Opal.modules["corelib/set"] = function(Opal) {/* Generated by Opal 1.7.3 */
21955Opal.freeze, $klass = Opal.klass, $slice = Opal.slice, $defs = Opal.defs, $hash2 = Opal.hash2, $tr…
21957Opal.add_stubs('include,new,nil?,===,raise,each,add,merge,class,respond_to?,subtract,dup,join,to_a…
21961 …var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $ret_or_1 = nil, $proto = s…
21990 return self.$add(Opal.yield1(block, item));}, {$$s: self})
22060 return result['$[]'](Opal.yield1(block, item)).$add(item);});
22074 return result['$<<'](Opal.yield1(block, item));});
22130 …return Opal.yield1($yield, o);}), 'each', [], function $$14(o){var self = $$14.$$s == null ? this …
22158 …return Opal.yield1($yield, o);}), 'each', [], function $$16(o){var self = $$16.$$s == null ? this …
22394 Opal.modules["corelib/dir"] = function(Opal) {/* Generated by Opal 1.7.3 */
22395 …var $klass = Opal.klass, $def = Opal.def, $truthy = Opal.truthy, $alias = Opal.alias, nil = Opal.n…
22397 Opal.add_stubs('[],pwd');
22411 prev_cwd = Opal.current_dir;
22412 Opal.current_dir = dir;
22413 return Opal.yieldX($yield, []);;
22415 Opal.current_dir = prev_cwd;
22421 return Opal.current_dir || '.';
22434 })(Opal.get_singleton_class(self))
22438 Opal.modules["corelib/file"] = function(Opal) {/* Generated by Opal 1.7.3 */
22439Opal.truthy, $klass = Opal.klass, $const_set = Opal.const_set, $Opal = Opal.Opal, $regexp = Opal.r…
22441Opal.add_stubs('respond_to?,to_path,coerce_to!,pwd,split,sub,+,unshift,join,home,raise,start_with?…
22454 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
22467 path = $Opal['$coerce_to!'](path, $$$('String'), "to_str");
22538 path = $Opal['$coerce_to!'](path, $$$('String'), "to_str");
22546 return Opal.escape_regexp($$('SEPARATOR'));
22548 return Opal.escape_regexp($rb_plus($$('SEPARATOR'), $$('ALT_SEPARATOR')));
22598 suffix = $Opal['$coerce_to!'](suffix, $$$('String'), "to_str");
22609 suffix = Opal.escape_regexp(suffix);
22628 return filename['$[]'](Opal.Range.$new($rb_plus(last_dot_idx, 1), -1, false))
22633 return Opal.modules[path] != null
22642 for (var key in Opal.modules) {
22696 })(Opal.get_singleton_class(self), $nesting);
22700 Opal.modules["corelib/process/base"] = function(Opal) {/* Generated by Opal 1.7.3 */
22701 …var $klass = Opal.klass, $slice = Opal.slice, $defs = Opal.defs, $return_val = Opal.return_val, ni…
22723 Opal.modules["corelib/process"] = function(Opal) {/* Generated by Opal 1.7.3 */
22724 …module = Opal.module, $defs = Opal.defs, $truthy = Opal.truthy, $return_val = Opal.return_val, $Ke…
22726 Opal.add_stubs('const_set,size,<<,__register_clock__,to_f,now,new,[],raise');
22745 if (Opal.global.performance) {
22750 else if (Opal.global.process && process.hrtime) {
22794 Opal.modules["corelib/random/formatter"] = function(Opal) {/* Generated by Opal 1.7.3 */
22795Opal.klass, $module = Opal.module, $def = Opal.def, $range = Opal.range, $send = Opal.send, $rb_di…
22797Opal.add_stubs('_verify_count,bytes,encode,strict_encode64,random_bytes,urlsafe_encode64,split,hex…
22807 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
22929 limit = $Opal['$coerce_to!'](limit, $$$('Integer'), "to_int");
22954 Opal.modules["corelib/random/mersenne_twister"] = function(Opal) {/* Generated by Opal 1.7.3 */
22955 …var $klass = Opal.klass, $const_set = Opal.const_set, $send = Opal.send, nil = Opal.nil, $$$ = Opa…
22957 Opal.add_stubs('generator=');
23056 Opal.modules["corelib/random"] = function(Opal) {/* Generated by Opal 1.7.3 */
23057Opal.truthy, $klass = Opal.klass, $Kernel = Opal.Kernel, $defs = Opal.defs, $Opal = Opal.Opal, $de…
23059Opal.add_stubs('require,attr_reader,to_int,raise,new_seed,coerce_to!,reseed,rand,seed,bytes,===,==…
23084 seed = $Opal['$coerce_to!'](seed, $$$('Integer'), "to_int");
23094 return self.$rng = Opal.$$rand.reseed(seed); });
23097 return Opal.$$rand.new_seed();
23108 n = $Opal['$coerce_to!'](n, $$$('Integer'), "to_int");
23155 return Opal.$$rand.rand(self.$rng);
23167 Opal.$$rand = generator;
23177 Opal.modules["corelib/unsupported"] = function(Opal) {/* Generated by Opal 1.7.3 */
23178Opal.Kernel, $klass = Opal.klass, $send = Opal.send, $slice = Opal.slice, $module = Opal.module, $…
23180Opal.add_stubs('raise,warn,each,define_method,%,public,private_method_defined?,private_class_metho…
23186 switch (Opal.config.unsupported_features_severity) {
23210 var ERROR = "String#%s not supported. Mutable String methods are not supported in Opal.";
23225 var ERROR = "Object tainting is not supported by Opal";
23313 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
23338 Opal.queue(function(Opal) {/* Generated by Opal 1.7.3 */ argument
23339 var $Object = Opal.Object; Opal.nil;
23341 Opal.add_stubs('require,autoload');
23364 var Opal$1 = Opal;
23366 Opal.modules["corelib/comparable"] = function(Opal) {/* Generated by Opal 1.7.3 */
23367Opal.truthy, $module = Opal.module, $rb_gt = Opal.rb_gt, $rb_lt = Opal.rb_lt, $eqeqeq = Opal.eqeqe…
23369 Opal.add_stubs('>,<,===,raise,class,<=>,equal?');
23378 if (Opal.is_a(what, Opal.Integer)) { return what; }
23404 if (self["$<=>"] == Opal.Kernel["$<=>"]) {
23463 if (!Opal.is_a(min, Opal.Range)) {
23498 Opal.modules["pathname"] = function(Opal) {/* Generated by Opal 1.7.3 */
23499Opal.klass, $const_set = Opal.const_set, $regexp = Opal.regexp, $eqeqeq = Opal.eqeqeq, $truthy = O…
23501Opal.add_stubs('require,include,quote,===,to_s,path,respond_to?,to_path,is_a?,nil?,raise,class,==,…
23507 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
23601 return Opal.normalize(self.path)
23664 suffix2 = path2['$[]'](Opal.Range.$new(index_list2.$first(), -1, false));
23807 var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);
23816 Opal.modules["stringio"] = function(Opal) {/* Generated by Opal 1.7.3 */
23817Opal.klass, $defs = Opal.defs, $send2 = Opal.send2, $find_super = Opal.find_super, $def = Opal.def…
23819Opal.add_stubs('new,call,close,attr_accessor,check_readable,==,length,===,>=,raise,>,+,-,seek,chec…
23823 … var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting), $proto = self.$$prototype;
23907 before = self.string['$[]'](Opal.Range.$new(0, $rb_minus(self.position, 1), false));
23908 … after = self.string['$[]'](Opal.Range.$new($rb_plus(self.position, string.$length()), -1, false));
23922 …ion = self.string.$length())) : nil), str)) : (((str = self.string['$[]'](Opal.Range.$new(self.pos…
23943 export { Opal$1 as default };