Sha256: 94be5e99fd35ecfcd98bf45b2e2c3e9745f63bce651f61bcf7f5c7b167ba16f3
Contents?: true
Size: 674 Bytes
Versions: 5
Compression:
Stored size: 674 Bytes
Contents
# Parses comments class YARD::Handlers::C::OverrideCommentHandler < YARD::Handlers::C::Base handles %r{.} statement_class Comment process do return if statement.overrides.empty? statement.overrides.each do |type, name| override_comments << [name, statement] obj = nil case type when :class name, superclass = *name.split(/\s*<\s*/) obj = YARD::CodeObjects::ClassObject.new(:root, name) obj.superclass = "::#{superclass}" if superclass when :module obj = YARD::CodeObjects::ModuleObject.new(:root, name) end register_docstring(obj, statement.source, statement) if obj end end end
Version data entries
5 entries across 5 versions & 2 rubygems