Skip to content

Instantly share code, notes, and snippets.

@joshbode
Created September 27, 2016 05:15
Show Gist options
  • Save joshbode/a6c6f204eaa320d7a242a85c0b6d9aff to your computer and use it in GitHub Desktop.
Save joshbode/a6c6f204eaa320d7a242a85c0b6d9aff to your computer and use it in GitHub Desktop.
Modules = [CallTest]
#! /usr/bin/env julia
"""
Test module for call doc syntax.
"""
module CallTest
"""
Wrapper(f)
Wrap a function.
"""
type Wrapper
f::Function
end
"""
(wrapper::Wrapper)(args...; kwargs...)
Call wrapped function.
"""
(w::Wrapper)(args...; kwargs...) = w.f(args...; kwargs...)
end
import Documenter
using .CallTest
Documenter.makedocs(modules=[CallTest])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment