Sha256: ee3b8eabbd598f9a98ccaad4acee9c585856a6c41e54519755a0189c8e1b23f8

Contents?: true

Size: 750 Bytes

Versions: 5

Compression:

Stored size: 750 Bytes

Contents

module YARD::Templates::Helpers
  module BaseHelper
    def format_object_title(object)
      if object.is_a?(YARD::CodeObjects::Lucid::FeatureTags)
        "Tags"
      elsif object.is_a?(YARD::CodeObjects::Lucid::StepTransformersObject)
        "Steps and Transforms"
      elsif object.is_a?(YARD::CodeObjects::Lucid::NamespaceObject)
        "#{format_object_type(object)}#{object.value ? ": #{object.value}" : ''}"
      elsif object.is_a?(YARD::CodeObjects::Lucid::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

5 entries across 5 versions & 1 rubygems

Version Path
yard-lucid-0.5.0 lib/yard/templates/helpers/base_helper.rb
yard-lucid-0.4.0 lib/yard/templates/helpers/base_helper.rb
yard-lucid-0.3.0 lib/yard/templates/helpers/base_helper.rb
yard-lucid-0.2.0 lib/yard/templates/helpers/base_helper.rb
yard-lucid-0.1.0 lib/yard/templates/helpers/base_helper.rb