Ruby does not process any data in a string if you wrap it in single quotes.
Ruby 不处理任何用单引号括起来的字符串信息。
If all quotes are now removed from that string by some function in the application code, the string analysis model detects that this string cannot possibly hold quotes from here on.
如果所有的引号现在都被这个应用程序代码中的一些功能从此字符串中清除掉,那么这个字符串分析模型就会检测到这个字符串从此以后就不可能包含引号。
The method takes a string parameter, enclosed in quotes, and a code block.
该方法具有一个使用引号括起来的字符串参数和一个代码块。
Now I'm putting count in double quotes, not to make it a string, but to say, this is count generically. It could be counting one by one through the integers, it could also be taking a collection of data and going through them one by one. It could be doing counting in some other mechanism.
现在我把count用双引号标起来,不是说把它命名为一个字符串,而是说,这是一个通用的计数器,它可能是每一次减1的整数,也可能是拿一个集合的数据然后,一个一个的访问它们,也可能是以某种机制来计数。
应用推荐