Module: Cucumber::Tree

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

Defined Under Namespace

Classes: BaseScenario, BaseStep, Feature, Features, GivenScenario, RowScenario, RowScenarioOutline, RowStep, RowStepOutline, Scenario, ScenarioOutline, Step, StepOutline, Table, TopDownVisitor

Instance Method Summary collapse

Instance Method Details

#Feature(header, &proc) ⇒ Object



5
6
7
8
9
10
# File 'lib/gems/cucumber-0.1.15/lib/cucumber/tree.rb', line 5

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

#featuresObject

:nodoc:



12
13
14
# File 'lib/gems/cucumber-0.1.15/lib/cucumber/tree.rb', line 12

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