summaryrefslogtreecommitdiffhomepage
path: root/lib/yard/mruby/code_objects/function_object.rb
diff options
context:
space:
mode:
authorSeba Gamboa <[email protected]>2015-09-24 15:27:31 -0300
committerSeba Gamboa <[email protected]>2015-09-24 15:27:31 -0300
commitcc49ade5e7029e4d8d8d62b7c09590042b43d65d (patch)
tree370d836801a48940e41d756171111fd1dcbb22aa /lib/yard/mruby/code_objects/function_object.rb
parent25ce0e81e111915551751dfaa23c4b53ec32afaf (diff)
downloadyard-mruby-cc49ade5e7029e4d8d8d62b7c09590042b43d65d.tar.gz
yard-mruby-cc49ade5e7029e4d8d8d62b7c09590042b43d65d.zip
Registering function objects
Diffstat (limited to 'lib/yard/mruby/code_objects/function_object.rb')
-rw-r--r--lib/yard/mruby/code_objects/function_object.rb8
1 files changed, 8 insertions, 0 deletions
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