class YARD::MRuby::Handlers::C::Header::TypedefHandler

Constants

MATCH

Public Instance Methods

handle_typedef(statement) click to toggle source
# File lib/yard/mruby/handlers/c/header/typedef_handler.rb, line 17
def handle_typedef(statement)
  header = self.header(statement.file)

  statement.source.scan(MATCH) do |match|
  name = match.last
    register TypedefObject.new(header, name) do |obj|
      if statement.comments
        register_docstring(obj, statement.comments.source, statement)
      end
    end
  end

end