HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/doc/activesupport-7.0.4.2/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"YUnlike +mattr_accessor+, values are *not* shared with subclasses or parent classes. ;TI"NIf a subclass changes the value, the parent class' value is not changed. ;TI"SIf the parent class changes the value, the value of subclasses is not changed.;T@o;;	[
I"class Customer < Account
;TI"	end
;TI"
;TI"Account.user   # => "DHH"
;TI"Customer.user  # => nil
;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