summaryrefslogtreecommitdiffhomepage
path: root/lib/yard/mruby/code_objects/function_object.rb
blob: 60ff951e021f5442081c03b5d483dd39e69fe839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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