Mailinglist Archive: yast-devel (66 mails)

< Previous Next >
[yast-devel] YaST in ruby and UI terms
Hi,
I would like to discuss one think that is related to creating UI in
YaST in ruby. In YCP it uses terms. In ruby generic terms looks like:

term(:VBox,...)

but it is not much nice for me, so I create few shortcuts for known UI
elements and it looks like this:

VBox(...)

There is a problem. In UI is often used terms `id and `opts, but it
doesn't start with uppercase and there is high chance to collide with
existing methods ( beside id collide with ruby id method ). So I
propose to translate it to
ID(:id) and OPTS(:strechable,:notify)

alternative can be Opts and Id.
what is your opinion?
Thanks
Josef
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups