Class: YARD::CodeObjects::Cucumber::Scenario

Inherits:
NamespaceObject
  • Object
show all
Defined in:
lib/yard/code_objects/cucumber/scenario.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from LocationHelper

#file, #line_number, #location

Constructor Details

#initialize(namespace, name) ⇒ Scenario

Returns a new instance of Scenario.



10
11
12
13
14
15
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 10

def initialize(namespace, name)
  super(namespace, name.to_s.strip)
  @comments = @description = @keyword = @value = @feature = nil
  @steps = []
  @tags = []
end

Instance Attribute Details

#commentsObject

Returns the value of attribute comments.



8
9
10
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 8

def comments
  @comments
end

#descriptionObject

Returns the value of attribute description.



8
9
10
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 8

def description
  @description
end

#featureObject

Returns the value of attribute feature.



8
9
10
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 8

def feature
  @feature
end

#keywordObject

Returns the value of attribute keyword.



8
9
10
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 8

def keyword
  @keyword
end

#stepsObject

Returns the value of attribute steps.



8
9
10
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 8

def steps
  @steps
end

#tagsObject

Returns the value of attribute tags.



8
9
10
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 8

def tags
  @tags
end

#valueObject

Returns the value of attribute value.



8
9
10
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 8

def value
  @value
end

Instance Method Details

#background?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 17

def background?
  @keyword == "Background"
end

#outline?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/yard/code_objects/cucumber/scenario.rb', line 21

def outline?
  false
end