HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-2.5.9/doc/activesupport-6.1.4.1/ri/Module/thread_mattr_accessor-i.ri
U:RDoc::AnyMethod[iI"thread_mattr_accessor:ETI"!Module#thread_mattr_accessor;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"DDefines both class and instance accessors for class attributes.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"class Account
;TI"#  thread_mattr_accessor :user
;TI"	end
;TI"
;TI"Account.user = "DHH"
;TI"!Account.user     # => "DHH"
;TI"!Account.new.user # => "DHH"
;T:@format0o;
;	[I"NIf a subclass changes the value, the parent class' value is not changed. ;TI"OSimilarly, if the parent class changes the value, the value of subclasses ;TI"is not changed.;T@o;;	[I"class Customer < Account
;TI"	end
;TI"
;TI"Customer.user = "Rafael"
;TI"!Customer.user # => "Rafael"
;TI"Account.user  # => "DHH"
;T;
0o;
;	[I"OTo omit the instance writer method, pass <tt>instance_writer: false</tt>. ;TI"NTo omit the instance reader method, pass <tt>instance_reader: false</tt>.;T@o;;	[I"class Current
;TI"S  thread_mattr_accessor :user, instance_writer: false, instance_reader: false
;TI"	end
;TI"
;TI"2Current.new.user = "DHH"  # => NoMethodError
;TI"2Current.new.user          # => NoMethodError
;T;
0o;
;	[I"NOr pass <tt>instance_accessor: false</tt>, to omit both instance methods.;T@o;;	[I"class Current
;TI"=  thread_mattr_accessor :user, instance_accessor: false
;TI"	end
;TI"
;TI"2Current.new.user = "DHH"  # => NoMethodError
;TI"1Current.new.user          # => NoMethodError;T;
0:
@fileI"Ilib/active_support/core_ext/module/attribute_accessors_per_thread.rb;T:0@omit_headings_from_table_of_contents_below000[[I"thread_cattr_accessor;To;;	[;@<;0I"a(*syms, instance_reader: true, instance_writer: true, instance_accessor: true, default: nil);T@<FI"Module;TcRDoc::NormalClass00