Class: Turnip::Builder::Feature

Inherits:
Object
  • Object
show all
Includes:
Line, Name, Tags
Defined in:
lib/turnip/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Line

#line

Methods included from Name

#name

Methods included from Tags

#tags, #tags_hash

Constructor Details

#initialize(raw) ⇒ Feature

Returns a new instance of Feature.



39
40
41
42
43
# File 'lib/turnip/builder.rb', line 39

def initialize(raw)
  @raw = raw
  @scenarios = []
  @backgrounds = []
end

Instance Attribute Details

#backgroundsObject (readonly)

Returns the value of attribute backgrounds.



36
37
38
# File 'lib/turnip/builder.rb', line 36

def backgrounds
  @backgrounds
end

#feature_tagObject

Returns the value of attribute feature_tag.



37
38
39
# File 'lib/turnip/builder.rb', line 37

def feature_tag
  @feature_tag
end

#scenariosObject (readonly)

Returns the value of attribute scenarios.



36
37
38
# File 'lib/turnip/builder.rb', line 36

def scenarios
  @scenarios
end

Instance Method Details

#metadata_hashObject



45
46
47
# File 'lib/turnip/builder.rb', line 45

def 
  super.merge(:type => Turnip.type, :turnip => true)
end