Class: JSObjectFactory
- Inherits:
-
Object
- Object
- JSObjectFactory
- Defined in:
- lib/motion-objection/extensions/js_object_factory.rb
Instance Method Summary collapse
Instance Method Details
#get_object(klass, *args) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/motion-objection/extensions/js_object_factory.rb', line 4 def get_object(klass, *args) if args.empty? getObject klass else getObject klass, withArgumentList: args end end |