Sha256: eb7806c8605ec5935e666bce78117785549d1876c50bb27d2e151d06fa1a7078

Contents?: true

Size: 1.25 KB

Versions: 14

Compression:

Stored size: 1.25 KB

Contents

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

end

def features
  @features ||= Registry.all(:feature)
end

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

def feature_directories
  @feature_directories ||= YARD::CodeObjects::Cucumber::CUCUMBER_NAMESPACE.children.find_all {|child| child.is_a?(YARD::CodeObjects::Cucumber::FeatureDirectory)}
end

def feature_subdirectories
  @feature_subdirectories ||= Registry.all(:featuredirectory) - feature_directories
end

def step_transformers
  YARD::CodeObjects::Cucumber::CUCUMBER_STEPTRANSFORM_NAMESPACE
end

def step_definitions
  @step_definitions ||= YARD::Registry.all(:stepdefinition)
end

def transformers
  @transformers ||= YARD::Registry.all(:steptransform)
end

def undefined_steps
  @undefined_steps ||= Registry.all(:step).reject {|s| s.definition || s.scenario.outline? }
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

14 entries across 14 versions & 2 rubygems

Version Path
yard-cucumber-2.2.0 lib/templates/default/requirements/html/setup.rb
yard-cucumber-2.1.7 lib/templates/default/requirements/html/setup.rb
yard-cucumber-2.1.6 lib/templates/default/requirements/html/setup.rb
yard-cucumber-2.1.5 lib/templates/default/requirements/html/setup.rb
yard-cucumber-2.1.4 lib/templates/default/requirements/html/setup.rb
yard-cucumber-2.1.3 lib/templates/default/requirements/html/setup.rb
yard-cucumber-2.1.2 lib/templates/default/requirements/html/setup.rb
yard-cucumber-2.1.1 lib/templates/default/requirements/html/setup.rb
yard-cucumber-2.1.0 lib/templates/default/requirements/html/setup.rb
yard-cucumber-2.0.3 lib/templates/default/requirements/html/setup.rb
yard-cucumber-2.0.2 lib/templates/default/requirements/html/setup.rb
yard-cucumber-2.0.1 lib/templates/default/requirements/html/setup.rb
yard-cucumber-2.0.0 lib/templates/default/requirements/html/setup.rb
cucumber-in-the-yard-1.7.8 lib/templates/default/requirements/html/setup.rb