Class: YARD::CodeObjects::Cucumber::Scenario
- Inherits:
-
NamespaceObject
- Object
- NamespaceObject
- NamespaceObject
- YARD::CodeObjects::Cucumber::Scenario
- Defined in:
- lib/yard/code_objects/cucumber/scenario.rb
Instance Attribute Summary collapse
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#description ⇒ Object
Returns the value of attribute description.
-
#feature ⇒ Object
Returns the value of attribute feature.
-
#keyword ⇒ Object
Returns the value of attribute keyword.
-
#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
-
#initialize(namespace, name) ⇒ Scenario
constructor
A new instance of Scenario.
- #outline? ⇒ Boolean
Methods included from LocationHelper
#file, #line_number, #location
Constructor Details
#initialize(namespace, name) ⇒ Scenario
Returns a new instance of Scenario.
7 8 9 10 11 12 |
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 7 def initialize(namespace, name) super(namespace, name.to_s.strip) @comments = @description = @keyword = @value = @feature = nil @steps = [] @tags = [] end |
Instance Attribute Details
#comments ⇒ Object
Returns the value of attribute comments.
5 6 7 |
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 5 def comments @comments end |
#description ⇒ Object
Returns the value of attribute description.
5 6 7 |
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 5 def description @description end |
#feature ⇒ Object
Returns the value of attribute feature.
5 6 7 |
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 5 def feature @feature end |
#keyword ⇒ Object
Returns the value of attribute keyword.
5 6 7 |
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 5 def keyword @keyword end |
#steps ⇒ Object
Returns the value of attribute steps.
5 6 7 |
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 5 def steps @steps end |
#tags ⇒ Object
Returns the value of attribute tags.
5 6 7 |
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 5 def @tags end |
#value ⇒ Object
Returns the value of attribute value.
5 6 7 |
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 5 def value @value end |
Instance Method Details
#background? ⇒ Boolean
14 15 16 |
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 14 def background? @keyword == "Background" end |
#outline? ⇒ Boolean
18 19 20 |
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 18 def outline? false end |