# File lib/gpgme.rb, line 213 def each_keys(pattern = nil, secret_only = false, &block) keylist_start(pattern, secret_only) begin loop do yield keylist_next end rescue EOFError # The last key in the list has already been returned. rescue keylist_end end end