diff options
| author | Seba Gamboa <[email protected]> | 2015-09-24 15:27:31 -0300 |
|---|---|---|
| committer | Seba Gamboa <[email protected]> | 2015-09-24 15:27:31 -0300 |
| commit | cc49ade5e7029e4d8d8d62b7c09590042b43d65d (patch) | |
| tree | 370d836801a48940e41d756171111fd1dcbb22aa /lib/yard/mruby/code_objects | |
| parent | 25ce0e81e111915551751dfaa23c4b53ec32afaf (diff) | |
| download | yard-mruby-cc49ade5e7029e4d8d8d62b7c09590042b43d65d.tar.gz yard-mruby-cc49ade5e7029e4d8d8d62b7c09590042b43d65d.zip | |
Registering function objects
Diffstat (limited to 'lib/yard/mruby/code_objects')
| -rw-r--r-- | lib/yard/mruby/code_objects/function_object.rb | 8 |
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 |
