Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit 71f491d

Browse files
committed
reader not accessor
1 parent ec9a59e commit 71f491d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Square.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env ruby
22
class Square
3-
attr_accessor :side
3+
attr_reader :side
44
def initialize(side)
55
@side = side
66
end

0 commit comments

Comments
 (0)