Closed krtx closed 9 years ago
Use attr_reader :hoge instead of def hoge(); @hoge; end. They are equivalent, isn't it?
attr_reader :hoge
def hoge(); @hoge; end
いいんじゃないでしょうか。
Use
attr_reader :hoge
instead ofdef hoge(); @hoge; end
. They are equivalent, isn't it?