public void addAfterHook(TagExpression tagExpression, Closure body) { world.addBeforeHook(new GroovyHookDefinition(body, tagExpression, instance)); }
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)); }