lib/yard/handlers/ruby/module_function_handler.rb in yard-0.9.5 vs lib/yard/handlers/ruby/module_function_handler.rb in yard-0.9.6

- old
+ new

@@ -1,12 +1,13 @@ +# frozen_string_literal: true # Handles module_function calls to turn methods into public class methods. # Also creates a private instance copy of the method. class YARD::Handlers::Ruby::ModuleFunctionHandler < YARD::Handlers::Ruby::Base handles method_call(:module_function) namespace_only process do - return if (ident = statement.jump(:ident)) == statement + return if statement.jump(:ident) == statement case statement.type when :var_ref, :vcall self.scope = :module when :fcall, :command statement[1].traverse do |node|