Module: Cucumber::Core::Ast::Names

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



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

def description
  @description
end

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

#nameObject



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_sObject



13
14
15
# File 'lib/cucumber/core/ast/names.rb', line 13

def to_s
  @title
end