Sha256: fe3fc7daabf9eaedeb76c8d5a1dab8a292c15705363dd818af8803e5eb76d67c

Contents?: true

Size: 385 Bytes

Versions: 4

Compression:

Stored size: 385 Bytes

Contents


module Ccrypto
  class ASN1Object
    attr_reader :asn1_type

    def initialize(type, asn1)
      @asn1_type = type
      @asn1 = asn1
    end

    def native_asn1
      @asn1
    end

    def is_type?(type)
      @asn1_type.to_s.downcase.to_sym == type.to_s.downcase.to_sym
    end

    def method_missing(mtd, *args, &block)
      @asn1.send(mtd, *args, &block)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ccrypto-0.2.0 lib/ccrypto/asn1_object.rb
ccrypto-0.1.3 lib/ccrypto/asn1_object.rb
ccrypto-0.1.2 lib/ccrypto/asn1_object.rb
ccrypto-0.1.0 lib/ccrypto/asn1_object.rb