📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 12:00:47
📂
/ (Root)
/
opt
/
alt
/
ruby31
/
share
/
ri
/
system
/
Module
📍 /opt/alt/ruby31/share/ri/system/Module
🔄 Refresh
✏️
Editing: attr_accessor-i.ri
Read Only
U:RDoc::AnyMethod[iI"attr_accessor:ETI"Module#attr_accessor;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"BDefines a named attribute for this module, where the name is ;TI"G<i>symbol.</i><code>id2name</code>, creating an instance variable ;TI"H(<code>@name</code>) and a corresponding access method to read it. ;TI"KAlso creates a method called <code>name=</code> to set the attribute. ;TI"0String arguments are converted to symbols. ;TI"9Returns an array of defined method names as symbols.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"module Mod ;TI"@ attr_accessor(:one, :two) #=> [:one, :one=, :two, :two=] ;TI" end ;TI"?Mod.instance_methods.sort #=> [:one, :one=, :two, :two=];T:@format0: @fileI" object.c;T:0@omit_headings_from_table_of_contents_below0I"Sattr_accessor(symbol, ...) -> array attr_accessor(string, ...) -> array ;T0[ I"(*args);T@FI"Module;TcRDoc::NormalClass00
💾 Save Changes
❌ Cancel