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
Public Instance Methods
Source
# File 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 lib/net/imap/config/attr_accessors.rb, line 44 def initialize # :notnew: super() @data = Config::Struct.new end
Calls superclass method