Module: Cucumber::Ast::Names
- Included in:
- Background, Examples, Feature, Scenario, ScenarioOutline
- Defined in:
- lib/cucumber/ast/names.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'lib/cucumber/ast/names.rb', line 4 def description @description end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/cucumber/ast/names.rb', line 4 def title @title end |
Instance Method Details
#name ⇒ Object
6 7 8 9 10 |
# File 'lib/cucumber/ast/names.rb', line 6 def name s = @title s += "\n#{@description}" if @description != "" s end |