summaryrefslogtreecommitdiffhomepage
path: root/lib/yard/mruby/code_objects/header_base_object.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yard/mruby/code_objects/header_base_object.rb')
-rw-r--r--lib/yard/mruby/code_objects/header_base_object.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/yard/mruby/code_objects/header_base_object.rb b/lib/yard/mruby/code_objects/header_base_object.rb
new file mode 100644
index 0000000..403db3d
--- /dev/null
+++ b/lib/yard/mruby/code_objects/header_base_object.rb
@@ -0,0 +1,15 @@
+module YARD::MRuby::CodeObjects
+
+ # A FunctionObject represents a MRuby C API function declaration inside a header inside an include directory
+ class HeaderBaseObject < YARD::CodeObjects::Base
+
+ def header
+ self.namespace
+ end
+
+ # Header objects's shouln't be namespaced
+ def path
+ self.name.to_s
+ end
+ end
+end