APIdock / Ruby
/
Browse About
method

public

ruby latest stable - Class: Module
public(*args)
private

With no arguments, sets the default visibility for subsequently defined methods to public. With arguments, sets the named methods to have public visibility. String arguments are converted to symbols.

static VALUE
rb_mod_public(int argc, VALUE *argv, VALUE module)
{
    return set_visibility(argc, argv, module, METHOD_VISI_PUBLIC);
}

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