Class: Feature
- Inherits:
-
TaggedGherkinCollection
- Object
- Item
- Collection
- SimpleGherkinCollection
- TaggedGherkinCollection
- Feature
- Defined in:
- lib/cuker/models/models_ready.rb
Instance Attribute Summary collapse
-
#background ⇒ Object
Returns the value of attribute background.
Attributes inherited from TaggedGherkinCollection
Attributes inherited from SimpleGherkinCollection
Attributes inherited from Collection
Attributes inherited from Item
Instance Method Summary collapse
- #comments=(content) ⇒ Object
-
#initialize(content_str) ⇒ Feature
constructor
A new instance of Feature.
- #tags=(content) ⇒ Object
Methods inherited from SimpleGherkinCollection
Methods inherited from Collection
Methods inherited from Item
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
#background ⇒ Object
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 content @items << content = content end |