Class: Cucumber::Core::Compiler

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/core/compiler.rb

Overview

Compiles the Pickles into test cases

Instance Method Summary collapse

Constructor Details

#initialize(receiver) ⇒ Compiler

Returns a new instance of Compiler.



17
18
19
# File 'lib/cucumber/core/compiler.rb', line 17

def initialize(receiver)
  @receiver = receiver
end

Instance Method Details

#doneObject



26
27
28
29
# File 'lib/cucumber/core/compiler.rb', line 26

def done
  receiver.done
  self
end

#pickle(pickle) ⇒ Object



21
22
23
24
# File 'lib/cucumber/core/compiler.rb', line 21

def pickle(pickle)
  test_case = create_test_case(pickle)
  test_case.describe_to(receiver)
end