lib/yard/handlers/ruby/legacy/mixin_handler.rb in yard-0.8.1 vs lib/yard/handlers/ruby/legacy/mixin_handler.rb in yard-0.8.2

- old
+ new

@@ -25,16 +25,14 @@ def process_mixin(mixin) unless mixmatch = mixin[/\A(#{NAMESPACEMATCH})/, 1] raise YARD::Parser::UndocumentableError end - obj = Proxy.new(namespace, mixmatch) - - case obj - when Proxy - obj.type = :module + 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) + 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 end