summaryrefslogtreecommitdiffhomepage
path: root/lib/yard/mruby/code_objects/header_object.rb
blob: 2e702306d2a0291a7e4bdc84b5a9d4e57be2ec5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module YARD::MRuby::CodeObjects

  # A HeaderObject represents a MRuby header inside an include directory
  # It groups C Functions and define macros.
  class HeaderObject < YARD::CodeObjects::NamespaceObject
    def functions
      children.find_all {|d| d.is_a?(FunctionObject) } 
    end

    def path
      self.name
    end

    def title
      super.to_s
    end

    def inheritance_tree(*args)
      return [self]
    end
  end
end