I found the following code in the homebrew code base:
reject{|arg| arg[0..0] == '-'}
Apparently this will remove the element of the array (self) if the element starts with a '-'. My question is why on earth would you need to specify the 0th element of arg in this way, arg[0..0] instead of just specifying arg[0] ??