Module: Turnip::Builder::Tags

Included in:
Feature, Scenario, ScenarioOutline
Defined in:
lib/turnip/builder.rb

Instance Method Summary collapse

Instance Method Details

#metadata_hashObject



14
15
16
# File 'lib/turnip/builder.rb', line 14

def 
  tags_hash
end

#tagsObject



6
7
8
# File 'lib/turnip/builder.rb', line 6

def tags
  @raw.tags.map { |tag| tag.name.sub(/^@/, '') }
end

#tags_hashObject



10
11
12
# File 'lib/turnip/builder.rb', line 10

def tags_hash
  Hash[tags.map { |t| [t.to_sym, true] }]
end