class Module
Ruby on Rails 7.0.10
Since v2.2.3Attribute Accessors
Extends the module object with class/module and instance accessors for class/module attributes, just like the native attr* accessors for instance attributes.
Attribute Accessors per Thread
Extends the module object with class/module and instance accessors for class/module attributes, just like the native attr* accessors for instance attributes, but does so on a per-thread basis.
So the values are scoped within the Thread.current space under the class name of the module.
Note that it can also be scoped per-fiber if Rails.application.config.active_support.isolation_level is set to :fiber.
Inherits from
Namespace
Modules
Classes
Includes
Constants
Attributes
Methods (defined here)
- # alias_attribute
- # anonymous?
- # attr_internal
- # attr_internal_accessor
- # attr_internal_reader
- # attr_internal_writer
- # cattr_accessor
- # cattr_reader
- # cattr_writer
- # delegate
- # delegate_missing_to
- # deprecate
- # mattr_accessor
- # mattr_reader
- # mattr_writer
- # module_parent
- # module_parent_name
- # module_parents
- # redefine_method
- # redefine_singleton_method
- # remove_possible_method
- # remove_possible_singleton_method
- # silence_redefinition_of_method
- # thread_cattr_accessor
- # thread_mattr_accessor
Private methods
(2)
Implementation detail — not part of the public API.
Used by
Subclasses (4)
Methods (inherited)
From Module::Concerning (2)
- # concern
- # concerning
From Object (16)
- # acts_like?
- # blank?
- # deep_dup
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_param
- # to_query
- # try
- # try!
- # with_options
From ActiveRecord::TestFixtures (4)
From ActiveSupport::Concern (3)
- # class_methods
- # included
- # prepended