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

zw963 · March 17, 2012 · Last by zw963 replied at March 17, 2012 · 2649 hits

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.

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

You need to Sign in before reply, if you don't have an account, please Sign up first.