@@ -9,7 +9,7 @@ class IMAP
9
9
# For backward compatibility, SearchResult inherits from Array.
10
10
class SearchResult < Array
11
11
12
- # Returns a frozen SearchResult populated with the given +seq_nums+.
12
+ # Returns a SearchResult populated with the given +seq_nums+.
13
13
#
14
14
# Net::IMAP::SearchResult[1, 3, 5, modseq: 9]
15
15
# # => Net::IMAP::SearchResult[1, 3, 5, modseq: 9]
@@ -22,19 +22,15 @@ def self.[](*seq_nums, modseq: nil)
22
22
# §3.1.6]}[https://www.rfc-editor.org/rfc/rfc7162.html#section-3.1.6].
23
23
attr_reader :modseq
24
24
25
- # Returns a frozen SearchResult populated with the given +seq_nums+.
25
+ # Returns a SearchResult populated with the given +seq_nums+.
26
26
#
27
27
# Net::IMAP::SearchResult.new([1, 3, 5], modseq: 9)
28
28
# # => Net::IMAP::SearchResult[1, 3, 5, modseq: 9]
29
29
def initialize ( seq_nums , modseq : nil )
30
30
super ( seq_nums . to_ary . map { Integer _1 } )
31
31
@modseq = Integer modseq if modseq
32
- freeze
33
32
end
34
33
35
- # Returns a frozen copy of +other+.
36
- def initialize_copy ( other ) ; super ; freeze end
37
-
38
34
# Returns whether +other+ is a SearchResult with the same values and the
39
35
# same #modseq. The order of numbers is irrelevant.
40
36
#
0 commit comments