Class: LucidTDL::AST::Feature

Inherits:
Node
  • Object
show all
Includes:
Enumerable
Defined in:
lib/lucid-tdl/ast.rb

Overview

class Node

Direct Known Subclasses

Ability, Responsibility

Instance Attribute Summary collapse

Attributes inherited from Node

#filename, #line

Instance Method Summary collapse

Methods inherited from Node

#accept, #pos

Constructor Details

#initialize(name, scenarios = [], tags = [], background = nil) ⇒ Feature

Returns a new instance of Feature.



24
25
26
27
28
29
# File 'lib/lucid-tdl/ast.rb', line 24

def initialize(name, scenarios=[], tags=[], background=nil)
  @name = name
  @background = background
  @scenarios = scenarios
  @tags = tags
end

Instance Attribute Details

#backgroundObject

Returns the value of attribute background.



22
23
24
# File 'lib/lucid-tdl/ast.rb', line 22

def background
  @background
end

#descriptionObject

Returns the value of attribute description.



22
23
24
# File 'lib/lucid-tdl/ast.rb', line 22

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name.



21
22
23
# File 'lib/lucid-tdl/ast.rb', line 21

def name
  @name
end

#scenariosObject

Returns the value of attribute scenarios.



22
23
24
# File 'lib/lucid-tdl/ast.rb', line 22

def scenarios
  @scenarios
end

#tagsObject

Returns the value of attribute tags.



22
23
24
# File 'lib/lucid-tdl/ast.rb', line 22

def tags
  @tags
end

Instance Method Details

#eachObject



31
32
33
# File 'lib/lucid-tdl/ast.rb', line 31

def each
  @scenarios.each
end