Sha256: 6c5876f74cf2838823470c4c007089baa17e2b28e4f602b65a4b2bc67073b9d7
Contents?: true
Size: 505 Bytes
Versions: 11
Compression:
Stored size: 505 Bytes
Contents
// Used for `Function.rs` tests exports.get_function_to_bind = function() { return function() { return this.x || 1; } }; exports.get_value_to_bind_to = function() { return { x: 2 }; }; exports.list = function() { return function() {return Array.prototype.slice.call(arguments);} }; exports.add_arguments = function() { return function(arg1, arg2) {return arg1 + arg2} }; exports.call_function = function(f) { return f(); }; exports.call_function_arg = function(f, arg1) { return f(arg1); };
Version data entries
11 entries across 11 versions & 1 rubygems