Sha256: dc6fc79297b506b969085cfc42a5f4728ac9fe6b5f58aa6358caa200cd8edb74

Contents?: true

Size: 417 Bytes

Versions: 10

Compression:

Stored size: 417 Bytes

Contents

class AppModule < JSObjectionModule
  attr_reader :v6_engine

  def init 
    super.tap do
      @v6_engine = V6Engine.new
    end
  end

  def configure
    bind @v6_engine, toClass: Engine
  end
end

class AppModuleII < JSObjectionModule
  def configure
    bindClass ABSBrakes, toClass: Brakes
  end
end

class EagerSingletonModule < JSObjectionModule
  def configure
    registerEagerSingleton EagerCar
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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