I got this odd comment to one of my answer earlier today:
How about showing how this would be applied to OP's question.
My answer (deleted since) was:
Try to split the string and use a range type to build the array: (1..10).to_a
The question was about building a list of IPs given two end points:
Speaking personally, I'd rate my own answer as good enough, since it would have been more than enough to get me googling in the right direction. Admittedly, a better answer eventually creeped in -- it would have gotten my vote and acceptance.
Question for meta, though: is this type of answer (which can occasionally be long) valid, or not? More examples of the same type of hint-only answer:
My issue with getting comments that amount to "show working code" is that it reduces StackOverflow to a crowd-sourcing site. IMO, OP should get the same type of answer as he'd get from a busy colleague, e.g "try this direction, should yield something" rather than a deliverable.