Class: JSObjectionInjector

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-objection/extensions/js_objection_injector.rb

Instance Method Summary collapse

Instance Method Details

#get_object(klass, *args) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/motion-objection/extensions/js_objection_injector.rb', line 7

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

#with_modules(*modules) ⇒ Object



15
16
17
# File 'lib/motion-objection/extensions/js_objection_injector.rb', line 15

def with_modules(*modules)
  withModuleCollection modules
end

#without_modules_of_type(*modules) ⇒ Object



19
20
21
# File 'lib/motion-objection/extensions/js_objection_injector.rb', line 19

def without_modules_of_type(*modules)
  withoutModuleCollection modules
end