Class: Feature

Inherits:
TaggedGherkinCollection show all
Defined in:
lib/cuker/models/models_ready.rb

Instance Attribute Summary collapse

Attributes inherited from TaggedGherkinCollection

#tags

Attributes inherited from SimpleGherkinCollection

#comments, #title

Attributes inherited from Collection

#items, #keyword

Attributes inherited from Item

#content

Instance Method Summary collapse

Methods inherited from SimpleGherkinCollection

#parse_title

Methods inherited from Collection

#to_s

Methods inherited from Item

#to_s

Constructor Details

#initialize(content_str) ⇒ Feature



97
98
99
100
101
# File 'lib/cuker/models/models_ready.rb', line 97

def initialize content_str
  @keyword = "Feature:"
  super content_str, keyword
  #todo: think about item ordering

end

Instance Attribute Details

#backgroundObject

Returns the value of attribute background.



95
96
97
# File 'lib/cuker/models/models_ready.rb', line 95

def background
  @background
end

Instance Method Details

#comments=(content) ⇒ Object



103
104
105
106
# File 'lib/cuker/models/models_ready.rb', line 103

def comments= content
  @items << content
  @comments = content
end

#tags=(content) ⇒ Object



108
109
110
111
# File 'lib/cuker/models/models_ready.rb', line 108

def tags= content
  @items << content
  @tags = content
end