APIdock / Ruby
/
Browse About
method

parse_include

v1_8_7_330 - Show latest stable - Class: RDoc::RubyParser
parse_include(context, comment)
private

No documentation available.

# File lib/rdoc/parsers/parse_rb.rb, line 2433
  def parse_include(context, comment)
    loop do
      skip_tkspace_comment
      name = get_constant_with_optional_parens
      unless name.empty?
        context.add_include(Include.new(name, comment))
      end
      return unless peek_tk.kind_of?(TkCOMMA)
      get_tk
    end
  end

Related methods

  • Instance methods
  • scan
  • Class methods
  • new
  • Private methods
  • privateadd_token_listener
  • privatecollect_first_comment
  • privateerror
  • privateget_bool
  • privateget_class_or_module
  • privateget_class_specification
  • privateget_constant
  • privateget_constant_with_optional_parens
  • privateget_symbol_or_name
  • privateget_tk
  • privateget_tkread
  • privatelook_for_directives_in
  • privatemake_message
  • privateparse_alias
  • privateparse_attr
  • privateparse_attr_accessor
  • privateparse_call_parameters
  • privateparse_class
  • privateparse_constant
  • privateparse_include
  • privateparse_method
  • privateparse_method_or_yield_parameters
  • privateparse_method_parameters
  • privateparse_module
  • privateparse_require
  • privateparse_statements
  • privateparse_symbol_arg
  • privateparse_symbol_in_arg
  • privateparse_toplevel_statements
  • privateparse_visibility
  • privateparse_yield
  • privateparse_yield_parameters
  • privatepeek_read
  • privatepeek_tk
  • privateprogress
  • privateread_directive
  • privateread_documentation_modifiers
  • privateremove_private_comments
  • privateremove_token_listener
  • privateskip_for_variable
  • privateskip_method
  • privateskip_optional_do_after_expression
  • privateskip_tkspace
  • privateskip_tkspace_comment
  • privateunget_tk
  • privatewarn
APIdock API Documentation Browser

© 2026 APIdock