From 73326c64a5e720f7d31b1e52ef9fda341895e800 Mon Sep 17 00:00:00 2001 From: Seba Gamboa Date: Mon, 28 Sep 2015 18:29:41 -0300 Subject: Handle #define directives --- lib/yard/mruby/code_objects/function_object.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lib/yard/mruby/code_objects/function_object.rb') diff --git a/lib/yard/mruby/code_objects/function_object.rb b/lib/yard/mruby/code_objects/function_object.rb index 7d85439..ecf7dd5 100644 --- a/lib/yard/mruby/code_objects/function_object.rb +++ b/lib/yard/mruby/code_objects/function_object.rb @@ -1,7 +1,7 @@ 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 + class FunctionObject < HeaderBaseObject # Returns the list of parameters parsed out of the method signature # with their default values. @@ -14,15 +14,6 @@ module YARD::MRuby::CodeObjects super end - def header - self.namespace - end - - # Function's shouln't be namespaced - def path - self.name.to_s - end - def attr_info nil end -- cgit v1.2.3