Sha256: 85c5361d47f2e82fdc77988cbf7a9ff8f2afe391edd9691617240230ec6c38f8

Contents?: true

Size: 364 Bytes

Versions: 3

Compression:

Stored size: 364 Bytes

Contents

module YARD::MRuby::Handlers::C::Header
  class HeaderDeclHandler < Base
    MATCH = /
      MRB_BEGIN_DECL
    /mx

    handles MATCH
    statement_class ToplevelStatement

    process do
      header = self.header(statement.file)

      if statement.comments
        register_docstring(header, statement.comments.source, statement)
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yard-mruby-0.2.2 lib/yard/mruby/handlers/c/header/header_decl_handler.rb
yard-mruby-0.2.1 lib/yard/mruby/handlers/c/header/header_decl_handler.rb
yard-mruby-0.2.0 lib/yard/mruby/handlers/c/header/header_decl_handler.rb