-
Notifications
You must be signed in to change notification settings - Fork 18
Show method documentation when there is no function documentation #12
Comments
The docstring's been attached to the @doc* "Testing" ->
testfunc(x) = x or testfunc(x) = x
@doc "Testing" -> testfunc |
To query a method for documentation you can use |
Works. Thanks! |
query
not producing output
Yes, I've thought about doing this for a while now. |
Now that I know a little more, I'm still getting tripped up by this. Here's an example: I was browsing this page, and in the julia> query(failed)
julia> methods(failed)
# 1 method for generic function "failed":
failed(s::Summary)
julia> query(failed, (Lexicon.Summary,))
ERROR: `names` has no method matching names(::Type{(Summary,)}, ::Bool)
in documented at /home/tim/.julia/v0.3/Lexicon/src/query.jl:3
in query at /home/tim/.julia/v0.3/Lexicon/src/query.jl:58
julia> @query failed(15)
ERROR: no method found for the specified argument types
in which at interactiveutil.jl:201 What am I supposed to do to read the documentation on If there isn't a better solution already in place, one option would be to show documentation for all methods when there is no overall documentation for the function. (By my reading, the documentation on Also of note: any user (like me) who tries to get started after just reading the Overview will encounter this problem. After cutting & pasting the demo module julia> query(PackageName.f)
julia> @query PackageName.f(3)
>>>
[method] PackageName.f(x)
...
Details:
source: (6,"none") Sorry to dump feature requests on you; in many cases I'd implement it myself and give you a PR, but I'm kinda swamped with multiple other packages right now. |
(Sorry for the delay in renaming and actually posting the description.) |
Feature requests are great. No worries! I've been planning to do some work on these anyway. The type tuple version of
You can get the docs for |
Thanks for the explanations! |
Closed by #14. |
The text was updated successfully, but these errors were encountered: