Sha256: 81efeaa3bec112b6118373dd44b6496f81d53eb9c3cc4e37d03f9ba3c17c7469

Contents?: true

Size: 510 Bytes

Versions: 13

Compression:

Stored size: 510 Bytes

Contents

class JSObjectionInjector
  alias_method :[], :getObject
  alias_method :inject_dependencies, :injectDependencies
  alias_method :with_module, :withModule
  alias_method :without_module_of_type, :withoutModuleOfType

  def get_object(klass, *args)
    if args.empty?
      getObject klass
    else
      getObject klass, argumentList: args
    end
  end

  def with_modules(*modules)
    withModuleCollection modules
  end

  def without_modules_of_type(*modules)
    withoutModuleCollection modules
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
motion-objection-0.8.6 lib/motion-objection/extensions/js_objection_injector.rb
motion-objection-0.8.5 lib/motion-objection/extensions/js_objection_injector.rb
motion-objection-0.8.4 lib/motion-objection/extensions/js_objection_injector.rb
motion-objection-0.8.3 lib/motion-objection/extensions/js_objection_injector.rb
motion-objection-0.8.2 lib/motion-objection/extensions/js_objection_injector.rb
motion-objection-0.8.1 lib/motion-objection/extensions/js_objection_injector.rb
motion-objection-0.8 lib/motion-objection/extensions/js_objection_injector.rb
motion-objection-0.7.2 lib/motion-objection/extensions/js_objection_injector.rb
motion-objection-0.7.1 lib/motion-objection/extensions/js_objection_injector.rb
motion-objection-0.6.4 lib/motion-objection/jsobjection_injector.rb
motion-objection-0.6.3 lib/motion-objection/jsobjection_injector.rb
motion-objection-0.6.2 lib/motion-objection/jsobjection_injector.rb
motion-objection-0.6.1 lib/motion-objection/jsobjection_injector.rb