Class: Proc

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

Instance Method Summary collapse

Instance Method Details

#to_nativeObject



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

def to_native
	%x{
		var self = this;

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