
com.tinkerpop.gremlin.groovy.console.PromptClosure Maven / Gradle / Ivy
package com.tinkerpop.gremlin.groovy.console;
import groovy.lang.Closure;
/**
* @author Marko A. Rodriguez (http://markorodriguez.com)
*/
public class PromptClosure extends Closure {
private final String inputPrompt;
public PromptClosure(final Object owner, final String inputPrompt) {
super(owner);
this.inputPrompt = inputPrompt;
}
public Object call() {
return this.inputPrompt;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy