lib/opal/native.rb in opal-native-0.0.4.1 vs lib/opal/native.rb in opal-native-0.0.4.2
- old
+ new
@@ -22,9 +22,11 @@
Kernel.Native(`object[name].apply(object, args)`)
end
def self.included (klass)
+ return super if klass.respond_to? :from_native
+
class << klass
def from_native (object)
instance = allocate
instance.instance_variable_set :@native, object