Method: RDoc::Parser::Ruby#parse_extend_or_include
- Defined in:
- lib/rdoc/parser/ruby.rb
#parse_extend_or_include(klass, container, comment) ⇒ Object
Parses an include
or extend
, indicated by the klass
and adds it to container
# with comment
1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 |
# File 'lib/rdoc/parser/ruby.rb', line 1179 def parse_extend_or_include klass, container, comment # :nodoc: loop do skip_tkspace_comment name = get_included_module_with_optional_parens unless name.empty? then obj = container.add klass, name, comment record_location obj end return if peek_tk.nil? || :on_comma != peek_tk[:kind] get_tk end end |