Sha256: 42a606d15156ea43e0612f0aed6df54f18d587f39ed34aa8a7b5cf7e7af2c168

Contents?: true

Size: 422 Bytes

Versions: 10

Compression:

Stored size: 422 Bytes

Contents

module Objection
  module_function

  def injector(*modules)
    if modules.empty?
      JSObjection.createInjector
    elsif modules.size == 1
      JSObjection.createInjector modules.first
    else
      JSObjection.createInjectorWithModulesArray modules
    end
  end

  def default_injector=(injector)
    JSObjection.setDefaultInjector injector
  end

  def default_injector
    JSObjection.defaultInjector
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
motion-objection-0.8.6 lib/motion-objection/objection.rb
motion-objection-0.8.5 lib/motion-objection/objection.rb
motion-objection-0.8.4 lib/motion-objection/objection.rb
motion-objection-0.8.3 lib/motion-objection/objection.rb
motion-objection-0.8.2 lib/motion-objection/objection.rb
motion-objection-0.8.1 lib/motion-objection/objection.rb
motion-objection-0.8 lib/motion-objection/objection.rb
motion-objection-0.7.2 lib/motion-objection/objection.rb
motion-objection-0.7.1 lib/motion-objection/objection.rb
motion-objection-0.6.4 lib/motion-objection/objection.rb