如何在Ruby程序中创建保留字列表? [英] How can I create a list of reserved words in a Ruby program?

查看:101
本文介绍了如何在Ruby程序中创建保留字列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以在网上浏览这些单词,但是有没有办法让Ruby为我做呢?您不必给我一个完整的程序,仅需一些提示就可以解决.预先感谢.

I know that I can just browse the web for these words but is there a way to just let Ruby do it for me? You don't have to give me a whole program, just some hints to let me go about it. Thanks in advance.

推荐答案

好吧,您可以随时查看ruby的源代码:

Well, you can always take a look at the ruby's source code: keywords.

这篇关于如何在Ruby程序中创建保留字列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆