class Cucumber::Core::Compiler

Compiles the AST into test cases

Attributes

receiver[R]

Public Class Methods

new(receiver) click to toggle source
# File lib/cucumber/core/compiler.rb, line 12
def initialize(receiver)
  @receiver = receiver
end

Public Instance Methods

done() click to toggle source
# File lib/cucumber/core/compiler.rb, line 22
def done
  receiver.done
  self
end
feature(feature) click to toggle source
# File lib/cucumber/core/compiler.rb, line 16
def feature(feature)
  compiler = FeatureCompiler.new(TestCaseBuilder.new(receiver))
  feature.describe_to(compiler)
  self
end