pos()
Returns the current index (position) counting from zero.
# File lib/generator.rb, line 121 def pos() @index end