Sha256: 9d8351a08db12867440c7bb96ca1cf4e05ef88e96236704c610acc58c87dd747

Contents?: true

Size: 667 Bytes

Versions: 6

Compression:

Stored size: 667 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}" : ''}"
      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

6 entries across 6 versions & 1 rubygems

Version Path
cucumber-in-the-yard-1.7.5 lib/yard/templates/helpers/base_helper.rb
cucumber-in-the-yard-1.7.4 lib/yard/templates/helpers/base_helper.rb
cucumber-in-the-yard-1.7.3 lib/yard/templates/helpers/base_helper.rb
cucumber-in-the-yard-1.7.2 lib/yard/templates/helpers/base_helper.rb
cucumber-in-the-yard-1.7.1 lib/yard/templates/helpers/base_helper.rb
cucumber-in-the-yard-1.7.0 lib/yard/templates/helpers/base_helper.rb