01 Oct '15, 1am

Just learned about Kernel#test in Ruby. What a weird method.

Cmd Returns Meaning "A" | Time | Last access time for file1 "b" | boolean | True if file1 is a block device "c" | boolean | True if file1 is a character device "C" | Time | Last change time for file1 "d" | boolean | True if file1 exists and is a directory "e" | boolean | True if file1 exists "f" | boolean | True if file1 exists and is a regular file "g" | boolean | True if file1 has the \CF{setgid} bit | | set (false under NT) "G" | boolean | True if file1 exists and has a group | | ownership equal to the caller's group "k" | boolean | True if file1 exists and has the sticky bit set "l" | boolean | True if file1 exists and is a symbolic link "M" | Time | Last modification time for file1 "o" | boolean | True if file1 exists and is owned by | | the caller's effective uid "O" | boolean | True if file1 exists and is owned by | | the caller's real uid "p" | boolean | True if fi...

Full article: http://www.rubydoc.info/stdlib/core/Kernel%3Atest

Tweets

Ruby 2.2.2 Array Basics : Part 10

rubyflow.com 29 Sep '15, 3am

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Ruby 2.2.2 Array Basics : Part 9

rubyflow.com 27 Sep '15, 9am

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Really good home brewing video tutorials... #co...

sprudge.com 30 Sep '15, 9pm

The fine folks at Mistobox , a poly-roaster coffee sampler subscription service, have been quietly amassing quite an impre...