Sha256: fb94b2a1c7a865b8f2661bbc7d827ef246674d296409495b92bb68d3367ea3b2

Contents?: true

Size: 465 Bytes

Versions: 10

Compression:

Stored size: 465 Bytes

Contents

module YARD::Templates::Helpers

  module BaseHelper

    def format_object_title(object)
      if 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

10 entries across 10 versions & 1 rubygems

Version Path
cucumber-in-the-yard-1.6.4 lib/yard/templates/helpers/base_helper.rb
cucumber-in-the-yard-1.6.3 lib/yard/templates/helpers/base_helper.rb
cucumber-in-the-yard-1.6.1 lib/yard/templates/helpers/base_helper.rb
cucumber-in-the-yard-1.6.0 lib/yard/templates/helpers/base_helper.rb
cucumber-in-the-yard-1.5.4 lib/yard/templates/helpers/base_helper.rb
cucumber-in-the-yard-1.5.3 lib/yard/templates/helpers/base_helper.rb
cucumber-in-the-yard-1.5.2 lib/yard/templates/helpers/base_helper.rb
cucumber-in-the-yard-1.5.1 lib/yard/templates/helpers/base_helper.rb
cucumber-in-the-yard-1.5 lib/yard/templates/helpers/base_helper.rb
cucumber-in-the-yard-1.4 lib/yard/templates/helpers/base_helper.rb