Class: Proc

Inherits:
Object show all
Defined in:
lib/opal/native.rb

Instance Method Summary collapse

Instance Method Details

#to_nativeObject



238
239
240
241
242
243
244
245
246
247
248
# File 'lib/opal/native.rb', line 238

def to_native
	%x{
		var self = this;

		return (function () {
			return self.apply(self.$S, [null].concat(#{
				`$slice.call(arguments)`.map { |o| Kernel.Native(o) }
			}));
		});
	}
end