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));
 }