Class: YARD::CodeObjects::Lucid::ScenarioOutline
- Inherits:
-
NamespaceObject
- Object
- NamespaceObject
- NamespaceObject
- YARD::CodeObjects::Lucid::ScenarioOutline
- Defined in:
- lib/yard/code_objects/lucid/scenario_outline.rb
Defined Under Namespace
Classes: Examples
Instance Attribute Summary collapse
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#description ⇒ Object
Returns the value of attribute description.
-
#examples ⇒ Object
Returns the value of attribute examples.
-
#feature ⇒ Object
Returns the value of attribute feature.
-
#keyword ⇒ Object
Returns the value of attribute keyword.
-
#scenarios ⇒ Object
Returns the value of attribute scenarios.
-
#steps ⇒ Object
Returns the value of attribute steps.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #background? ⇒ Boolean
- #examples? ⇒ Boolean
-
#initialize(namespace, name) ⇒ ScenarioOutline
constructor
A new instance of ScenarioOutline.
- #outline? ⇒ Boolean
Methods included from LocationHelper
#file, #line_number, #location
Constructor Details
#initialize(namespace, name) ⇒ ScenarioOutline
Returns a new instance of ScenarioOutline.
6 7 8 9 10 11 12 13 |
# File 'lib/yard/code_objects/lucid/scenario_outline.rb', line 6 def initialize(namespace,name) super(namespace,name.to_s.strip) @comments = @description = @value = @feature = nil @steps = [] = [] @scenarios = [] @examples = [] end |
Instance Attribute Details
#comments ⇒ Object
Returns the value of attribute comments.
3 4 5 |
# File 'lib/yard/code_objects/lucid/scenario_outline.rb', line 3 def comments @comments end |
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/yard/code_objects/lucid/scenario_outline.rb', line 3 def description @description end |
#examples ⇒ Object
Returns the value of attribute examples.
4 5 6 |
# File 'lib/yard/code_objects/lucid/scenario_outline.rb', line 4 def examples @examples end |
#feature ⇒ Object
Returns the value of attribute feature.
3 4 5 |
# File 'lib/yard/code_objects/lucid/scenario_outline.rb', line 3 def feature @feature end |
#keyword ⇒ Object
Returns the value of attribute keyword.
3 4 5 |
# File 'lib/yard/code_objects/lucid/scenario_outline.rb', line 3 def keyword @keyword end |
#scenarios ⇒ Object
Returns the value of attribute scenarios.
4 5 6 |
# File 'lib/yard/code_objects/lucid/scenario_outline.rb', line 4 def scenarios @scenarios end |
#steps ⇒ Object
Returns the value of attribute steps.
3 4 5 |
# File 'lib/yard/code_objects/lucid/scenario_outline.rb', line 3 def steps @steps end |
#tags ⇒ Object
Returns the value of attribute tags.
3 4 5 |
# File 'lib/yard/code_objects/lucid/scenario_outline.rb', line 3 def end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/yard/code_objects/lucid/scenario_outline.rb', line 3 def value @value end |
Instance Method Details
#background? ⇒ Boolean
15 16 17 |
# File 'lib/yard/code_objects/lucid/scenario_outline.rb', line 15 def background? false end |
#examples? ⇒ Boolean
23 24 25 |
# File 'lib/yard/code_objects/lucid/scenario_outline.rb', line 23 def examples? @examples.find { |example| example.rows } end |
#outline? ⇒ Boolean
19 20 21 |
# File 'lib/yard/code_objects/lucid/scenario_outline.rb', line 19 def outline? true end |