Module: Cucumber::PureJava::StepDefinitionExtras

Included in:
Java::CucumberInternal::StepDefinition
Defined in:
lib/cucumber/java.rb

Defined Under Namespace

Classes: JavaException

Instance Method Summary collapse

Instance Method Details

#invoke(world, args) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/cucumber/java.rb', line 20

def invoke(world, args)
  begin
    invokeOnTarget(args)
  rescue Exception => e
    java_exception_to_ruby_exception(e)
    raise(java_exception_to_ruby_exception(e))
  end
end

#regexpObject



16
17
18
# File 'lib/cucumber/java.rb', line 16

def regexp
  Regexp.new(getRegexpString)
end