Sha256: 3634a23ec4d77f4247e99804ec81e4534ac646a199b23b5a31f92de9a3cdbd1d

Contents?: true

Size: 265 Bytes

Versions: 12

Compression:

Stored size: 265 Bytes

Contents

require 'yard/code_objects/method_object'

module YARD::CodeObjects
	class APIObject < Base
		def self.sanitize_id(text)
			text.gsub(/\s/, '')
		end

		def path
			self.class.sanitize_id(super)
		end

		def title
			[ object.title, name ].join(NSEP)
		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/api_object.rb
yard-api-1.1.1 lib/yard-api/code_objects/api_object.rb
yard-api-1.1.0 lib/yard-api/code_objects/api_object.rb
yard-api-1.0.1 lib/yard-api/code_objects/api_object.rb
yard-api-1.0.0 lib/yard-api/code_objects/api_object.rb
yard-api-0.3.7 lib/yard-api/code_objects/api_object.rb
yard-api-0.3.6 lib/yard-api/code_objects/api_object.rb
yard-api-0.3.5 lib/yard-api/code_objects/api_object.rb
yard-api-0.3.4 lib/yard-api/code_objects/api_object.rb
yard-api-0.3.3 lib/yard-api/code_objects/api_object.rb
yard-api-0.3.2 lib/yard-api/code_objects/api_object.rb
yard-api-0.3.1 lib/yard-api/code_objects/api_object.rb