Class: RDoc::Parser::RBS

Inherits:
RDoc::Parser show all
Defined in:
lib/rdoc/parser/rbs.rb

Overview

Parse RBS signature files as first-class RDoc input.

Constant Summary collapse

RBS_FILE_EXTENSION =
/\.rbs$/

Instance Attribute Summary

Attributes inherited from RDoc::Parser

#file_name

Instance Method Summary collapse

Methods inherited from RDoc::Parser

alias_extension, binary?, can_parse, can_parse_by_name, check_modeline, for, #handle_tab_width, #initialize, parse_files_matching, remove_modeline, use_markup, zip?

Constructor Details

This class inherits a constructor from RDoc::Parser

Instance Method Details

#scanObject



13
14
15
16
17
18
19
# File 'lib/rdoc/parser/rbs.rb', line 13

def scan
  _, _, decls = ::RBS::Parser.parse_signature(@content)
  decls.each do |decl|
    parse_decl decl, @top_level
  end
  @top_level
end