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.
Public Instance Methods
freeze
click to toggle source
Freezes the internal attributes struct, in addition to self
.
Calls superclass method
# File lib/net/imap/config/attr_accessors.rb, line 51 def freeze data.freeze super end
Protected Instance Methods
initialize
click to toggle source
Calls superclass method
# File lib/net/imap/config/attr_accessors.rb, line 45 def initialize # :notnew: super() @data = AttrAccessors.struct.new end