module Net::IMAP::Config::AttrAccessors
NOTE: This module is an internal implementation detail, with no guarantee of backward compatibility.
attr_accessor values are stored in a struct rather than ivars, making it simpler to ensure that all config objects share a single object shape. This also simplifies iteration over all defined attributes.
Attributes
Private Class Methods
Source
# File bundled-src/net-imap-0.6.4.1/lib/net/imap/config/attr_accessors.rb, line 21 def self.included(mod) mod.extend Macros end
Public Instance Methods
Source
# File bundled-src/net-imap-0.6.4.1/lib/net/imap/config/attr_accessors.rb, line 50 def freeze data.freeze super end
Freezes the internal attributes struct, in addition to self.
Calls superclass method
Protected Instance Methods
Source
# File bundled-src/net-imap-0.6.4.1/lib/net/imap/config/attr_accessors.rb, line 44 def initialize # :notnew: super() @data = Config::Struct.new end
Calls superclass method
Private Instance Methods
Source
# File bundled-src/net-imap-0.6.4.1/lib/net/imap/config/attr_accessors.rb, line 61 def initialize_clone(other) super @data = other.data.clone end
Calls superclass method
Source
# File bundled-src/net-imap-0.6.4.1/lib/net/imap/config/attr_accessors.rb, line 66 def initialize_dup(other) super @data = other.data.dup end
Calls superclass method