Method: RDoc::Parser::Ruby#parse_module
- Defined in:
- lib/rdoc/parser/ruby.rb
#parse_module(container, single, tk, comment) ⇒ Object
Parses an RDoc::NormalModule in container
with comment
1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 |
# File 'lib/rdoc/parser/ruby.rb', line 1664 def parse_module container, single, tk, comment container, name_t, = get_class_or_module container name = name_t[:text] mod = container.add_module RDoc::NormalModule, name mod.ignore unless container.document_children record_location mod read_documentation_modifiers mod, RDoc::CLASS_MODIFIERS mod.add_comment comment, @top_level parse_statements mod # after end modifiers read_documentation_modifiers mod, RDoc::CLASS_MODIFIERS @stats.add_module mod end |