Sha256: 15b303cf9a3d3dc4b21007e203474af76326a90427ee2da8a4ea8c51b10a75a2
Contents?: true
Size: 506 Bytes
Versions: 2
Compression:
Stored size: 506 Bytes
Contents
# frozen_string_literal: true # (see Ruby::ExtendHandler) class YARD::Handlers::Ruby::Legacy::ExtendHandler < YARD::Handlers::Ruby::Legacy::MixinHandler handles(/\Aextend(\s|\()/) namespace_only def scope; :class end private def process_mixin(mixin) if mixin == "self" if namespace.is_a?(ClassObject) raise UndocumentableError, "extend(self) statement on class" end namespace.mixins(scope) << namespace else super end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yard-0.9.18 | lib/yard/handlers/ruby/legacy/extend_handler.rb |
yard-0.9.17 | lib/yard/handlers/ruby/legacy/extend_handler.rb |