lib/yard/handlers/ruby/mixin_handler.rb in yard-0.9.26 vs lib/yard/handlers/ruby/mixin_handler.rb in yard-0.9.27

- old
+ new

@@ -39,10 +39,12 @@ shift = statement.method_name(true) == :include ? :unshift : :push rec.mixins(scope).send(shift, obj) end def recipient(mixin) - if statement[0].type == :var_ref && statement[0][0] != s(:kw, "self") + if statement[0].type == :const_path_ref + Proxy.new(namespace, statement[0].source) + elsif statement[0].type == :var_ref && statement[0][0] != s(:kw, "self") statement[0][0].type == :const ? Proxy.new(namespace, statement.namespace.source) : nil else namespace