Sha256: 4bfcb4ade0da610b3680fcc7b0149e78312826bead90f3f5a4756636656dd5a3

Contents?: true

Size: 701 Bytes

Versions: 18

Compression:

Stored size: 701 Bytes

Contents

def init
  super
  sections.push :namespace
  @namespace = object
end

def namespace
  erb(:namespace)
end

def all_tags_by_letter
  hash = {}
  objects = tags
  objects = run_verifier(objects)
  objects.each {|o| (hash[o.value.to_s[1,1].upcase] ||= []) << o }
  hash
end

def tags
  @tags ||= Registry.all(:tag).sort_by {|l| l.value.to_s }
end

def features
  @features ||= Registry.all(:feature).sort {|x,y| x.value.to_s <=> y.value.to_s }
end

def feature_tags_with_all_scenario_tags(feature)
  feature.tags.collect {|t| t.value} + feature.scenarios.collect {|s| s.tags.collect {|t| t.value} }.flatten.uniq
end


def tagify(tag)
  %{<span class="tag" href="#{url_for tag}">#{tag.value}</span>}
end

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
yard-gherkin-turnip-1.0.2 lib/templates/default/featuretags/html/setup.rb
yard-gherkin-turnip-1.0.1 lib/templates/default/featuretags/html/setup.rb
yard-gherkin-turnip-1.0.0 lib/templates/default/featuretags/html/setup.rb
yard-nrser-cucumber-0.1.3 lib/templates/default/featuretags/html/setup.rb
yard-nrser-cucumber-0.1.2 lib/templates/default/featuretags/html/setup.rb
yard-nrser-cucumber-0.1.1 lib/templates/default/featuretags/html/setup.rb
yard-nrser-cucumber-0.1.0 lib/templates/default/featuretags/html/setup.rb
yard-cucumber-4.0.0 lib/templates/default/featuretags/html/setup.rb
yard-cucumber-3.1.0 lib/templates/default/featuretags/html/setup.rb
yard-cucumber-3.0.0 lib/templates/default/featuretags/html/setup.rb
yard-cucumber2-2.3.4 lib/templates/default/featuretags/html/setup.rb
yard-cucumber2-2.3.3 lib/templates/default/featuretags/html/setup.rb
yard-cucumber-2.3.2 lib/templates/default/featuretags/html/setup.rb
yard-cucumber-2.3.1 lib/templates/default/featuretags/html/setup.rb
yard-cucumber-2.3.0 lib/templates/default/featuretags/html/setup.rb
yard-cucumber-2.2.3 lib/templates/default/featuretags/html/setup.rb
yard-cucumber-2.2.2 lib/templates/default/featuretags/html/setup.rb
yard-cucumber-2.2.1 lib/templates/default/featuretags/html/setup.rb