Configure scaladoc to include extension methods

Can I configure scaladoc to include methods from implicit conversions by specifying the implicit conversion?

E.g. given

trait Foo

object Operations {
  implicit class FooOps(val f: Foo) extends AnyVal {
    def bar = 33
  }
}

Can I make scaladoc include extension method bar in the documentation of Foo?

Answers


It appears so (I've not tried it yet):

% scladoc -help
Usage: scaladoc <options> <source files>
where possible scaladoc options include:
  ...
  -implicits                    Document members inherited by implicit conversions.
  -implicits-hide:<implicit(s)> Hide the members inherited by the given comma separated, fully qualified implicit conversions. Add dot (.) to include default conversions.
  -implicits-show-all           Show members inherited by implicit conversions that are impossible in the default scope. (for example conversions that require Numeric[String] to be in scope)
  ...

Need Your Help

Spring Security 4 w/ Thymeleaf sec:authorize not working

spring-security spring-boot thymeleaf

I'm trying to use Spring Boot, Spring Security 4, Thymeleaf, and the sec:authorize attribute to be able to show a log out button when the user is logged and a sign up and log in when no user is log...

django: failing tests from django.contrib.auth

django testing django-authentication django-contrib

When I run my django test I get following errors, that are outside of my test suite: