Skip to content

Commit 16a0c78

Browse files
committedJul 29, 2016
more meaningful attribute accessors
1 parent e398503 commit 16a0c78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎trees/generic_list.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def initialize value, nxt=nil, prv=nil
1010
@prv = prv
1111
end
1212
attr_accessor :value
13-
attr_accessor :nxt, :prv
13+
attr_reader :nxt, :prv
1414

1515
##
1616
# Create a new node and insert it after this one.

0 commit comments

Comments
 (0)
Please sign in to comment.