Move to use RUBY_METHOD_FUNC in order to generate appropriate rdoc.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>