From cc49ade5e7029e4d8d8d62b7c09590042b43d65d Mon Sep 17 00:00:00 2001 From: Seba Gamboa Date: Thu, 24 Sep 2015 15:27:31 -0300 Subject: Registering function objects --- lib/yard/mruby/code_objects/function_object.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/yard/mruby/code_objects') diff --git a/lib/yard/mruby/code_objects/function_object.rb b/lib/yard/mruby/code_objects/function_object.rb index 5eb906e..60ff951 100644 --- a/lib/yard/mruby/code_objects/function_object.rb +++ b/lib/yard/mruby/code_objects/function_object.rb @@ -2,6 +2,14 @@ module YARD::MRuby::CodeObjects # A FunctionObject represents a MRuby C API function declaration inside a header inside an include directory class FunctionObject < YARD::CodeObjects::Base + def initialize(header, name, &block) + super + end + + # Function's shouln't be namespaced + def path + self.name + end end end -- cgit v1.2.3