Short cuts?


(Tyler Spivey) #1

is there a short cut for:
attr_reader :a,:b,:c
attr_writer :a,:b,:c
?


(Shirai,Kaoru) #2

attr_reader :a,:b,:c
attr_writer :a,:b,:c

attr_accessor :a,:b,:c


(HAL 9000) #3

attr_accessor :a, :b, :c

Hal Fulton

···

----- Original Message -----
From: “Tyler Spivey” tspivey8@telus.net
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Tuesday, July 02, 2002 12:05 AM
Subject: short cuts?

is there a short cut for:
attr_reader :a,:b,:c
attr_writer :a,:b,:c
?


(Dave Thomas) #4

Tyler Spivey tspivey8@telus.net writes:

is there a short cut for:
attr_reader :a,:b,:c
attr_writer :a,:b,:c

attr_accessor :a,:b,:c

Cheers

Dave