From: matz@... (Yukihiro Matsumoto) Date: 1998-12-21T12:07:57+09:00 Subject: [ruby-talk:00136] Re: very very NEWbie Hi. In message "[ruby-talk:00133] Re: very very NEWbie" on 98/12/20, Reimer Behrends writes: |> class ABC |> def initialize( _v ) |> @v = _v |> end |> attr_accesser :v |> end | |Hmm. I've used attr_accessor (with an "o" instead of an "e") so far, |especially as attr_accesser gives me a runtime error. Also, I prefer to use |attr instead of attr_reader. Anything wrong with that? Sorry, accessor is a typo. BTW, about the defference between attr and attr_reader, you can specify multiple names by attr_reader. Some (including me) prefer the style like: attr_reader :foo, :bar, :baz more than attr :foo attr :bar attr :baz But YMMV. matz.