method
name
v2_4_6 -
Show latest stable
- Class:
Module
name()public
Returns the name of the module mod. Returns nil for anonymous modules.
VALUE
rb_mod_name(VALUE mod)
{
int permanent;
VALUE path = classname(mod, &permanent);
if (!NIL_P(path)) return rb_str_dup(path);
return path;
} Related methods
- Instance methods
- <
- <=
- <=>
- ==
- ===
- >
- >=
- ancestors
- 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
- 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?
- psych_yaml_as
- public_class_method
- public_constant
- public_instance_method
- public_instance_methods
- public_method_defined?
- remove_class_variable
- singleton_class?
- to_s
- yaml_as
- Class methods
- constants
- nesting
- new
- used_modules
- Private methods
-
alias_method -
append_features -
attr -
attr_accessor -
attr_reader -
attr_writer -
define_method -
extend_object -
extended -
included -
method_added -
method_removed -
method_undefined -
module_function -
prepend_features -
prepended -
private -
protected -
public -
refine -
remove_const -
remove_method -
undef_method -
using