Support Ruby 1.9.3 for TOC

The size method was introduced in Ruby 2.0.0 to Range. For rubies below
2.0.0 you'd need to make an array out of it first.
Merge pull request #4 from LightGuard/master

Support Ruby 1.9.3 for TOC