Module: Cucumber::Core::Ast::Names
- Included in:
- Background, ExamplesTable, Feature, Scenario, ScenarioOutline
- Defined in:
- lib/cucumber/core/ast/names.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'lib/cucumber/core/ast/names.rb', line 6 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/cucumber/core/ast/names.rb', line 6 def name @name end |
Instance Method Details
#inspect ⇒ Object
18 19 20 21 |
# File 'lib/cucumber/core/ast/names.rb', line 18 def inspect keyword_and_name = [keyword, name].join(": ") %{#<#{self.class} "#{keyword_and_name}" (#{location})>} end |
#legacy_conflated_name_and_description ⇒ Object
8 9 10 11 12 |
# File 'lib/cucumber/core/ast/names.rb', line 8 def legacy_conflated_name_and_description s = name s += "\n#{@description}" if @description != "" s end |
#to_s ⇒ Object
14 15 16 |
# File 'lib/cucumber/core/ast/names.rb', line 14 def to_s name end |