Sha256: f5e5b0659b91cccd8a46baf60cff01e41515a884aeec392092e455237ae563d8

Contents?: true

Size: 416 Bytes

Versions: 12

Compression:

Stored size: 416 Bytes

Contents

def init
  super
  @tag = object

  sections.push :tag
  sections.push :feature unless @tag.features.empty?
  sections.push :scenario unless @tag.scenarios.empty?
end

def all_features_by_letter
  hash = {}
  @tag.features.each {|o| (hash[o.value.to_s[0,1].upcase] ||= []) << o }
  hash
end

def all_scenarios_by_letter
  hash = {}
  @tag.scenarios.each {|o| (hash[o.value.to_s[0,1].upcase] ||= []) << o }
  hash
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cucumber-in-the-yard-1.7.7 lib/templates/default/tag/setup.rb
cucumber-in-the-yard-1.7.6 lib/templates/default/tag/setup.rb
cucumber-in-the-yard-1.7.5 lib/templates/default/tag/setup.rb
cucumber-in-the-yard-1.7.4 lib/templates/default/tag/setup.rb
cucumber-in-the-yard-1.7.3 lib/templates/default/tag/setup.rb
cucumber-in-the-yard-1.7.2 lib/templates/default/tag/setup.rb
cucumber-in-the-yard-1.7.1 lib/templates/default/tag/setup.rb
cucumber-in-the-yard-1.7.0 lib/templates/default/tag/setup.rb
cucumber-in-the-yard-1.6.4 lib/templates/default/tag/setup.rb
cucumber-in-the-yard-1.6.3 lib/templates/default/tag/setup.rb
cucumber-in-the-yard-1.6.1 lib/templates/default/tag/setup.rb
cucumber-in-the-yard-1.6.0 lib/templates/default/tag/setup.rb