class YARD::Handlers::Ruby::Legacy::MixinHandler
(see Ruby::MixinHandler)
frozen_string_literal: true
def process_mixin(mixin)
def process_mixin(mixin) mixmatch = mixin[/\A(#{NAMESPACEMATCH})/, 1] raise YARD::Parser::UndocumentableError unless mixmatch case obj = Proxy.new(namespace, mixmatch) when ConstantObject # If a constant is included, use its value as the real object obj = Proxy.new(namespace, obj.value, :module) else obj = Proxy.new(namespace, mixmatch, :module) end namespace.mixins(scope).unshift(obj) unless namespace.mixins(scope).include?(obj) end