We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e398503 commit 16a0c78Copy full SHA for 16a0c78
trees/generic_list.rb
@@ -10,7 +10,7 @@ def initialize value, nxt=nil, prv=nil
10
@prv = prv
11
end
12
attr_accessor :value
13
- attr_accessor :nxt, :prv
+ attr_reader :nxt, :prv
14
15
##
16
# Create a new node and insert it after this one.
0 commit comments