dkubb / yardstick

A tool for verifying YARD documentation coverage
http://wiki.github.com/dkubb/yardstick
MIT License
173 stars 22 forks source link

private_class_method raises error #46

Open stevenspiel opened 7 years ago

stevenspiel commented 7 years ago

A valid syntax for later versions of ruby and private class methods is:

private_class_method def foo
  puts 'bar'
end

That raises an error with yardstick:

NameError: uninitialized constant YARD::Handlers::Ruby::PrivateClassMethodHandler::NamespaceMissingError

in method:

ruby-2.3.1/gems/yard-0.8.7.6/lib/yard/handlers/ruby/private_class_method_handler.rb:43:in `rescue in privatize_class_method'