From: Farrel Lifson Date: 2006-08-17T23:24:17+09:00 Subject: Re: Need - macros feature On 17/08/06, Henry Savr wrote: > Dear Ruby gurus: > > Are there Ruby macro features as a part of Ruby standard? > I want them to work with ANY editor or interactive environment and with > ANY OS > > Why? > > Because it is distracting to key-in: > > def a1 > @a1 > end > def a1=(value) > @a1=value > end > > when you are thinking just about class' very general behaviour. > I would prefer to key-in something like this initially: > > %def a1 > > and POSSIBLY add: -r, or -w, or -rw > on early design stage. Entering all the juzz above distracts strongly. > I'm going to work on details later. > > Besides, I work on various systems and I want to have unified macro > options just by installing Ruby. > > Thank you, > Henry > > -- > Posted via http://www.ruby-forum.com/. > > attr_accessor :a1 # RW attr_reader :a1 # R attr_writer :a1 # W Farrel