APIdock / Ruby
/
Browse About
method

handle_ifdefs_in

v2_1_10 - Show latest stable - Class: RDoc::Parser::C
handle_ifdefs_in(body)
public

Removes #ifdefs that would otherwise confuse us

# File lib/rdoc/parser/c.rb, line 971
  def handle_ifdefs_in(body)
    body.gsub(/^#ifdef HAVE_PROTOTYPES.*?#else.*?\n(.*?)#endif.*?\n/, '\1')
  end

Related methods

  • Instance methods
  • deduplicate_call_seq
  • deduplicate_method_name
  • do_aliases
  • do_attrs
  • do_boot_defclass
  • do_classes
  • do_constants
  • do_define_class
  • do_define_class_under
  • do_define_module
  • do_define_module_under
  • do_includes
  • do_methods
  • do_missing
  • do_modules
  • do_singleton_class
  • do_struct_define_without_accessor
  • find_alias_comment
  • find_attr_comment
  • find_body
  • find_class
  • find_class_comment
  • find_const_comment
  • find_modifiers
  • find_override_comment
  • handle_attr
  • handle_class_module
  • handle_constants
  • handle_ifdefs_in
  • handle_method
  • handle_singleton
  • handle_tab_width
  • load_variable_map
  • look_for_directives_in
  • rb_scan_args
  • remove_commented_out_lines
  • scan
  • Class methods
  • new
APIdock API Documentation Browser

Measure software delivery performance with DORA metrics in Swarmia.

© 2026 APIdock