APIdock / Ruby
/
Browse About
method

attr_writer

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

Creates an accessor method to allow assignment to the attribute symbol.id2name. String arguments are converted to symbols.

static VALUE
rb_mod_attr_writer(int argc, VALUE *argv, VALUE klass)
{
    int i;

    for (i=0; i<argc; i++) {
        rb_attr(klass, id_for_attr(klass, argv[i]), FALSE, TRUE, TRUE);
    }
    return Qnil;
}

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