Sha256: b8990da913353c6e6fd0c0868fe5cf8de4dd7b57c92d88835b229ae13c840da1

Contents?: true

Size: 286 Bytes

Versions: 3

Compression:

Stored size: 286 Bytes

Contents

# allows hyperstack to include Native::Wrapper even if running Opal 0.11
module Native
  module Wrapper
    def self.included(klass)
      if Native.instance_methods.include? :to_n
        klass.include Native
      else
        klass.extend Native::Helpers
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hyperstack-config-1.0.alpha1.8 lib/hyperstack/native_wrapper_compatibility.rb
hyperstack-config-1.0.alpha1.7 lib/hyperstack/native_wrapper_compatibility.rb
hyperstack-config-1.0.alpha1.6 lib/hyperstack/native_wrapper_compatibility.rb