From c1f2404de71e9a8f73271b05f59a225728212069 Mon Sep 17 00:00:00 2001 From: Seba Gamboa Date: Thu, 24 Sep 2015 18:25:12 -0300 Subject: Generating C API HTML Layout --- lib/yard/mruby/code_objects/header_object.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/yard/mruby/code_objects/header_object.rb') diff --git a/lib/yard/mruby/code_objects/header_object.rb b/lib/yard/mruby/code_objects/header_object.rb index 99fb3cf..519d76c 100644 --- a/lib/yard/mruby/code_objects/header_object.rb +++ b/lib/yard/mruby/code_objects/header_object.rb @@ -3,5 +3,16 @@ 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 end end -- cgit v1.2.3