instance method
OpenSSL::ASN1::Constructive#each
() ?{ (::OpenSSL::ASN1::ASN1Data) -> void } -> self
asn1_ary.each { |asn1| block } => asn1_ary
ext/openssl/ossl_asn1.c
View on GitHub ↗
static VALUE
ossl_asn1cons_each(VALUE self)
{
rb_block_call(ossl_asn1_get_value(self), id_each, 0, 0, 0, 0);
return self;
}
Calls the given block once for each element in self, passing that element as parameter asn1. If no block is given, an enumerator is returned instead.
Example
Example
asn1_ary.each do |asn1| puts asn1 end