atomicobject/motion-objection

View on GitHub
lib/motion-objection/extensions/js_object_factory.rb

Summary

Maintainability
A
0 mins
Test Coverage
class JSObjectFactory
  alias_method :[], :getObject

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