This is the API documentation for generator: Ruby Standard Library Documentation.
CGenerator
CSyncEnumerator
::new (Generator)
::new (SyncEnumerator)
#current (Generator)
#each (Generator)
#each (SyncEnumerator)
#end? (Generator)
#end? (SyncEnumerator)
#index (Generator)
#length (SyncEnumerator)
#next (Generator)
#next? (Generator)
#pos (Generator)
#rewind (Generator)
#size (SyncEnumerator)
#yield (Generator)