public void addAfterHook(TagExpression tagExpression, Closure body) {
   world.addBeforeHook(new GroovyHookDefinition(body, tagExpression, instance));
 }
예제 #2
0
 public void registerStepdef(RubyObject stepdef) {
   world.addStepDefinition(new JRubyStepDefinition(stepdef));
 }
 public void addStepDefinition(Pattern regexp, Closure body) {
   world.addStepDefinition(new GroovyStepDefinition(regexp, body, stepDefLocation(), instance));
 }