class ArgvIterator
Public Class Methods
new(argv)
click to toggle source
# File lib/git/stash/commit.rb, line 527 def initialize(argv) @argv = argv @index = 0 end
Public Instance Methods
next()
click to toggle source
# File lib/git/stash/commit.rb, line 536 def next if @index < @argv.length ret = @argv[@index] @index += 1 return ret else puts '* error: argument is not enoufh' usage raise '' end end
next?()
click to toggle source
# File lib/git/stash/commit.rb, line 532 def next? @index < @argv.length end