Sha256: b878627f8a7926c1c1eb3093ce75590a1ea4f6d3d92412b01575ebbcb6ade5f1

Contents?: true

Size: 525 Bytes

Versions: 32

Compression:

Stored size: 525 Bytes

Contents

def init
  super
  @tag = object

  sections.push :tag
end

def features
  @tag.features
end

def scenarios
  @tag.scenarios
end


def alpha_table(objects)
  @elements = Hash.new

  objects = run_verifier(objects)
  objects.each {|o| (@elements[o.value.to_s[0,1].upcase] ||= []) << o }
  @elements.values.each {|v| v.sort! {|a,b| b.value.to_s <=> a.value.to_s } }
  @elements = @elements.sort_by {|l,o| l.to_s }

  @elements.each {|letter,objects| objects.sort! {|a,b| b.value.to_s <=> a.value.to_s }}
  erb(:alpha_table)
end

Version data entries

32 entries across 32 versions & 5 rubygems

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