Open ribose-jeffreylau opened 6 years ago
It's certainly possible to implement this by just wrapping the other enumerators.
The reason this was not done initially is that, per the RFC, how a key is located (via userid, keyid, fpr, etc) determines what preferences apply. So it might be surprising behaviour.
Actually, Rnp#each_key
should return an Enumerator instance. That's enough to chain filters, sorts, etc.
Currently, given this:
... the following enumerators are provided:
Would it be possible to have the following way of working with the
rnp
object?or even:
so one could do these:
Thanks!