jjzjj

ALLBUTTONPROPERTIES

全部标签

ruby - Ruby 中的宏?

只是想知道,有没有一种方法可以在Ruby中使用宏来执行文本内替换,就像C的工作方式一样?例如:defineARGS1,2sum(ARGS)#returns3编辑:更具体地说,我的问题更像是:@button1=FXButton.new(self,"Button1",:opts=>BUTTONPROPERTIES,:width=>width,:height=>height)@button2=FXButton.new(self,"Button2",:opts=>BUTTONPROPERTIES,:width=>width,:height=>height)@button3=FXButton.n