This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.
index()
Returns the current index (position) counting from zero.
# File lib/generator.rb, line 116 def index() @index end