Module: Cucumber::Tree

Defined in:
lib/cucumber/tree.rb,
lib/cucumber/tree/step.rb,
lib/cucumber/tree/table.rb,
lib/cucumber/tree/feature.rb,
lib/cucumber/tree/features.rb,
lib/cucumber/tree/scenario.rb,
lib/cucumber/tree/top_down_visitor.rb

Defined Under Namespace

Classes: BaseScenario, BaseStep, Feature, Features, RowScenario, RowStep, Scenario, Step, Table, TopDownVisitor

Instance Method Summary collapse

Instance Method Details

#Feature(header, &proc) ⇒ Object



7
8
9
10
11
12
# File 'lib/cucumber/tree.rb', line 7

def Feature(header, &proc)
  feature = Feature.new("Feature: " + header, &proc)
  feature.file, _, _ = *caller[0].split(':')
  features << feature
  feature
end

#featuresObject

:nodoc:



14
15
16
# File 'lib/cucumber/tree.rb', line 14

def features #:nodoc:
  @features ||= Tree::Features.new
end