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