Sha256: 234e6148162e664fbf76a73a05aa556a1136a5b4af03025c04aea96ce8731da3

Contents?: true

Size: 199 Bytes

Versions: 7

Compression:

Stored size: 199 Bytes

Contents

class JSObjectFactory
  alias_method :[], :getObject

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
motion-objection-0.8.6 lib/motion-objection/extensions/js_object_factory.rb
motion-objection-0.8.5 lib/motion-objection/extensions/js_object_factory.rb
motion-objection-0.8.4 lib/motion-objection/extensions/js_object_factory.rb
motion-objection-0.8.3 lib/motion-objection/extensions/js_object_factory.rb
motion-objection-0.8.2 lib/motion-objection/extensions/js_object_factory.rb
motion-objection-0.8.1 lib/motion-objection/extensions/js_object_factory.rb
motion-objection-0.8 lib/motion-objection/extensions/js_object_factory.rb