Module: Cucumber::Core::Ast::Names
- Included in:
- Background, Feature, Scenario, ScenarioOutline
- Defined in:
- lib/cucumber/core/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.
5 6 7 |
# File 'lib/cucumber/core/ast/names.rb', line 5 def description @description end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/cucumber/core/ast/names.rb', line 5 def title @title end |
Instance Method Details
#name ⇒ Object
7 8 9 10 11 |
# File 'lib/cucumber/core/ast/names.rb', line 7 def name s = @title s += "\n#{@description}" if @description != "" s end |
#to_s ⇒ Object
13 14 15 |
# File 'lib/cucumber/core/ast/names.rb', line 13 def to_s @title end |