Sha256: b65a4d7e159197ee779dc45b11f65260d974c0d40679f7630f7d73df95dccb31
Contents?: true
Size: 516 Bytes
Versions: 3
Compression:
Stored size: 516 Bytes
Contents
# Exposes all the VM methods for opal as ruby methods on this module. module OpalVM # Define a bridged class that will extend the given native prototype. # Classes here must extend Object, and will be placed in the top level # scope. As soon as this is called, the class generated will be available # for immediate use. # # @param [NativePrototype] prototype # @param [String] name def self.bridged_class(prototype, name) `VM.bridged_class(prototype, null, name, VM.Object);` nil end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
opal-0.3.2 | gems/core/lib/core/vm.rb |
opal-0.3.1 | gems/core/lib/core/vm.rb |
opal-0.3.0 | gems/core/lib/core/vm.rb |