Sha256: 690b271cc07bd358e265ea4417686b3eb1bf8a323d231820bc2b7753da11de3d

Contents?: true

Size: 1.25 KB

Versions: 15

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| 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

15 entries across 15 versions & 3 rubygems

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