是否可以通过指定隐式转换将scaladoc配置为包含来自隐式转换的方法?
例如,给定
trait Foo
object Operations {
implicit class FooOps(val f: Foo) extends AnyVal {
def bar = 33
}
}我可以让scaladoc在Foo的文档中包含扩展方法bar吗
发布于 2014-01-28 23:37:01
看起来是这样(我还没试过):
% 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)
...https://stackoverflow.com/questions/21406207
复制相似问题