Module: Cucumber::PureJava

Defined in:
lib/cucumber/java.rb

Defined Under Namespace

Modules: StepDefinitionExtras

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



43
44
45
46
47
# File 'lib/cucumber/java.rb', line 43

def self.extended(base)
  base.instance_eval do
    @__cucumber_java_step_mother = ::Java::CucumberInternal::StepMother.new
  end
end

Instance Method Details

#new_world!Object



53
54
55
# File 'lib/cucumber/java.rb', line 53

def new_world!
  @__cucumber_java_step_mother.newWorld
end

#register_steps(steps_class) ⇒ Object



49
50
51
# File 'lib/cucumber/java.rb', line 49

def register_steps(steps_class)
  @__cucumber_java_step_mother.add(steps_class)
end

#step_definitionsObject



57
58
59
# File 'lib/cucumber/java.rb', line 57

def step_definitions
  @__cucumber_java_step_mother.getStepDefinitions
end