Ruby 问一个弱弱的问题. (有关简写)

zw963 · 2012年03月17日 · 最后由 zw963 回复于 2012年03月17日 · 2646 次阅读

Ruby 当中,Dir 的 glob 类方法。

glob 是那个单词的缩写?? 是不是跟 C 有关?

随便 google 的 This is where Dir.glob and its cousins come in. By "globbing" a number of files, you can use regular expression-like pattern matching to select just the files you want. Note that though these are like regular expressions, they are not. They're very limited compared to Ruby's regular expressions and are more closely related to shell expansion wildcards than regular expressions.

#1 楼 @ywencn

谢了~~ 要的就是 golobbing.

我这人记性太差。如果不了解这个简写的真实含义,一般转眼就忘的。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号