📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-21 22:00:52
📂
/ (Root)
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
Module
📍 /opt/alt/ruby27/share/ri/system/Module
🔄 Refresh
✏️
Editing: class_variable_set-i.ri
Read Only
U:RDoc::AnyMethod[iI"class_variable_set:ETI"Module#class_variable_set;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"ASets the class variable named by <i>symbol</i> to the given ;TI" object. ;TI"CIf the class variable name is passed as a string, that string ;TI"is converted to a symbol.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"class Fred ;TI" @@foo = 99 ;TI" def foo ;TI" @@foo ;TI" end ;TI" end ;TI"6Fred.class_variable_set(:@@foo, 101) #=> 101 ;TI"5Fred.new.foo #=> 101;T:@format0: @fileI" object.c;T:0@omit_headings_from_table_of_contents_below0I"aobj.class_variable_set(symbol, obj) -> obj obj.class_variable_set(string, obj) -> obj ;T0[ I" (p1, p2);T@FI"Module;TcRDoc::NormalClass00
💾 Save Changes
❌ Cancel