Method: OpenSSL::ASN1::Constructive#each

Defined in:
ossl_asn1.c

#each {|asn1| ... } ⇒ Object

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

asn1_ary.each do |asn1|
  puts asn1
end

Yields:

  • (asn1)


1216
1217
1218
1219
1220
1221
1222
# File 'ossl_asn1.c', line 1216

static VALUE
ossl_asn1cons_each(VALUE self)
{
    rb_block_call(ossl_asn1_get_value(self), id_each, 0, 0, 0, 0);

    return self;
}