Class: YARD::CodeObjects::Cucumber::ScenarioOutline

Inherits:
NamespaceObject
  • Object
show all
Defined in:
lib/yard/code_objects/cucumber/scenario_outline.rb

Defined Under Namespace

Classes: Examples

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from LocationHelper

#file, #line_number, #location

Constructor Details

#initialize(namespace, name) ⇒ ScenarioOutline

Returns a new instance of ScenarioOutline.



7
8
9
10
11
12
13
14
# File 'lib/yard/code_objects/cucumber/scenario_outline.rb', line 7

def initialize(namespace, name)
  super(namespace, name.to_s.strip)
  @comments = @description = @value = @feature = nil
  @steps = []
  @tags = []
  @scenarios = []
  @examples = []
end

Instance Attribute Details

#commentsObject

Returns the value of attribute comments.



4
5
6
# File 'lib/yard/code_objects/cucumber/scenario_outline.rb', line 4

def comments
  @comments
end

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/yard/code_objects/cucumber/scenario_outline.rb', line 4

def description
  @description
end

#examplesObject

Returns the value of attribute examples.



5
6
7
# File 'lib/yard/code_objects/cucumber/scenario_outline.rb', line 5

def examples
  @examples
end

#featureObject

Returns the value of attribute feature.



4
5
6
# File 'lib/yard/code_objects/cucumber/scenario_outline.rb', line 4

def feature
  @feature
end

#keywordObject

Returns the value of attribute keyword.



4
5
6
# File 'lib/yard/code_objects/cucumber/scenario_outline.rb', line 4

def keyword
  @keyword
end

#scenariosObject

Returns the value of attribute scenarios.



5
6
7
# File 'lib/yard/code_objects/cucumber/scenario_outline.rb', line 5

def scenarios
  @scenarios
end

#stepsObject

Returns the value of attribute steps.



4
5
6
# File 'lib/yard/code_objects/cucumber/scenario_outline.rb', line 4

def steps
  @steps
end

#tagsObject

Returns the value of attribute tags.



4
5
6
# File 'lib/yard/code_objects/cucumber/scenario_outline.rb', line 4

def tags
  @tags
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/yard/code_objects/cucumber/scenario_outline.rb', line 4

def value
  @value
end

Instance Method Details

#background?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/yard/code_objects/cucumber/scenario_outline.rb', line 16

def background?
  false
end

#examples?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/yard/code_objects/cucumber/scenario_outline.rb', line 24

def examples?
  @examples.find { |example| example.rows }
end

#outline?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/yard/code_objects/cucumber/scenario_outline.rb', line 20

def outline?
  true
end