summaryrefslogtreecommitdiffhomepage
path: root/lib/yard/mruby/code_objects/header_base_object.rb
blob: 403db3d7e98bf34a173b907b7116883729d10f56 (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 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