Module: Cucumber::Ast::Names

Included in:
Background, Examples, Feature, Scenario, ScenarioOutline
Defined in:
lib/cucumber/ast/names.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



4
5
6
# File 'lib/cucumber/ast/names.rb', line 4

def description
  @description
end

#titleObject (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

#nameObject



6
7
8
9
10
# File 'lib/cucumber/ast/names.rb', line 6

def name
  s = @title
  s += "\n#{@description}" if @description != ""
  s
end