Class: YARD::CodeObjects::Cucumber::Feature

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from LocationHelper

#file, #line_number, #location

Constructor Details

#initialize(namespace, name) ⇒ Feature

Returns a new instance of Feature.



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

def initialize(namespace,name)
  @comments = ""
  @scenarios = []
  @tags = []
  super(namespace,name.to_s.strip)
end

Instance Attribute Details

#backgroundObject

Returns the value of attribute background.



7
8
9
# File 'lib/yard/code_objects/cucumber/feature.rb', line 7

def background
  @background
end

#commentsObject

Returns the value of attribute comments.



7
8
9
# File 'lib/yard/code_objects/cucumber/feature.rb', line 7

def comments
  @comments
end

#descriptionObject

Returns the value of attribute description.



7
8
9
# File 'lib/yard/code_objects/cucumber/feature.rb', line 7

def description
  @description
end

#keywordObject

Returns the value of attribute keyword.



7
8
9
# File 'lib/yard/code_objects/cucumber/feature.rb', line 7

def keyword
  @keyword
end

#scenariosObject

Returns the value of attribute scenarios.



7
8
9
# File 'lib/yard/code_objects/cucumber/feature.rb', line 7

def scenarios
  @scenarios
end

#tagsObject

Returns the value of attribute tags.



7
8
9
# File 'lib/yard/code_objects/cucumber/feature.rb', line 7

def tags
  @tags
end

#valueObject

Returns the value of attribute value.



7
8
9
# File 'lib/yard/code_objects/cucumber/feature.rb', line 7

def value
  @value
end