From: "Hal E. Fulton" Date: 2001-01-10T16:11:05+09:00 Subject: [ruby-talk:8997] Re: Methods in FileTest From: Yukihiro Matsumoto > > |However, size is there -- the only one without a > |question mark. > | > |On the other hand, it could be there simply so that > |size? doesn't get lonely. > > We both have size and size?; the latter returns nil for zero sized > files. This is because zero returning functions are often used as > predicates in C world. > > matz. Yes, I do understand that... I am only trying to understand why things are included/excluded here... If size were missing, I would say, "Oh, they're all predicates." But when I see size there, I ask, "Why isn't mode there?" And maybe some others also. Just curious. Not a big deal. Thanks, Hal Fulton