Integer(hehe) rescue falseto ensure if string is an integer.
ctime: Created time of a file.
- Thor mapping a command:
map 'n' => :new
Dir.globreturns filenames over the pattern supplied. This is how you get filenames.
Ruby Shell commands
systemcreates a subprocess,
execreplaces the current process.
- Backticks run a system command in a subshell and return the standard output from that command.
- You can run a non-Ruby command in the shell using a script, and the standard output for that command
> `Date` > $? => Process::Status object > $?.to_i => exit code > $?.pid
You need to require tzinfo to be able to use DateTime. sort_by then block. No need to do comparable all...