Sha256: ad1003aef652fac1062ec6f2469be4a379ec0eb6e415676415e0c725d8e23305

Contents?: true

Size: 783 Bytes

Versions: 31

Compression:

Stored size: 783 Bytes

Contents

module YARD::Templates::Helpers

  module BaseHelper

    def format_object_title(object)
      if object.is_a?(YARD::CodeObjects::Cucumber::FeatureTags)
        "Tags"
      elsif object.is_a?(YARD::CodeObjects::Cucumber::StepTransformersObject)
        "Step Definitions and Transforms"
      elsif object.is_a?(YARD::CodeObjects::Cucumber::NamespaceObject)
        "#{format_object_type(object)}#{object.value ? ": #{object.value}" : ''}"
      elsif object.is_a?(YARD::CodeObjects::Cucumber::FeatureDirectory)
        "Feature Directory: #{object.name}"
      else
        case object
        when YARD::CodeObjects::RootObject
          "Top Level Namespace"
        else
          format_object_type(object) + ": " + object.path
        end
      end
    end
    
  end

end  

Version data entries

31 entries across 31 versions & 4 rubygems

Version Path
yard-nrser-cucumber-0.1.3 lib/yard/templates/helpers/base_helper.rb
yard-nrser-cucumber-0.1.2 lib/yard/templates/helpers/base_helper.rb
yard-nrser-cucumber-0.1.1 lib/yard/templates/helpers/base_helper.rb
yard-nrser-cucumber-0.1.0 lib/yard/templates/helpers/base_helper.rb
yard-cucumber-4.0.0 lib/yard/templates/helpers/base_helper.rb
yard-cucumber-3.1.0 lib/yard/templates/helpers/base_helper.rb
yard-cucumber-3.0.0 lib/yard/templates/helpers/base_helper.rb
yard-cucumber2-2.3.4 lib/yard/templates/helpers/base_helper.rb
yard-cucumber2-2.3.3 lib/yard/templates/helpers/base_helper.rb
yard-cucumber-2.3.2 lib/yard/templates/helpers/base_helper.rb
yard-cucumber-2.3.1 lib/yard/templates/helpers/base_helper.rb
yard-cucumber-2.3.0 lib/yard/templates/helpers/base_helper.rb
yard-cucumber-2.2.3 lib/yard/templates/helpers/base_helper.rb
yard-cucumber-2.2.2 lib/yard/templates/helpers/base_helper.rb
yard-cucumber-2.2.1 lib/yard/templates/helpers/base_helper.rb
yard-cucumber-2.2.0 lib/yard/templates/helpers/base_helper.rb
yard-cucumber-2.1.7 lib/yard/templates/helpers/base_helper.rb
yard-cucumber-2.1.6 lib/yard/templates/helpers/base_helper.rb
yard-cucumber-2.1.5 lib/yard/templates/helpers/base_helper.rb
yard-cucumber-2.1.4 lib/yard/templates/helpers/base_helper.rb