Class: Turnip::Node::ScenarioDefinition

Inherits:
Base
  • Object
show all
Defined in:
lib/turnip/node/scenario_definition.rb

Direct Known Subclasses

Background, Scenario, ScenarioOutline

Instance Attribute Summary

Attributes inherited from Base

#raw

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from HasLocation

#line, #location

Constructor Details

This class inherits a constructor from Turnip::Node::Base

Instance Method Details

#descriptionObject



15
16
17
# File 'lib/turnip/node/scenario_definition.rb', line 15

def description
  @raw.description
end

#keywordObject



11
12
13
# File 'lib/turnip/node/scenario_definition.rb', line 11

def keyword
  @raw.keyword
end

#nameObject



7
8
9
# File 'lib/turnip/node/scenario_definition.rb', line 7

def name
  @raw.name
end

#stepsObject



19
20
21
22
23
# File 'lib/turnip/node/scenario_definition.rb', line 19

def steps
  @steps ||= @raw.steps.map do |step|
    Step.new(step)
  end
end