Sha256: 8d41a74ef4e9ed9e190129cf0e6768340faee0e76066b8149975c59ae1806b7b

Contents?: true

Size: 303 Bytes

Versions: 12

Compression:

Stored size: 303 Bytes

Contents

require 'yard/code_objects/class_object'

module YARD::CodeObjects
  class ClassObject < NamespaceObject
    attr_reader :api_id

    def api_id
      @api_id ||= begin
        if tag = tag('API')
          tag.text.lines.first
        end
      end
    end

    def title
      api_id
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
yard-api-1.1.2 lib/yard-api/code_objects/class_object.rb
yard-api-1.1.1 lib/yard-api/code_objects/class_object.rb
yard-api-1.1.0 lib/yard-api/code_objects/class_object.rb
yard-api-1.0.1 lib/yard-api/code_objects/class_object.rb
yard-api-1.0.0 lib/yard-api/code_objects/class_object.rb
yard-api-0.3.7 lib/yard-api/code_objects/class_object.rb
yard-api-0.3.6 lib/yard-api/code_objects/class_object.rb
yard-api-0.3.5 lib/yard-api/code_objects/class_object.rb
yard-api-0.3.4 lib/yard-api/code_objects/class_object.rb
yard-api-0.3.3 lib/yard-api/code_objects/class_object.rb
yard-api-0.3.2 lib/yard-api/code_objects/class_object.rb
yard-api-0.3.1 lib/yard-api/code_objects/class_object.rb