Thanks to both of you.
I always try to find these kind of things in documentation before I post 
here - respectively I was looking into reflection and introspection, but 
didn't find any mention of this function. 

Dne pondělí 23. května 2016 20:06:30 UTC+2 Kristoffer Carlsson napsal(a):
>
>
> help?> methodswith
> search: methodswith
>
>   methodswith(typ[, module or function][, showparents])
>
>   Return an array of methods with an argument of type typ. If optional 
> showparents is true, also return arguments with
>   a parent type of typ, excluding type Any.
>
>   The optional second argument restricts the search to a particular module 
> or function.
>
>
>
> On Monday, May 23, 2016 at 8:03:02 PM UTC+2, Ford Ox wrote:
>>
>> Is there any function that will print out all methods available for 
>> concrete type?
>>
>> type Foo end
>> method1(f::Foo) = ...
>> method2(x::Int, f::Foo) = ...
>> methods(Foo)
>>
>> Foo has three methods:
>>>
>> method1(...)
>>>
>> method2(...)
>>>
>> methods(...)
>>>
>>  
>>
>>

Reply via email to