APIdock / Ruby
/
Browse About
method

autoload?

ruby latest stable - Class: Module
autoload?(p1)
public

Returns filename to be loaded if name is registered as autoload in the namespace of mod.

module A
end
A.autoload(:B, "b")
A.autoload?(:B)            #=> "b"
static VALUE
rb_mod_autoload_p(VALUE mod, VALUE sym)
{
    ID id = rb_check_id(&sym);
    if (!id) {
        return Qnil;
    }
    return rb_autoload_p(mod, id);
}

Related methods

  • Instance methods
  • <
  • <=
  • <=>
  • ==
  • ===
  • >
  • >=
  • alias_method
  • ancestors
  • attr
  • attr_accessor
  • attr_reader
  • attr_writer
  • autoload
  • autoload?
  • class_eval
  • class_exec
  • class_variable_defined?
  • class_variable_get
  • class_variable_set
  • class_variables
  • const_defined?
  • const_get
  • const_missing
  • const_set
  • constants
  • define_method
  • deprecate_constant
  • freeze
  • include
  • include?
  • included_modules
  • initialize_clone
  • initialize_copy
  • inspect
  • instance_method
  • instance_methods
  • method_defined?
  • module_eval
  • module_exec
  • name
  • prepend
  • private_class_method
  • private_constant
  • private_instance_methods
  • private_method_defined?
  • protected_instance_methods
  • protected_method_defined?
  • public_class_method
  • public_constant
  • public_instance_method
  • public_instance_methods
  • public_method_defined?
  • remove_class_variable
  • remove_method
  • singleton_class?
  • to_s
  • undef_method
  • Class methods
  • constants
  • nesting
  • new
  • used_modules
  • Private methods
  • privateappend_features
  • privateextend_object
  • privateextended
  • privateincluded
  • privatemethod_added
  • privatemethod_removed
  • privatemethod_undefined
  • privatemodule_function
  • privateprepend_features
  • privateprepended
  • privateprivate
  • privateprotected
  • privatepublic
  • privaterefine
  • privateremove_const
  • privateusing
APIdock API Documentation Browser

© 2026 APIdock