End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
GetoptLong#each_option
each_option
lib/getoptlong.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/getoptlong.rb, line 604
def each
loop do
option_name, option_argument = get_option
break if option_name == nil
yield option_name, option_argument
end
end
Alias of #each
‘each_option’ is an alias of ‘each’.