No way to directly translate from JS to Ruby

There seems to be some functions missing, in the JavaScript version, but
I have shown a "passing of objects" to a method, instead.