gremlin-script
Version:
Generate Gremlin scripts with ease
19 lines (12 loc) • 389 B
JavaScript
;
var inherits = require('util').inherits;
var GremlinMethod = require('./method');
function CollectionAccessor() {
GremlinMethod.call(this, null, arguments[0]);
}
inherits(CollectionAccessor, GremlinMethod);
CollectionAccessor.prototype.toGroovy = function() {
var str = '['+ this.arguments[0].toString() + ']';
return str;
};
module.exports = CollectionAccessor;