2.3Ruby语言的标识符和保留关键字
标识符
标识符由字母、数字、下划线组成,但是不能以数字开头。
保留关键字
__ENCODING__ 、__LINE__、__FILE__、BEGIN、END、alias、and、begin、break、case、class、def、defined?、do、else、elsif、end、ensure、false、for、if、in、module、next、nil、not、or、redo、rescue、retry、return、self、super、then、true、undef、unless、until、when、while、yield。
原创文章,作者:huoxiaoqiang,如若转载,请注明出处:https://www.huoxiaoqiang.com/ruby/rubybasic/1509.html