Class: YARD::MRuby::Handlers::C::Header::Base

Inherits:
Handlers::C::Base
  • Object
show all
Includes:
CodeObjects
Defined in:
lib/yard/mruby/handlers/c/header/base.rb

Constant Summary

Constants included from CodeObjects

CodeObjects::HEADERS_ROOT

Instance Method Summary collapse

Instance Method Details

#header(path) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/yard/mruby/handlers/c/header/base.rb', line 7

def header(path)
  # Remove include prefix
  path = path.gsub(/^.*include\//,'')

  headers[path] ||= begin
                      header = HeaderObject.new(HEADERS_ROOT, path)
                      register header
                      header
                    end


end

#headersObject



20
21
22
# File 'lib/yard/mruby/handlers/c/header/base.rb', line 20

def headers
  globals.mruby_headers ||= {}
end